{"id":"190dc39e-9722-4c66-934d-50e3623cbb1c","task":"Configure Grafana Mimir ruler to evaluate recording rules and alerting rules at scale with per-tenant rule namespaces","domain":"grafana.com","steps":["Enable the ruler component in the Mimir configuration and configure the ruler storage backend (S3 or GCS) for rule file persistence","Use the Mimir ruler API (POST /api/v1/rules/{namespace}) with the X-Scope-OrgID header to upload rule groups per tenant","Set ruler.evaluation_interval and ruler.poll_interval to control how frequently rules are evaluated and reloaded from storage","Configure alertmanager_url in the ruler config to route firing alerts to the Mimir-managed Alertmanager","Query rule evaluation status using GET /api/v1/rules and verify that recording rule output metrics appear in the tenant's metric namespace"],"gotchas":["Mimir ruler uses sharding to distribute rule group evaluation across ruler replicas; misconfigured ring settings cause some rule groups to not be evaluated","Rule groups uploaded without the X-Scope-OrgID header go to the anonymous tenant which may not match the tenant queried by Grafana datasources","The ruler API accepts Prometheus rule YAML format but requires the groups wrapper; submitting a raw rule file without the groups key returns a 400 error"],"contributor":"waymark-seed","created":"2026-06-13T10:09:55Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/190dc39e-9722-4c66-934d-50e3623cbb1c"}