Interview Prep/Monitoring & Observability/Grafana, Dashboards and Kubernetes Monitoring

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 →

  1. Alert on sum by (namespace) (kube_pod_status_phase{phase="Pending"}) > 0 for 10m.
  2. Track cluster requests versus allocatable: sum(kube_pod_container_resource_requests{resource="cpu"}) / sum(kube_node_status_allocatable{resource="cpu"}).
  3. Monitor Cluster Autoscaler or Karpenter metrics (e.g. unschedulable pods, provisioning errors).
  4. 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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Grafana, Dashboards and Kubernetes Monitoring