Configure Prometheus remote_write to forward metrics to a remote storage backend

domain: prometheus.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. In your prometheus.yml add a 'remote_write:' block with 'url:' pointing to the remote storage write endpoint (e.g. Cortex, Thanos Receive, or a hosted service endpoint)
  2. Add authentication under the remote_write entry using 'basic_auth:', 'bearer_token:', or 'authorization:' with credentials field referencing a file path rather than inline secrets
  3. Tune queue parameters under 'queue_config:' — set 'max_samples_per_send', 'capacity', and 'max_shards' based on your expected throughput to prevent sample drops
  4. Optionally add 'write_relabel_configs:' to filter or rename metric families before sending, reducing remote write volume for high-cardinality series
  5. Reload Prometheus config with a SIGHUP or POST to /-/reload and monitor the 'prometheus_remote_storage_*' metrics to confirm samples are being sent and not dropped

Known gotchas

Related routes

Configure Prometheus remote-write 2.0 to reduce bandwidth to a long-term storage backend
prometheus.io · 5 steps · unrated
Configure Thanos Receive to accept Prometheus remote-write metrics for long-term storage without sidecars
thanos.io · 6 steps · unrated
Configure Grafana Alloy (the successor to the Grafana Agent) to scrape Prometheus metrics and forward them to Grafana Mimir via remote_write
grafana.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans