Configure Grafana Alloy (the successor to the Grafana Agent) to scrape Prometheus metrics and forward them to Grafana Mimir via remote_write

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

Steps

  1. Write an Alloy configuration file using the River syntax defining a prometheus.scrape component pointing at target endpoints
  2. Add a prometheus.remote_write component with the Mimir endpoint URL, tenant ID header (X-Scope-OrgID), and optional TLS config
  3. Connect the scrape component's forward_to output to the remote_write component's receiver input
  4. Run alloy run config.alloy and inspect the built-in UI at localhost:12345 to verify targets are scraped successfully
  5. Add a prometheus.relabel component between scrape and remote_write to drop high-cardinality labels before forwarding

Known gotchas

Related routes

Run Prometheus in Agent mode for remote-write-only scraping without local querying
prometheus.io · 6 steps · unrated
Configure Prometheus remote_write to forward metrics to a remote storage backend
prometheus.io · 5 steps · unrated
Configure Grafana Pyroscope pull mode with Grafana Alloy to scrape pprof endpoints from Go services and store profiles in Pyroscope
grafana.com/docs/pyroscope · 6 steps · unrated

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

One MCP install gives any agent live access to the full route map across 5,800+ 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