A1 Policy Management Service exposes metrics and counters via Prometheus.
There are mainly three counters as well as others providing about A1-PMS state:
total_ric_count, total_policy_count, and total_policy_type_count.
All available metrics and counters could be accessed from A1-PMS (available) port and metric's path: '/actuator/prometheus'.PMS Spring Boot application exposes some management endpoints including loggers, metrics, Prometheus and so on...
All these params are provided in application.yaml file.
Code Block | ||||
---|---|---|---|---|
| ||||
management:
endpoints:
web:
exposure:
# Enabling of springboot actuator features. See springboot documentation.
include: "loggers,logfile,health,info,metrics,threaddump,heapdump,prometheus" |
In order to access these exposures, you need to form an URL and append metric's name end of the URL like below:
http://localhost:8081/actuator/health or http://localhost:8081/actuator/prometheus
On the other hand, if you want to visualize these in Prometheus GUI,
you can bind the below 'prometheus.yml' file while starting the Prometheus container.
...