What is staleness in Prometheus?

AdvancedConceptPrometheus Architecture
Answer

When a target disappears or a series is no longer exposed, Prometheus writes a special stale marker (a NaN) so queries stop returning that series immediately instead of showing the last value. If no stale marker exists (for example data pushed via remote_write or a scrape gap), an instant query looks back at most --query.lookback-delta (default 5m) for the latest sample.

That is why a dead pod's series vanishes from graphs right away, and why gaps longer than 5 minutes show as missing data.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus Architecture