Interview Prep/Monitoring & Observability/PromQL and recording rules

Query with `offset 1w` returns empty while the current value exists

BeginnerTroubleshootingPromQL and recording rules
Answer

Likely causes → Retention is shorter than one week, or the series did not exist then (label change, renamed metric).

Diagnose → Check --storage.tsdb.retention.time on /flags and prometheus_tsdb_lowest_timestamp.

Fix → Query long-term storage (Thanos/Mimir), or extend retention.

Prevent → Keep week-over-week comparisons on a long-term store.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on PromQL and recording rules