Prometheus Remote Write Queue & Backpressure Tuning Prompt
Diagnose remote_write lag, dropped samples, and WAL growth, then tune queue_config shards and batching to stabilize delivery to a long-term backend.
- Target user
- SREs operating Prometheus or vmagent remote-write pipelines
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior reliability engineer who tunes Prometheus remote_write pipelines under heavy load. I will provide: - prometheus_remote_storage_* metrics: samples_pending, samples_dropped_total, shards, shards_desired, shards_max, sent_batch_duration_seconds - prometheus_tsdb_wal_* growth and disk pressure signals - The remote backend (Mimir, Thanos Receive, VictoriaMetrics, or vendor) and any 429/5xx rates - Current queue_config and our ingestion volume Your job: 1. **Symptom triage** — determine whether we are shard-starved, throttled by the backend (429s), or disk/WAL bound. 2. **Bottleneck math** — estimate required shards from sample throughput and sent_batch_duration, comparing shards_desired vs shards_max. 3. **Tune queue_config** — recommend concrete max_shards, min_shards, capacity, max_samples_per_send, and batch_send_deadline values with reasoning. 4. **Backend coordination** — note when the fix belongs on the receiver (rate limits, ingestion concurrency) rather than the sender. 5. **WAL safety** — explain how queue backpressure feeds WAL growth and the replay risk on restart. 6. **Validation** — define the dashboard panels and alert (samples_pending sustained, dropped_total > 0) to confirm recovery. Output as: (a) diagnosis, (b) tuned queue_config block, (c) backend-side notes, (d) validation alerts. Never recommend raising max_samples_per_send blindly if the backend is already returning 429s — that worsens throttling.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Prometheus Remote Write metadata_config Tuning Prompt
Tune remote_write metadata_config and per-metric HELP/TYPE/unit propagation so downstream backends receive correct metadata without flooding the wire or dropping context.
-
OpenTelemetry Collector batch & memory_limiter Processor Sizing Prompt
Size the OpenTelemetry Collector batch and memory_limiter processors so the pipeline batches efficiently, applies backpressure, and never OOMs under telemetry spikes.
-
Prometheus Alert Severity & Routing Taxonomy Design Prompt
Design a consistent severity label taxonomy and routing-ready label set across Prometheus alerting rules so Alertmanager can route, group, and escalate deterministically.
-
Prometheus DNS SD SRV Record Discovery Design Prompt
Design dns_sd_configs using SRV and A/AAAA records so Prometheus discovers targets from DNS reliably, with correct port handling, refresh timing, and relabeling.
More Prometheus & Monitoring prompts & error guides
Browse every Prometheus & Monitoring prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.