Diagnostic step 1
Enable or increase --storage.tsdb.min-block-duration (e.g., to 2h) to lower compaction frequency and test impact on query latency.
Generated Oct 19, 2026, 9:33:36 AM
Enable or increase --storage.tsdb.min-block-duration (e.g., to 2h) to lower compaction frequency and test impact on query latency.
Tune remote_write concurrency and batch size (reduce in-flight requests) to avoid WAL backlog; monitor queue_length.
Offload reads: deploy a Thanos sidecar or Cortex read path so queries hit a read replica during compaction.
Increase disk IO (faster NVMe or separate disks) and size Prometheus resources (CPU) temporarily to observe compaction time changes.
If immediate fix needed, stagger ingestion jobs to smooth spikes or temporarily disable some noncritical scrapes during the window.