Remote write logs `Skipping resharding, last successful send was beyond threshold` and the queue keeps growing
AdvancedTroubleshootingPrometheus storage, memory and cardinality
Answer
Likely causes → The receiver is slow or rejecting, network latency is high, or max_shards is too low for the ingest rate.
Diagnose →
prometheus_remote_storage_highest_timestamp_in_seconds - ignoring(remote_name, url) group_right prometheus_remote_storage_queue_highest_sent_timestamp_seconds
prometheus_remote_storage_shards_desired
rate(prometheus_remote_storage_samples_retried_total[5m])
Fix → Fix receiver health first; then tune queue_config (max_shards, capacity, max_samples_per_send: 2000+). Drop unneeded series with write_relabel_configs.
Prevent → Alert when remote write lag exceeds a few minutes; the WAL only covers ~2h of buffering.
More on Prometheus storage, memory and cardinality
Prometheus pod restarts with `OOMKilled` every few hoursIntermediateA query fails with `query processing would load too many samples into memory in query execution`IntermediateHead series jumped from 2M to 9M after a deployAdvancedPrometheus logs `opening storage failed: ... unexpected EOF` / `corruption in segment` and won't startAdvancedPrometheus is in CrashLoopBackOff with `no space left on device`BeginnerPrometheus takes 15 minutes to become ready after a restartAdvanced