Micrometer is a vendor-neutral application metrics facade. This example demonstrates how to collect metrics from a Java (Quarkus) application using Micrometer, store them in Prometheus, and visualize them with Grafana.
Grafana is provisioned with Prometheus datasource and a slightly modified JVM (Micrometer) dashboard.
To start the Micrometer application, Prometheus, and Grafana containers, run
docker compose up --build --detach
Once containers are up, access the JVM (Micrometer) dashboard at http://localhost:3000/d/jvm-micrometer/jvm-micrometer?orgId=1&refresh=30s&from=now-5m&to=now&kiosk. There is no need to log in, since anonymous access is enabled.
To stop and remove the containers, run
docker compose down --volumes