This example shows how to run Camel standalone with Micrometer metrics and with HTTP endpoint for exposing statistics for scraping by Prometheus.
The application is configured in the application.properties
file.
The route is in YAML DSL and was created with Apache Camel Karavan. You can try Karavan with the online editor at: https://karavan.space/
The statistics from Micrometer can be observed from HTTP at:
http://localhost:8080/q/metrics
This application is integrated with the Camel CLI via the camel-cli-connector
dependency (see pom.xml
).
This allows to use the Camel CLI to manage this application, such as:
$mvn package camel:run
And then use the CLI to see status:
$camel ps PID NAME CAMEL PLATFORM READY STATUS RELOAD AGE ROUTE MSG/S TOTAL FAIL INFLIGHT LAST DELTA SINCE-LAST 92545 MyCoolCamel 4.3.0 Camel 1/1 Running 0 53s 3/3 0.00 10 0 0 0 0 4s/4s/-
This example comes with embedded developer console that is accessible via http://localhost:8080/q/dev
.
You can also check status of health-check via http://localhost:8080/q/health
.
If you hit any problem using Camel or have some feedback, then please let us know.
We also love contributors, so get involved :-)
The Camel riders!