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

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 →

  1. kubectl describe hpa api to see FailedGetResourceMetric or similar events.
  2. Check metrics-server: kubectl top pods.
  3. For custom metrics, check prometheus-adapter or KEDA: kubectl get --raw /apis/custom.metrics.k8s.io/v1beta1.
  4. Check that pods have CPU requests (HPA percentages need requests).
  5. Monitor kube_horizontalpodautoscaler_status_current_replicas vs _spec_max_replicas to 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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Grafana, Dashboards and Kubernetes Monitoring