An example using Prometheus and Grafana to monitor a Spring Boot microservice.
- Be sure to set
targets
inprometheus/prometheus.yml
config file to your local IP address docker-compose up --build
- Verify Prometheus target is up: http://localhost:9090/targets
- http://localhost:3000/login
- default local username/pw:
admin
/admin
- choose
Skip
when prompted to set new admin pw
- default local username/pw:
- Add Prometheus datasource
-
http://localhost:9090
- set
Access
toBrowser
- set
- Import the JVM (Micrometer) Dashboard (ID 4701)
curl 'http://localhost:8080/addresses' | jq