Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Prometheus missing kubelet metrics on AKS #6846
Cloud Provider: Azure
Current Pod metics for Memory, CPU, and Network are visible in the Grafana / Prometheus user interface.
Current Pod metics for Memory, CPU, and Network are missing in the Grafana / Prometheus user interface.
Steps to reproduce
There's an error reported from Prometheus about a missing config file. I don't know if this is related to the above issue or not.
Fix will be delivered with next release, as a workaround please use following patch for service monitor kubelet exporter
to edit service monitor instance execute following command
instance configuration should look like below
Kubelet deployment configuration vary depending on managed kubernetes deployment, this issue occurs on Microsoft AKS, prometheus can't scrape metrics from kubelet with an error HTTP 401.
Following patch will solve this issue on Microsoft AKS deployments
Step 1: Delete existing ServiceMonitor instance with following command
Step 2: Apply new ServiceMonitor deployment for AKS with following command