Interview Prep/Monitoring & Observability/Prometheus storage, memory and cardinality

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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus storage, memory and cardinality