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:

Label

Required

service_name

Yes

service_namespace

No

deployment_environment

No

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 will automatically add these labels to infrastructure metrics pertaining to Kubernetes pods that are annotated according to the OTel Semantic Conventions. The supported pod annotations are:

Annotation Name

Resulting Label

resource.opentelemetry.io/service.name

service_name

resource.opentelemetry.io/service.namespace

service_namespace

resource.opentelemetry.io/deployment.environment

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