-
Story
-
Resolution: Done
-
Medium
-
None
The objective of this story is to expose Prometheus metrics for CPS monitoring.
String Boot actuator Prometheus endpoint can be used to expose default micrometer metrics.
Impacted repos: cps and oom
See:
- https://docs.spring.io/spring-boot/docs/2.5.2/reference/htmlsingle/#actuator.endpoints
- https://docs.spring.io/spring-boot/docs/2.5.2/reference/htmlsingle/#actuator.metrics.export.prometheus
- https://docs.spring.io/spring-boot/docs/2.5.2/actuator-api/htmlsingle/#prometheus
Scope
- CPS-Core
- DMI-Plugin
(CPS-Temporal has no actuator endpoint yet and wil be done later separately)
OOM Changes affected:
define a port in the service section for actuator endpoints
(Bell Canada has already done this internally and can help if needed)
AC:
- Default Prometheus metrics are exposed using actuator endpoint
- Actuator is using a different port than the one used by cps users for application endpoints.
- this will affect the existing actuators too (info,health,loggers), hence the need for updates in OOM (it uses health check and possibly info. loggers is probably not used)