Application Metrics

Application and services can expose application metrics in Prometheus format and have the metrics collected by the infrastructure.

An application that exposes application metrics in Prometheus format can have its metrics collected by the infrastructure by configuring the https://ehealth-dk.atlassian.net/wiki/spaces/EDTW/pages/403898376 values.

An example:

metrics: enabled: true path: /actuator/prometheus port: 8081

Collected metrics can be explored via splunk and the associated indices:

index={ENVIRONMENT}_k8s_{NAMESPACE}_metrics

For instance: index=exttest_k8s_ehealth-public_metrics

Access to indices are subject to Access Control, see: https://ehealth-dk.atlassian.net/wiki/spaces/PI/pages/579895426/Adding+Users+to+KeyCloak#List-of-groups-and-roles

Client libraries for exporting Prometheus metrics exists for a number of languages: https://prometheus.io/docs/instrumenting/clientlibs/

More detailed information on the observed values in splunk can be found here: https://ehealth-dk.atlassian.net/wiki/spaces/PI/pages/511443099