How do you use metrics to right-size requests and limits across the cluster?
IntermediateProductionKubernetes & Multi-Cluster Observability
Answer
Compare actual usage percentiles over a week or two with the requests. Over-requested pods waste node capacity; under-requested pods get throttled or evicted.
# CPU request utilisation per workload, p95 over 7 days
quantile_over_time(0.95,
sum by (namespace, pod) (rate(container_cpu_usage_seconds_total{container!=""}[5m]))[7d:5m])
/
sum by (namespace, pod) (kube_pod_container_resource_requests{resource="cpu"})
We publish a weekly "top wasted cores and GiB" report per namespace, and run VPA in Off (recommendation) mode or use Goldilocks so teams see a suggested request. Memory requests should cover peak usage; CPU requests can sit around p90 with no CPU limit for latency-sensitive services.
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 monitor GPU nodes running ML workloads?Intermediate