staleness
How Prometheus marks a series as ended when its target stops reporting it, so graphs stop rather than dropping to zero.
In more detail
A missing series and a series with value zero behave very differently in queries and alerts. After a target disappears its series are marked stale and simply end.
Related terms
- time series — A sequence of timestamped values for one metric name with one exact set of label values.
- up metric — A series Prometheus writes for every target after each scrape: 1 if the fetch worked and 0 if it failed.
- alerting rule — A Prometheus rule with a PromQL expression that describes an unhealthy condition, plus a for duration, labels and annotations.
Taught in
- Prometheus Scraping And The Pull Model — Full-Stack Observability: Metrics, Tracing & Logging
- Forty Seconds At Two: Push, Pull And Service Discovery — Prometheus Certified Associate (PCA) Exam Prep
- The Server That Would Not Die: Selecting Data — Prometheus Certified Associate (PCA) Exam Prep
- The Export That Failed Quietly: Timestamp Metrics — Prometheus Certified Associate (PCA) Exam Prep
- Paged Three Minutes Late: Alerting Rules — Prometheus Certified Associate (PCA) Exam Prep
- Alerting Sprint: Eleven Calls In Three Rounds — Prometheus Certified Associate (PCA) Exam Prep