Distinguish an absent Prometheus series from a measured zero

Instant queries return samples subject to lookback and staleness rather than inventing a value for missing data.

Resilient network core with engineered blue and gold data paths.
DSE visual intelligenceNetworks & infrastructureGuide · 2 min read
Executive summary

What you need to know

Instant queries return samples subject to lookback and staleness rather than inventing a value for missing data.

Potentially affected

This concerns PromQL instant-selector behavior. Exporters supplying their own timestamps and environment-specific settings can introduce documented differences that require separate review.

DSE recommendation

DSE recommends treating no data as an explicit state in dashboards and alert design.

Instant queries return samples subject to lookback and staleness rather than inventing a value for missing data.

Source facts

Prometheus instant selection uses the newest sample within the lookback period. The default lookback is five minutes unless configured otherwise. A series marked stale is not returned for evaluations after that marker until new samples arrive. A missing result can therefore reflect collection or lifecycle state, rather than a numeric zero from the application.

Source: Prometheus documentation — Querying basics.

Applicability

This concerns PromQL instant-selector behavior. Exporters supplying their own timestamps and environment-specific settings can introduce documented differences that require separate review.

DSE recommendation

DSE recommends treating no data as an explicit state in dashboards and alert design. Compare target health, sample freshness, label changes, and query evaluation time before substituting a zero. Decide whether absent data should trigger a collection alert, an application alert, or an intentional inactive state. Keep the distinction visible in reports so a vanished workload cannot appear healthy merely because a display fills blanks. Record any lookback override with the query’s intended use.

Verification

In a test scrape target, compare a real zero sample, a stopped export, and a changed label set. Inspect the instant query at relevant evaluation times and compare it with available historical samples. Confirm the dashboard and alert handle each condition according to the documented operational decision. Retain evaluation times, target identity and the actual returned samples beside the display behavior. Ask the dashboard owner to approve the absent-data state, including what a responder sees when collection itself has stopped.

Official reference

Prometheus documentation — Querying basics. Reviewed October 20, 2026.

Primary reference

Review the official source

Prometheus documentation — Querying basics · Verified October 20, 2026

Open official reference ↗
Plan the next step

Need help applying this guidance safely?

DSE can help confirm applicability, protect service continuity, and validate the result across physical security and IT systems.

Talk with DSE