Sample Prometheus configuration in OpenShift for monitoring microservices
In the sample single Prometheus local service prometheus-sample-service
aggregates metrics from first-service
and second-service
.
In your microservices should be added monitoring through Spring Actuator and Micrometer
Check result:
- http://prometheus-sample-service.apps.my-sample-host.com/targets local Prometheus
- http://first-service.apps.my-sample-host.com/first-service/actuator/prometheus
- http://first-service.apps.my-sample-host.com/first-service/actuator/metrics