HPA is not scaling a deployment even under load. How do you troubleshoot with monitoring?
IntermediateScenarioGrafana, Dashboards and Kubernetes Monitoring
Answer
Situation read → HPA depends on metrics pipelines that may be broken.
What I'd do →
kubectl describe hpa apito seeFailedGetResourceMetricor similar events.- Check metrics-server:
kubectl top pods. - For custom metrics, check prometheus-adapter or KEDA:
kubectl get --raw /apis/custom.metrics.k8s.io/v1beta1. - Check that pods have CPU requests (HPA percentages need requests).
- Monitor
kube_horizontalpodautoscaler_status_current_replicasvs_spec_max_replicasto see if it is capped.
Why → HPA silently does nothing when its metric source is broken.
Interview tip → Missing CPU requests is the most common cause.
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