gasperlf/spring-boot-monitoring

Repository files navigation

Twitter

Example how to monitoring microservices with spring boot, Spring Actuator, Prometheus and Grafana.

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

  git clone https://.com/gasperlf/spring-boot-monitoring.git

ms-model-1

  1. Eclipse
  2. Intellij IDEA

##Running

  1. api-finance-service
  2. api-finance-service-reactive
  3. prometheus
  4. Grafana
  1. mvn clean package compile and create artifacts.

  2. docker-compose up -d create docker image and run in a container.

Also you can use bash script start.sh that contains both commands.

First in your browser http://localhost:3000

next Log in with user and password admin/admin then create a datasource, select prometheus. in this step you need to set URL from prometheus service, in this case http://[docker-container]:9090 (check docker compose name) after that you can import a dasard that I have included in Grafana folder, I prefer to use jvm-micrometer_rev9.json check when you imported the dasard choose the datasource created before. and that is all.

ms-grafana-1

ms-api-finance-service-1

ms-api-finance-service-reactibe-1

0.0.1-snapshot

- Lewis Florez Renza

Releases

No releases published

Packages

No packages published