/spring-boot-prometeus-grafana-example

Monitoring Spring Boot with Prometheus + Grafana

Primary LanguageJava

Monitoring Spring Boot with Prometheus + Grafana (Preconfigured Dashboard)

Grafana Dashboard

Technologies

Prerequisites

Run this project

1 . Clone project on your machine

git clone https://github.com/BatuhanKucukali/spring-boot-prometeus-grafana-example

2 . Change directory

cd spring-boot-prometeus-grafana-example

3 . Run Project

./mwnw spring-boot:run

4 . Run Dependencies

docker-compose up

⚠️ Note: Since we are using Docker to run Prometheus, it will be running in a Docker network that won't understand localhost/120.0.01, as you might expect. Since our app is running on localhost, and for the Docker container, localhost means its own network, we have to specify our system IP in place of it.

Change ip address in prometheus.yml

To check your system IP you can run ipconfig or ifconfig in your terminal, depending upon your OS.

Sources

Getting help

If you're having trouble getting this project running, feel free to open an issue or email me!