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
Write an Alloy configuration file using the River syntax defining a prometheus.scrape component pointing at target endpoints
Add a prometheus.remote_write component with the Mimir endpoint URL, tenant ID header (X-Scope-OrgID), and optional TLS config
Connect the scrape component's forward_to output to the remote_write component's receiver input
Run alloy run config.alloy and inspect the built-in UI at localhost:12345 to verify targets are scraped successfully
Add a prometheus.relabel component between scrape and remote_write to drop high-cardinality labels before forwarding
Known gotchas
Alloy's River configuration syntax uses component references, not YAML; attempting to write YAML blocks inside .alloy files causes parse errors
The X-Scope-OrgID header is mandatory for multi-tenant Mimir; omitting it sends data to the anonymous tenant which may be disabled
Alloy replaces the Grafana Agent Static and Flow modes but uses different component names; Agent Flow configs require migration using the alloy convert command
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp