How do HPA custom/external metrics work and what do you need installed?
AdvancedConceptScheduling, Resources & Autoscaling
Answer
HPA queries aggregated APIs: metrics.k8s.io (metrics-server), custom.metrics.k8s.io (via Prometheus Adapter or similar, per-object metrics like requests/sec) and external.metrics.k8s.io (queue depth, CloudWatch). KEDA wraps this with event-driven scalers and can scale to zero, which plain HPA cannot (minReplicas >= 1 unless the alpha HPAScaleToZero feature gate is enabled).