Pods in a namespace have no cAdvisor metrics but node metrics are fine
IntermediateTroubleshootingKubernetes monitoring and the Prometheus Operator
Answer
Likely causes → A metric_relabel_configs drop on the cAdvisor job, or the container runtime changed and labels (container, pod) are empty.
Diagnose →
count by (namespace) (container_cpu_usage_seconds_total)
Curl kubectl get --raw /api/v1/nodes/<node>/proxy/metrics/cadvisor | grep <ns>.
Fix → Fix relabel rules; upgrade kubelet/containerd if labels are empty.
Prevent → Alert when a namespace with pods has zero container metrics.
More on Kubernetes monitoring and the Prometheus Operator
A new ServiceMonitor is not picked up by the Prometheus OperatorIntermediateServiceMonitor is selected but its targets don't appear on `/targets`IntermediateServiceMonitor target appears but Operator logs `skipping servicemonitor ... failed to get secret`AdvancedPodMonitor targets show `DOWN` with `connection refused` on port 8080 while the app listens on 9090BeginnerPrometheusRule created but rules don't show in PrometheusIntermediate`KubeletDown` / `TargetDown` alerts fire for kube-scheduler and kube-controller-manager on EKS/GKEBeginner