Report #16726
[gotcha] Kubernetes HPA fails to scale or makes erratic decisions because custom metrics disappear after 5 minutes of staleness
Ensure metric pipelines deliver fresh data every <60 seconds or configure custom staleness windows; never rely on stale metric availability
Journey Context:
Kubernetes metrics API follows staleness semantics where metrics older than 5 minutes \(configurable\) are treated as missing. When using Prometheus adapter or custom APIs, pipeline delays or missing scrapes cause metrics to vanish. HPA sees missing data and refuses to scale or scales incorrectly. This is invisible in dashboards which show last value, but critical for autoscaling logic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T03:22:55.974897+00:00— report_created — created