Micrometer

JVM since1.5.0 Native since1.5.0

Collect various metrics directly from Camel routes using the Micrometer library.

What’s inside

Please refer to the above link for usage and configuration details.

Maven coordinates

<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-micrometer</artifactId>
</dependency>

Check the User guide for more information about writing Camel Quarkus applications.

Usage

This extension leverages Quarkus Micrometer. Quarkus supports a variety of Micrometer metric registry implementations.

Your application should declare one of the following dependencies, depending on the monitoring solution you want to work with.

Monitoring System Dependency

Azure

io.micrometer:micrometer-registry-azure-monitor

Datadog

io.micrometer:micrometer-registry-datadog

JMX (JVM mode only)

io.micrometer:micrometer-registry-jmx

Prometheus

io.micrometer:micrometer-registry-prometheus

SignalFx

io.micrometer:micrometer-registry-signalfx

Stackdriver

io.micrometer:micrometer-registry-stackdriver

StatsD

io.micrometer:micrometer-registry-statsd

Additional Camel Quarkus configuration

Configuration property Type Default

quarkus.camel.metrics.enable-route-policy

Set whether to enable the MicrometerRoutePolicyFactory for capturing metrics on route processing times.

boolean

true

quarkus.camel.metrics.enable-message-history

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.

boolean

false

quarkus.camel.metrics.enable-exchange-event-notifier

Set whether to enable the MicrometerExchangeEventNotifier for capturing metrics on exchange processing times.

boolean

true

quarkus.camel.metrics.enable-route-event-notifier

Set whether to enable the MicrometerRouteEventNotifier for capturing metrics on the total number of routes and total number of routes running.

boolean

true

Configuration property fixed at build time. All other configuration properties are overridable at runtime.