Demo project that shows how to monitor Spring Boot applications with Prometheus and Grafana
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Monitoring Spring Boot Applications with Prometheus and Grafana

This small demo project contains an example setup of Prometheus and Grafana to monitor Spring Boot applications.

The project contains a default Grafana Prometheus datasource and scrapes the Spring Boot project and Prometheus server for monitoring information.

If you want to login to Grafana you can use the admin / password combination.

For monitoring Spring Boot applications I highly recommend the JVM Micrometer dashboard created by Michael Weirauch.

Building the project

First build the spring boot application.

mvn clean package

Now when the application has been build we can start running our services by running:

docker-compose up

After all services have started successfully, you can navigate to the following urls: