• /
  • EnglishEspañol日本語한국어Português
  • EntrarComeçar agora

Failed to discover kube-state-metrics

Problem

The Kubernetes integration requires kube-state-metrics. If this is missing, you'll see an error like the following in the nrk8s-ksm container logs:

bash
$
time="2022-06-21T09:12:20Z" level=error msg="retrieving scraper data: retrieving ksm data: discovering KSM endpoints: timeout discovering endpoints"

Solution

Check the following:

  • kube-state-metrics has not been deployed into the cluster.
  • kube-state-metrics is deployed using a custom deployment.
  • There are multiple versions of kube-state-metrics running and the Kubernetes integration is not finding the correct one.

The Kubernetes integration automatically detects kube-state-metrics in your cluster, using by default the label app.kubernetes.io/name=kube-state-metrics across all namespaces.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.