The Kubernetes APM summary page provides general information about the selected application, including the age of the current deployment, the number of pods available, CPU and memory usage, pod logs, and metric comparison.
Go to one.newrelic.com > All capabilities > APM & Services > (selected app) > Kubernetes
Dica
To get a high-level overview of all your applications and services, use our entity explorer.
Monitor the deployment of your Kubernetes cluster
The Kubernetes page in APM offers the following information about your application:
Link your applications to Kubernetes
You can surface Kubernetes metadata and link it to your APM agents, whether you use our proprietary agents or OpenTelemetry. uses the Kubernetes metadata to display the specific Kubernetes deployment information related to that APM application.
New Relic proprietary instrumentation
When you install New Relic's Kubernetes integration, New Relic's metadata injection comes into play automatically via the nri-metadata-injection
parameter. The MutatingAdmissionWebhook
, set up by the Kubernetes instrumentation, takes care of tagging your pods with the necessary environment variables. From there, the data captured in these variables gets carried over to your APM metrics and entities, enriching them with valuable context.
For more information, see how to link your applications to Kubernetes.
The following attributes are required in the APM service entity to display the Kubernetes summary page:
k8s.clusterName
k8s.namespaceName
k8s.deploymentName
OpenTelemetry instrumentation
The OpenTelemetry Collector offers a Kubernetes attributes processor that enrich APM telemetry with Kubernetes metadata.
You need to define an environment variable in your deployment manifest.
Adjust the configuration of the Collector to retrieve the appropriate Kubernetes metadata using this APM environment variable.
As a result, all the APM metrics and entities will include Kubernetes metadata thanks to the K8sattributes
processor. For more information, see how to link your OpenTelemetry applications to Kubernetes.
The following attributes are required in the APM service entity to display the Kubernetes summary page:
k8s.cluster.name
k8s.deployment.name
k8s.namespace.name
Cuidado
The Kubernetes summary page won't work properly if there is a mix of different instrumentation providers (New Relic and OpenTelemetry). For it to work properly, both Kubernetes and APM need to be monitored either exclusively through New Relic's proprietary agents or entirely through OpenTelemetry.
Support for different instrumentation providers setup is expected by 2025 Q1.