Follow standard procedures to install or update the New Relic integration for Kubernetes.
Added: Control Plane Monitoring: from this release on the Kubernetes integration will automatically monitor your Control Plane, showing each component and their health status in the Kubernetes Cluster Explorer. Managed Kubernetes Clusters (GKE, EKS, AKS, DO, etc) are not supported, due to technical restrictions.
Added: KSM can now be discovered using custom pod labels. By default we look for pods with the labels
app.kubernetes.io/namewith the value
If you want to use a custom label for the discovery, you should put the label name in the environment variable named
If more than 1 pod is found with the label, it will always choose the first one based on a sorted list of IP addresses.
Example:# Label a specific KSM pod. Always set the value to the string "true".kubectl label pod kube-state-metrics newrelic-ksm=true
Update the newrelic-infrastructure-k8s manifest to use this labeled KSM pod:env:- name: KUBE_STATE_METRICS_POD_LABELvalue: newrelic-ksm