Pods are stuck in `Pending` for minutes during peaks. What do you monitor and alert on?
IntermediateScenarioGrafana, Dashboards and Kubernetes Monitoring
Answer
Situation read → Scheduling capacity or autoscaler problems.
What I'd do →
- Alert on
sum by (namespace) (kube_pod_status_phase{phase="Pending"}) > 0for 10m. - Track cluster requests versus allocatable:
sum(kube_pod_container_resource_requests{resource="cpu"}) / sum(kube_node_status_allocatable{resource="cpu"}). - Monitor Cluster Autoscaler or Karpenter metrics (e.g. unschedulable pods, provisioning errors).
- Check events:
kubectl get events --field-selector reason=FailedScheduling.
Why → Pending pods mean lost capacity during exactly the peak you scaled for.
Interview tip → Requests-based capacity, not actual usage, determines scheduling.
More on Grafana, Dashboards and Kubernetes Monitoring
Grafana has 900 dashboards and nobody can find anything. How do you clean it up?IntermediateHow do you manage Grafana dashboards as code?IntermediateDesign a service overview dashboard that an on-call engineer can read in 10 seconds.BeginnerYou need to show deploy events on every Grafana graph. How?BeginnerPods are being OOMKilled but the memory graph never reaches the limit. Why?IntermediateHow do you detect CPU throttling hurting latency in Kubernetes?Intermediate