- JDK17
- Maven
- PostgreSQL DB with created Database: metrics_poc
- Docker
mvn spring-boot:run
App will be available on localhost:8080
cd ./metrics/prometheus
docker-compose up
Prometheus will be available on localhost:9090
Check if Spring Boot metrics are available: localhost:9090/targets
cd ./metrics/grafana
docker-compose up
Grafana is available on localhost:3000
Default credentials: admin:admin
Configure datasource with url: http://prometheus:9090