Interview Prep/Monitoring & Observability/Scaling Prometheus, Long-Term Storage & HA

What is the role of out-of-order ingestion, and when do you enable it?

AdvancedProductionScaling Prometheus, Long-Term Storage & HA
Answer

Prometheus traditionally rejects samples older than the head's latest for a series (out of order sample). With storage.tsdb.out_of_order_time_window (Prometheus 2.39+, also in Mimir) it accepts late samples within a window:

storage:
  tsdb:
    out_of_order_time_window: 30m

Enable it for remote_write from agents with network interruptions, IoT, or backfilled data. It costs extra memory and compaction work, so keep the window small.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Scaling Prometheus, Long-Term Storage & HA