I have been running the kubernetes integration quite smoothly before. Now after updating, it seems like none of the CPU metrics is working in the Dashboards.
queries like
sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster="cloud"}) by (namespace)
I am able to receive all necessary metrics in the cloud but it seems like the recording rules are not working for CPU. I followed the manual for the kubernetes integration and even reinstalled it several times (including the kube state metrics deployment and grafana-agent statefulset).
I deleted and redeployed the configmap. However, it still does not want to work…
Not sure if you’ve submitted a support ticket yet (if so, feel free to DM me or post it here).
There are a couple other things to check here, first, see the attached screenshot. This shows verifying the existence of the recording rule. You can get to this UI by clicking the bell icon in the left nav (Alerting), then selecting the filter for Recording rules, and expanding the rule group highlighted.
If that’s there, the next thing we want to confirm is that the two metrics used in the rule are reporting correctly.
As Melody stated, one of those is a cAdvisor metric, and the other comes from kube-state-metrics (ksm). Given the other graph you showed, of a ksm metric, which was not displaying information as expected, I suspect you may not be running ksm, or it may be misconfigured.
How did you deploy ksm?
Are there any metrics populating with a job integrations/kubernetes/kube-state-metrics?
I deployed ksm via helm using the explanation in the Integrations and Connections → Kubernetes Monitoring part. As I had it running previously, I even uninstalled the existing, and went through all the steps again. I would like to look it up again, but, unfortunately, when clicking on Integrations and Connections the kubernetes monitoring integration (https://XXX.grafana.net/a/grafana-k8s-app/cluster) says it is not installed:
Further, I cannot open the panel “Kubernetes Monitoring”