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
Change ip address in prometheus.yml
To check your system IP you can run ipconfig or ifconfig in your terminal, depending upon your OS.
- https://tanzu.vmware.com/developer/guides/spring/spring-prometheus/?utm_source=twitter&utm_medium=social
- https://stackabuse.com/monitoring-spring-boot-apps-with-micrometer-prometheus-and-grafana/
- https://royportas.com/posts/2020-02-25-prometheus-and-grafana-configuration-for-docker-compose/
- https://grafana.com/grafana/dashboards/10280
If you're having trouble getting this project running, feel free to open an issue or email me!