Application 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 Helm Chart - ehealth-service values.
An example:
metrics: enabled: true path: /actuator/prometheus port: 8081
Collected metrics can be explored via splunk and the associated indicies:
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: /wiki/spaces/PI/pages/511443099