Run Prometheus in Agent mode for remote-write-only scraping without local querying

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

Steps

  1. Start Prometheus with the `--agent` flag and a dedicated `--storage.agent.path` for its write-ahead log
  2. Keep the same `scrape_configs`, service discovery, and relabeling rules used in normal server mode
  3. Configure `remote_write` to point at your long-term storage or metrics backend
  4. Confirm local querying, recording rules, and alerting are unavailable in this mode by design
  5. Use the read-only web UI (default port 9095) to inspect targets, service discovery, and config, not to run queries
  6. Size the WAL for your expected remote-write outage tolerance, since samples are held until successfully shipped

Known gotchas

Related routes

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
Configure Prometheus remote_write to forward metrics to a remote storage backend
prometheus.io · 5 steps · unrated
Configure Prometheus remote-write 2.0 to reduce bandwidth to a long-term storage backend
prometheus.io · 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