Collect various metrics directly from Camel routes using the Micrometer library.
-
Micrometer component, URI syntax:
micrometer:metricsType:metricsName
Please refer to the above link for usage and configuration details.
Or add the coordinates to your existing project:
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-micrometer</artifactId>
</dependency>
This extension leverages Quarkus Micrometer. Quarkus supports a variety of Micrometer metric registry implementations.
Your application should declare the following dependency or one of the dependencies listed in the quarkiverse documentation, depending on the monitoring solution you want to work with.
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
If no dependency is declared, the Micrometer extension creates a SimpleMeterRegistry
instance, suitable mainly for testing.
Exposing Micrometer statistics in JMX is not available in native mode as quarkus-micrometer-registry-jmx
does not
have native support at present.
Prometheus backend ignores negative values during increment of Counter metrics.
Configuration property | Type | Default |
---|---|---|
[lock] Set whether to enable the MicrometerRoutePolicyFactory for capturing metrics on route processing times. |
|
|
[lock] Set whether to enable the MicrometerMessageHistoryFactory for capturing metrics on individual route node processing times. Depending on the number of configured route nodes, there is the potential to create a large volume of metrics. Therefore, this option is disabled by default. |
|
|
[lock] Set whether to enable the MicrometerExchangeEventNotifier for capturing metrics on exchange processing times. |
|
|
[lock] Set whether to enable the MicrometerRouteEventNotifier for capturing metrics on the total number of routes and total number of routes running. |
|
|
[lock] Set whether to gather performance information about Camel Thread Pools by injecting an InstrumentedThreadPoolFactory. |
|
|
[lock] Controls the naming style to use for metrics. The available values are |
|
|
[lock] Sets the level of metrics to capture. The available values are |
|
|
{doc-link-icon-lock}[title=Fixed at build time] Configuration property fixed at build time. All other configuration properties are overridable at runtime.