← All dashboards

Apache Camel Data metrics

Metrics that are produced by Apache Camel 1) out of the box per each route 2) manually added to meter the critical parts of the Camel routes

Example of manually set up metrics set up for the Camel route:

Enable routes’ out of box metrics with

io.micrometer micrometer-registry-prometheus 1.1.6 org.springframework.boot spring-boot-starter-actuator ${spring-boot.version} org.apache.camel camel-micrometer-starter org.apache.camel camel-micrometer ${camel.version}

@Configuration public class MetricsConfig {

@Bean
public CamelContextConfiguration camelContextConfiguration() {

    return new CamelContextConfiguration() {
        @Override
        public void beforeApplicationStart(CamelContext camelContext) {
            camelContext.addRoutePolicyFactory(new MicrometerRoutePolicyFactory());
            camelContext.setMessageHistoryFactory(new MicrometerMessageHistoryFactory());

        }

        @Override
        public void afterApplicationStart(CamelContext camelContext) {
        }
    };
}

}

Dashboard revisions

RevisionDecscriptionCreated

Reviews

Login or Sign up to write a review

Reviews from the community

Get this dashboard

Data source:

Dependencies:

Import the dashboard template:

or

Download JSON

Docs: Importing dashboards

Downloads: 117