[ 
https://issues.apache.org/jira/browse/CAMEL-22392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18017161#comment-18017161
 ] 

Claus Ibsen commented on CAMEL-22392:
-------------------------------------

The camel-main-micrometer example now has a circuit breaker so you can get 
stats ala
{code:java}
# HELP app_info  
# TYPE app_info gauge
app_info{camel_context="MyCoolCamel",camel_runtime_provider="Main",camel_runtime_version="4.15.0-SNAPSHOT",camel_version="4.15.0-SNAPSHOT"}
 1
# HELP camel_exchange_event_notifier_seconds  
# TYPE camel_exchange_event_notifier_seconds summary
camel_exchange_event_notifier_seconds_count{camelContext="MyCoolCamel",endpointName="direct://echo",eventType="ExchangeSentEvent",failed="false",kind="CamelExchangeEvent",routeId="route1"}
 12
camel_exchange_event_notifier_seconds_sum{camelContext="MyCoolCamel",endpointName="direct://echo",eventType="ExchangeSentEvent",failed="false",kind="CamelExchangeEvent",routeId="route1"}
 0.001
camel_exchange_event_notifier_seconds_count{camelContext="MyCoolCamel",endpointName="platform-http:///bye",eventType="ExchangeCompletedEvent",failed="false",kind="CamelExchangeEvent",routeId="route3"}
 1
camel_exchange_event_notifier_seconds_sum{camelContext="MyCoolCamel",endpointName="platform-http:///bye",eventType="ExchangeCompletedEvent",failed="false",kind="CamelExchangeEvent",routeId="route3"}
 0.003582875
camel_exchange_event_notifier_seconds_count{camelContext="MyCoolCamel",endpointName="timer://timer1",eventType="ExchangeCompletedEvent",failed="false",kind="CamelExchangeEvent",routeId="route1"}
 24
camel_exchange_event_notifier_seconds_sum{camelContext="MyCoolCamel",endpointName="timer://timer1",eventType="ExchangeCompletedEvent",failed="false",kind="CamelExchangeEvent",routeId="route1"}
 0.041073878
# HELP camel_exchange_event_notifier_seconds_max  
# TYPE camel_exchange_event_notifier_seconds_max gauge
camel_exchange_event_notifier_seconds_max{camelContext="MyCoolCamel",endpointName="direct://echo",eventType="ExchangeSentEvent",failed="false",kind="CamelExchangeEvent",routeId="route1"}
 0.001
camel_exchange_event_notifier_seconds_max{camelContext="MyCoolCamel",endpointName="platform-http:///bye",eventType="ExchangeCompletedEvent",failed="false",kind="CamelExchangeEvent",routeId="route3"}
 0.003582875
camel_exchange_event_notifier_seconds_max{camelContext="MyCoolCamel",endpointName="timer://timer1",eventType="ExchangeCompletedEvent",failed="false",kind="CamelExchangeEvent",routeId="route1"}
 0.003658875
# HELP camel_exchanges_total Total number of processed exchanges
# TYPE camel_exchanges_total counter
camel_exchanges_total{camelContext="MyCoolCamel",eventType="context",kind="CamelRoute",routeId=""}
 13.0
camel_exchanges_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route1"}
 12.0
camel_exchanges_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route2"}
 12.0
camel_exchanges_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route3"}
 1.0
# HELP camel_exchanges_external_redeliveries_total Number of external initiated 
redeliveries (such as from JMS broker)
# TYPE camel_exchanges_external_redeliveries_total counter
camel_exchanges_external_redeliveries_total{camelContext="MyCoolCamel",eventType="context",kind="CamelRoute",routeId=""}
 0.0
camel_exchanges_external_redeliveries_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route1"}
 0.0
camel_exchanges_external_redeliveries_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route2"}
 0.0
camel_exchanges_external_redeliveries_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route3"}
 0.0
# HELP camel_exchanges_failed_total Number of failed exchanges
# TYPE camel_exchanges_failed_total counter
camel_exchanges_failed_total{camelContext="MyCoolCamel",eventType="context",kind="CamelRoute",routeId=""}
 0.0
camel_exchanges_failed_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route1"}
 0.0
camel_exchanges_failed_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route2"}
 0.0
camel_exchanges_failed_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route3"}
 0.0
# HELP camel_exchanges_failures_handled_total Number of failures handled
# TYPE camel_exchanges_failures_handled_total counter
camel_exchanges_failures_handled_total{camelContext="MyCoolCamel",eventType="context",kind="CamelRoute",routeId=""}
 0.0
camel_exchanges_failures_handled_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route1"}
 0.0
camel_exchanges_failures_handled_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route2"}
 0.0
camel_exchanges_failures_handled_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route3"}
 0.0
# HELP camel_exchanges_inflight Route inflight messages
# TYPE camel_exchanges_inflight gauge
camel_exchanges_inflight{camelContext="MyCoolCamel",kind="CamelExchangeEvent",routeId="route1"}
 0.0
camel_exchanges_inflight{camelContext="MyCoolCamel",kind="CamelExchangeEvent",routeId="route2"}
 0.0
camel_exchanges_inflight{camelContext="MyCoolCamel",kind="CamelExchangeEvent",routeId="route3"}
 0.0
# HELP camel_exchanges_last_timestamp Last exchange processed time in 
milliseconds since the Unix epoch
# TYPE camel_exchanges_last_timestamp gauge
camel_exchanges_last_timestamp 1.75654675996E12
# HELP camel_exchanges_succeeded_total Number of successfully completed 
exchanges
# TYPE camel_exchanges_succeeded_total counter
camel_exchanges_succeeded_total{camelContext="MyCoolCamel",eventType="context",kind="CamelRoute",routeId=""}
 13.0
camel_exchanges_succeeded_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route1"}
 12.0
camel_exchanges_succeeded_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route2"}
 12.0
camel_exchanges_succeeded_total{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route3"}
 1.0
# HELP camel_message_history_seconds Node performance metrics
# TYPE camel_message_history_seconds summary
camel_message_history_seconds_count{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="circuitBreaker1",routeId="route1"}
 12
camel_message_history_seconds_sum{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="circuitBreaker1",routeId="route1"}
 0.027464457
camel_message_history_seconds_count{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="log1",routeId="route1"}
 12
camel_message_history_seconds_sum{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="log1",routeId="route1"}
 0.005525206
camel_message_history_seconds_count{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="log2",routeId="route3"}
 1
camel_message_history_seconds_sum{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="log2",routeId="route3"}
 1.53833E-4
camel_message_history_seconds_count{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="setBody1",routeId="route1"}
 12
camel_message_history_seconds_sum{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="setBody1",routeId="route1"}
 0.003906751
camel_message_history_seconds_count{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="setBody2",routeId="route2"}
 12
camel_message_history_seconds_sum{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="setBody2",routeId="route2"}
 0.002039916
camel_message_history_seconds_count{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="setBody3",routeId="route3"}
 1
camel_message_history_seconds_sum{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="setBody3",routeId="route3"}
 1.3575E-4
camel_message_history_seconds_count{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="to1",routeId="route1"}
 12
camel_message_history_seconds_sum{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="to1",routeId="route1"}
 0.010239793
# HELP camel_message_history_seconds_max Node performance metrics
# TYPE camel_message_history_seconds_max gauge
camel_message_history_seconds_max{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="circuitBreaker1",routeId="route1"}
 0.009821417
camel_message_history_seconds_max{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="log1",routeId="route1"}
 6.39083E-4
camel_message_history_seconds_max{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="log2",routeId="route3"}
 1.53833E-4
camel_message_history_seconds_max{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="setBody1",routeId="route1"}
 7.40959E-4
camel_message_history_seconds_max{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="setBody2",routeId="route2"}
 3.80542E-4
camel_message_history_seconds_max{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="setBody3",routeId="route3"}
 1.3575E-4
camel_message_history_seconds_max{camelContext="MyCoolCamel",kind="CamelMessageHistory",nodeId="to1",routeId="route1"}
 0.00146725
# HELP camel_route_policy_seconds Route performance metrics
# TYPE camel_route_policy_seconds summary
camel_route_policy_seconds_count{camelContext="MyCoolCamel",eventType="context",kind="CamelRoute",routeId=""}
 13
camel_route_policy_seconds_sum{camelContext="MyCoolCamel",eventType="context",kind="CamelRoute",routeId=""}
 0.046533668
camel_route_policy_seconds_count{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route1"}
 12
camel_route_policy_seconds_sum{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route1"}
 0.045252335
camel_route_policy_seconds_count{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route2"}
 12
camel_route_policy_seconds_sum{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route2"}
 0.005448291
camel_route_policy_seconds_count{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route3"}
 1
camel_route_policy_seconds_sum{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route3"}
 5.24542E-4
# HELP camel_route_policy_seconds_max Route performance metrics
# TYPE camel_route_policy_seconds_max gauge
camel_route_policy_seconds_max{camelContext="MyCoolCamel",eventType="context",kind="CamelRoute",routeId=""}
 0.014802
camel_route_policy_seconds_max{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route1"}
 0.014682292
camel_route_policy_seconds_max{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route2"}
 0.001008083
camel_route_policy_seconds_max{camelContext="MyCoolCamel",eventType="route",kind="CamelRoute",routeId="route3"}
 5.24542E-4
# HELP camel_routes_added_routes  
# TYPE camel_routes_added_routes gauge
camel_routes_added_routes{camelContext="MyCoolCamel",eventType="RouteEvent",kind="CamelRoute"}
 3.0
# HELP camel_routes_reloaded_routes  
# TYPE camel_routes_reloaded_routes gauge
camel_routes_reloaded_routes{camelContext="MyCoolCamel",eventType="RouteEvent",kind="CamelRoute"}
 0.0
# HELP camel_routes_running_routes  
# TYPE camel_routes_running_routes gauge
camel_routes_running_routes{camelContext="MyCoolCamel",eventType="RouteEvent",kind="CamelRoute"}
 3.0
# HELP jvm_info JVM version info
# TYPE jvm_info gauge
jvm_info{runtime="OpenJDK Runtime Environment",vendor="Azul Systems, 
Inc.",version="21.0.5+11-LTS"} 1
# HELP process_cpu_time_ns_total The "cpu time" used by the Java Virtual 
Machine process
# TYPE process_cpu_time_ns_total counter
process_cpu_time_ns_total 8.666064E9
# HELP process_cpu_usage The "recent cpu usage" for the Java Virtual Machine 
process
# TYPE process_cpu_usage gauge
process_cpu_usage 0.004111774036451812
# HELP process_files_max_files The maximum file descriptor count
# TYPE process_files_max_files gauge
process_files_max_files 2.147483647E9
# HELP process_files_open_files The open file descriptor count
# TYPE process_files_open_files gauge
process_files_open_files 331.0
# HELP resilience4j_circuitbreaker_buffered_calls The number of buffered failed 
calls stored in the ring buffer
# TYPE resilience4j_circuitbreaker_buffered_calls gauge
resilience4j_circuitbreaker_buffered_calls{kind="failed",name="circuitBreaker1"}
 0.0
resilience4j_circuitbreaker_buffered_calls{kind="successful",name="circuitBreaker1"}
 12.0
# HELP resilience4j_circuitbreaker_calls_seconds Total number of calls which 
failed but the exception was ignored
# TYPE resilience4j_circuitbreaker_calls_seconds summary
resilience4j_circuitbreaker_calls_seconds_count{kind="failed",name="circuitBreaker1"}
 0
resilience4j_circuitbreaker_calls_seconds_sum{kind="failed",name="circuitBreaker1"}
 0.0
resilience4j_circuitbreaker_calls_seconds_count{kind="ignored",name="circuitBreaker1"}
 0
resilience4j_circuitbreaker_calls_seconds_sum{kind="ignored",name="circuitBreaker1"}
 0.0
resilience4j_circuitbreaker_calls_seconds_count{kind="successful",name="circuitBreaker1"}
 12
resilience4j_circuitbreaker_calls_seconds_sum{kind="successful",name="circuitBreaker1"}
 0.017310043
# HELP resilience4j_circuitbreaker_calls_seconds_max Total number of calls 
which failed but the exception was ignored
# TYPE resilience4j_circuitbreaker_calls_seconds_max gauge
resilience4j_circuitbreaker_calls_seconds_max{kind="failed",name="circuitBreaker1"}
 0.0
resilience4j_circuitbreaker_calls_seconds_max{kind="ignored",name="circuitBreaker1"}
 0.0
resilience4j_circuitbreaker_calls_seconds_max{kind="successful",name="circuitBreaker1"}
 0.002633125
# HELP resilience4j_circuitbreaker_failure_rate The failure rate of the circuit 
breaker
# TYPE resilience4j_circuitbreaker_failure_rate gauge
resilience4j_circuitbreaker_failure_rate{name="circuitBreaker1"} -1.0
# HELP resilience4j_circuitbreaker_not_permitted_calls_total Total number of 
not permitted calls
# TYPE resilience4j_circuitbreaker_not_permitted_calls_total counter
resilience4j_circuitbreaker_not_permitted_calls_total{kind="not_permitted",name="circuitBreaker1"}
 0.0
# HELP resilience4j_circuitbreaker_slow_call_rate The slow call of the circuit 
breaker
# TYPE resilience4j_circuitbreaker_slow_call_rate gauge
resilience4j_circuitbreaker_slow_call_rate{name="circuitBreaker1"} -1.0
# HELP resilience4j_circuitbreaker_slow_calls The number of slow failed calls 
which were slower than a certain threshold
# TYPE resilience4j_circuitbreaker_slow_calls gauge
resilience4j_circuitbreaker_slow_calls{kind="failed",name="circuitBreaker1"} 0.0
resilience4j_circuitbreaker_slow_calls{kind="successful",name="circuitBreaker1"}
 0.0
# HELP resilience4j_circuitbreaker_state The states of the circuit breaker
# TYPE resilience4j_circuitbreaker_state gauge
resilience4j_circuitbreaker_state{name="circuitBreaker1",state="closed"} 1.0
resilience4j_circuitbreaker_state{name="circuitBreaker1",state="disabled"} 0.0
resilience4j_circuitbreaker_state{name="circuitBreaker1",state="forced_open"} 
0.0
resilience4j_circuitbreaker_state{name="circuitBreaker1",state="half_open"} 0.0
resilience4j_circuitbreaker_state{name="circuitBreaker1",state="metrics_only"} 
0.0
resilience4j_circuitbreaker_state{name="circuitBreaker1",state="open"} 0.0
# HELP system_cpu_count The number of processors available to the Java virtual 
machine
# TYPE system_cpu_count gauge
system_cpu_count 14.0
# HELP system_cpu_usage The "recent cpu usage" of the system the application is 
running in
# TYPE system_cpu_usage gauge
system_cpu_usage 0.05511811023622047
# HELP system_load_average_1m The sum of the number of runnable entities queued 
to available processors and the number of runnable entities running on the 
available processors averaged over a period of time
# TYPE system_load_average_1m gauge
system_load_average_1m 4.318359375 {code}

> camel-resilience4j - Add micrometer support
> -------------------------------------------
>
>                 Key: CAMEL-22392
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22392
>             Project: Camel
>          Issue Type: New Feature
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.15.0
>
>
> [#camel > Circuit breaker 
> observability|https://camel.zulipchat.com/#narrow/channel/257298-camel/topic/Circuit.20breaker.20observability]
> https://resilience4j.readme.io/docs/micrometer



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to