Skip to content

Latest commit

 

History

History

micrometer-prometheus-grafana

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Micrometer with Prometheus and Grafana

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.

Launching

To start the Micrometer application, Prometheus, and Grafana containers, run

docker compose up --build --detach

Accessing

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.

Teardown

To stop and remove the containers, run

docker compose down --volumes