Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 572 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 572 Bytes

Metrics POC

Requirements

  • JDK17
  • Maven
  • PostgreSQL DB with created Database: metrics_poc
  • Docker

Run

Spring Boot app

mvn spring-boot:run

App will be available on localhost:8080

Prometheus

cd ./metrics/prometheus
docker-compose up

Prometheus will be available on localhost:9090

Check if Spring Boot metrics are available: localhost:9090/targets

Grafana

cd ./metrics/grafana
docker-compose up

Grafana is available on localhost:3000
Default credentials: admin:admin

Configure datasource with url: http://prometheus:9090