Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The A1 Policy Management Service Spring Boot application exposes some management endpoints including loggers, metrics, Prometheus, and so on...
All these endpoints are enabled by Spring Boot Actuator dependency. When this dependency is added in pom.xml, it will expose counters and statistics, which can then be managed from application.yaml
(See Kohn - Component configuration) for more details on configuration, and the application.yaml file)

Code Block
languageyml
titleSnippet from application.yaml
......
management:
  endpoints:
    web:
      exposure:
        # Enabling of springboot actuator features. See springboot documentation.
        include: "loggers,logfile,health,info,metrics,threaddump,heapdump,prometheus"
......


The metrics actuator makes several metrics available. These metrics include numerous built-in springboot metrics, and several new A1-specific metrics.
In order to access the exposed metrics, you need to form an URL and append metric's name end of the URL like below:

...

Prometheus is time-series database, which stores a sequence of data points, across time. It’s generally used to store metrics and performance data from your applications.

There are numerous predefined Prometheus statistics and counters, however we have added 3 new A1-specific metrics for the the A1 Policy Management Service:

...