gysel / spring-boot-metrics-prometheus

Metrics Example based on Prometheus and Grafana

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Boot Metrics Example

A Spring Boot application capturing metrics using Micrometer. Prometheus scrapes and stores the metrics whilst reporting is done in Grafana.

Start the Example

Prometheus scrapes the metrics using a HTTP call and therefore needs access to the running application. An easy way to achieve this, is to run the Spring Boot application in a Docker container too.

We therefore build a Docker image using jib and start it using Docker Compose.

./gradlew jibDockerBuild
docker-compose up -d

The example is accessible on:

The Prometheus data source and a JVM dashboard are automatically provisioned in Grafana.

About

Metrics Example based on Prometheus and Grafana


Languages

Language:Java 100.0%