Configure Grafana Adaptive Metrics aggregation rules in Grafana Cloud to reduce time series cardinality without losing query fidelity

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

Steps

  1. In Grafana Cloud, open the Adaptive Metrics plugin (Cost Management > Adaptive Metrics) and review the Recommendations tab, which lists high-cardinality metrics with suggested aggregation rules
  2. For each recommended rule, examine which labels are proposed for removal (drop_labels) and verify no active dashboard or alert queries filter or group by those labels
  3. Accept recommendations individually via the UI, or export all recommendations to a YAML/JSON rule file for review in code
  4. Apply custom or accepted rules via the Adaptive Metrics HTTP API: fetch the current rules set, merge your changes, and PUT the updated rules array back to the API endpoint
  5. Monitor the Active Series metric in Grafana Cloud to confirm cardinality reduction takes effect within 5–10 minutes of rule application
  6. Manage rules at scale with the Adaptive Metrics Terraform provider (grafana_metrics_rules) to keep aggregation config version-controlled alongside your other IaC

Known gotchas

Related routes

Write PromQL recording rules to pre-aggregate high-cardinality metrics and speed up dashboard queries
prometheus.io · 5 steps · unrated
Write Grafana Loki LogQL metric queries and manage label cardinality
grafana.com · 5 steps · unrated
Control Grafana Loki stream cardinality by applying label best practices and configuring per-tenant stream limits
grafana.com/docs/loki · 6 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