How do you monitor cluster capacity and scheduling headroom?
IntermediateProductionKubernetes & Multi-Cluster Observability
Answer
Track requested versus allocatable resources, not raw usage, because the scheduler places pods on requests.
sum(kube_pod_container_resource_requests{resource="cpu"})
/ sum(kube_node_status_allocatable{resource="cpu"})
sum(kube_pod_status_phase{phase="Pending"}) > 0
Alert (ticket) when request utilisation stays above 85% with no autoscaler able to add nodes, and page when pods sit Pending for 10+ minutes in production namespaces. With Cluster Autoscaler or Karpenter, also watch their own metrics for failed scale-ups (cloud quota, no capacity in an AZ).
More on Kubernetes & Multi-Cluster Observability
Which `kube-prometheus-stack` values do you always change before going to production?IntermediateOn a managed control plane (EKS, GKE, AKS), which default components and rules do you turn off?IntermediateOne Prometheus per cluster or one central Prometheus scraping every cluster?AdvancedHow do you make sure every series can be traced back to its cluster and environment?BeginnerKarpenter replaces nodes every few hours. How do you keep monitoring cheap and useful?AdvancedHow do you use metrics to right-size requests and limits across the cluster?Intermediate