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.
More on Scaling Prometheus, Long-Term Storage & HA
What are the practical limits of a single Prometheus server?IntermediateWhen does hierarchical federation still make sense?IntermediateHow do you shard Prometheus scraping, and what do you lose?AdvancedCompare Thanos, Grafana Mimir and VictoriaMetrics.AdvancedThanos sidecar versus Thanos Receive: how do you choose?AdvancedWhat is Prometheus agent mode and when do you use it?Intermediate