/demo-micrometer-prometheus-grafana

Demo project that shows how to monitor Spring Boot applications with Prometheus and Grafana

Primary LanguageJava

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: