This example shows how to work with Micrometer metrics, using Spring Java Config to boot up Camel, configure the routes and meters.
The example triggers an exchange every 10s that runs through a route using a variable delay. The exchange is measured in various ways:
You will need to compile this example first:
This example uses Prometheus as monitoring backend.
prometheus.ymlfile and append another
... - job_name: 'camel' static_configs: - targets: ['localhost:8088']
Optionally, you can install a metrics visualizer, e.g. Grafana:
To run the example type
To stop the example hit Ctrl+c
You can see the routing rules by looking at the java code in the
If you hit an problems please let us know on the Camel Forums http://camel.apache.org/discussion-forums.html
Please help us make Apache Camel better - we appreciate any feedback you may have. Enjoy!
The Camel riders!