HPA shows `unknown` targets: `failed to get cpu utilization: missing request for cpu`
BeginnerTroubleshootingKubernetes monitoring and the Prometheus Operator
Answer
Likely causes → CPU utilisation is computed as a percentage of requests; a container without resources.requests.cpu makes it impossible.
Diagnose → kubectl describe hpa checkout shows the event.
Fix → Set CPU requests on every container in the pod (including sidecars).
Prevent → Enforce requests with LimitRange or a policy engine (Kyverno/Gatekeeper).
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