Skip to content
Metrics Example based on Prometheus and Grafana
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
grafana
src
.gitignore
build.gradle
docker-compose.yaml
gradlew
gradlew.bat
readme.md
settings.gradle

readme.md

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.

You can’t perform that action at this time.