Associate infrastructure metrics with services

Infrastructure metrics gathered from Kubernetes (in your Kubernetes Explorer/Prometheus Metrics Dataset) will automatically be associated with your services in Service Explorer provided that metrics the have the following labels:

LabelRequired
service_nameYes
service_namespaceNo
deployment_environmentNo

These labels must all match the labels used in your application instrumentation for the same service.

The observe-agent installed via the Observe Agent Helm Chart automatically adds these labels to infrastructure metrics pertaining to Kubernetes pods that are annotated according to the OTel Semantic Conventions. The supported pod annotations are:

Annotation NameResulting Label
resource.opentelemetry.io/service.nameservice_name
resource.opentelemetry.io/service.namespaceservice_namespace
resource.opentelemetry.io/deployment.environmentdeployment_environment

The observe-agent will also use the app.kubernetes.io/name pod label to determine the service_name if the annotation is not present. This feature requires the observe-agent helm chart version 0.52.0 or later.