Interview Prep/Monitoring & Observability/Kubernetes monitoring and the Prometheus Operator

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).

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Kubernetes monitoring and the Prometheus Operator