/
Application Metrics

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 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 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

Related content

Logging model
Read with this
Using Splunk
More like this
Canary deployment
Read with this
Call Tracing
More like this
Architecture and Domains
Architecture and Domains
Read with this
Helm Chart - ehealth-service
Helm Chart - ehealth-service
Read with this