In this article
A PromQL range-query step, selector window and at anchor are different controls; record all query boundaries to reproduce a fixed incident baseline.
A recovery report compares every graph point with what was intended to be one fixed pre-incident baseline, but the baseline moves as the graph advances. PromQL distinguishes evaluation time, selector range and query-range step. Use an explicit anchor when the question requires one historical reference instead of an independently moving window at each step.
Separate the time dimensions
An instant query evaluates at one timestamp. A range query repeats evaluation at equally spaced timestamps between its start and end. A range selector describes input history relative to its evaluation, while the API step describes output evaluation spacing. Making graph points farther apart does not by itself lengthen the selector’s measurement window or fix its historical endpoint.
Anchor the relevant selector
The at modifier binds a selector to a specified evaluation timestamp. In a range query, start() and end() resolve to the query boundaries and remain constant across its steps. They therefore describe different references from a selector that follows each step’s timestamp. Record which selector is anchored; other parts of a larger expression can still evaluate at the moving query time.
Preserve offset meaning
Offset shifts the selected data relative to the applicable evaluation anchor. It is not a timezone conversion or a request to rewrite stored sample timestamps. Keep the anchor and offset with the expression so a reader can reconstruct the intended historical boundary. A visually plausible comparison can otherwise mix one fixed operand with another unexpectedly moving operand.
Record the query request
Retain the exact expression, query start, query end and step or instant evaluation time. A screenshot alone cannot reproduce these semantics. An end() anchor changes if the report is rerun with a different end boundary, even when the expression text is unchanged. A fixed timestamp can be more appropriate when the artifact must retain one exact historical reference across reruns.
Check a small fixture
Use offline rule or expression fixtures with an intentionally changing series and known observation times. Compare moving and anchored selections before applying the interpretation to incident data. This verifies temporal meaning without claiming that a baseline establishes service recovery or an SLO result. Historical data availability, lookback behavior and the selected measurement population still bound the conclusion independently of a correct anchor.
Primary references
PromQL Evaluation Timestamps and Selectors.
Prometheus HTTP API Rule Inspection.
Related reading: Monotonic clocks for inference API latency measurements; Inference SLO burn rates: multi-window alerting.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.