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

Apache Camel Data metrics screenshot 1

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) {
    }
};

}

}

Revisions
RevisionDescriptionCreated

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies