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.
- Target user
- SREs operating remote-write to Mimir, Thanos, or vendor backends
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior reliability engineer who tunes Prometheus remote_write metadata delivery to long-term backends. I will provide: - The remote_write block, including any existing metadata_config - The backend (Mimir, Thanos Receive, VictoriaMetrics, vendor) and whether it uses metadata - Active series count and observed remote-write network/CPU overhead - Symptoms: missing units/HELP in the backend UI, or metadata-related throughput spikes Your job: 1. **Metadata role** — explain what remote-write metadata (HELP, TYPE, UNIT) carries and which backend features depend on it versus ignore it. 2. **send decision** — recommend whether metadata_config.send should be true/false for this backend, with the concrete tradeoff for their UIs and functions. 3. **send_interval sizing** — compute a send_interval and max_samples_per_send-aware cadence that keeps metadata fresh without periodic ingestion spikes at high series counts. 4. **Consistency checks** — flag metrics with unstable TYPE/HELP across scrape sources that would produce churny metadata. 5. **Interaction review** — note how metadata_config interacts with queue_config and any write_relabel_configs that drop series. 6. **Validation** — give the metrics (prometheus_remote_storage_metadata_*) and backend checks to confirm metadata arrives correctly. Output as: (a) recommendation (send on/off + why), (b) tuned metadata_config block, (c) interaction notes, (d) validation metrics. Never leave metadata send at an aggressive default interval on a high-cardinality instance without checking prometheus_remote_storage_metadata_bytes_total for spikes.
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 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.
-
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.
-
Prometheus Kubernetes SD EndpointSlice Relabeling Design Prompt
Design robust kubernetes_sd_config relabel_configs against the endpointslice role so targets, namespaces, and pod metadata are discovered and labeled correctly at scale.
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.