LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

adaptive-metrics

Cut Grafana Cloud Metrics cost by shrinking active-series count with Adaptive Metrics aggregation rules — auto-recommendations from query history, custom exact/regex rules, label-drop config, unused-metric detection, and Alloy remote_write fallback. Use when investigating a high Mimir/Grafana Cloud bill, hunting high-cardinality labels (`pod_uid`, `service_instance_id`, `version`), pre-aggregating counters/gauges, dropping unused metrics, or measuring `grafanacloud_instance_active_series` before

203stars17forksUpdated 7/27/2026
Developer Tools#grafana#prometheus#api-client#observability#metrics#cost-optimization

Security Assessment

Safe(92/100)
Security Score92/100

About adaptive-metrics

adaptive-metrics is a Grafana Cloud cost-management skill that reduces Grafana Cloud Metrics spend by shrinking active-series count using Adaptive Metrics aggregation rules. It solves the problem of an exploding or expensive active-series bill — often caused by high-cardinality labels such as pod_uid, service_instance_id, or version — by pre-aggregating metrics before storage so that dropped labels no longer count toward billing, while the original high-cardinality samples keep flowing. It triggers even on general phrasing like "reduce cardinality", "too many series", or "metrics spend".

The skill documents three main workflows against the Adaptive Metrics API (adaptive-metrics.grafana.net, Bearer auth with a metrics:write key): reviewing and applying auto-recommendations sorted by series-reduction impact, hand-writing custom exact- or regex-match rules that drop specified labels with a chosen aggregation type, and dropping unused metrics entirely (using usage analysis plus an Alloy write_relabel_config drop). Each workflow captures a baseline series count, applies the change, and verifies the drop by re-querying the metrics endpoint (prometheus-prod-XX.grafana.net, basic auth with a metrics:read token) and checking grafanacloud_instance_active_series and grafanacloud_instance_active_series_dropped_by_aggregation_rules. It emphasizes safety checks — grepping dashboards, alerts, and recording rules before dropping a label or metric — and documents rollback by listing and deleting rules or disabling them in the UI. A references/api.md file details full payloads for exact and regex rules and aggregation types. All credentials are shown as placeholders; there is no exfiltration.

It targets platform engineers, SREs, and observability owners investigating a high Mimir/Grafana Cloud bill. Use cases include applying recommended aggregations, dropping a specific label like version, removing unused metrics, and measuring active-series before and after.

FAQ

What does Adaptive Metrics actually reduce?

It reduces billed active-series count by pre-aggregating high-cardinality metrics before storage. The original samples keep flowing, but labels dropped by aggregation rules no longer count toward billing.

What are the prerequisites?

A paid Grafana Cloud Metrics plan, an API key with metrics:write for the Adaptive Metrics API (Bearer auth), a metrics:read token plus numeric metrics user for the query endpoint (basic auth) used in verification, and access to Home → Adaptive Metrics in the Cloud portal.

Can I undo a rule if it drops something important?

Yes. Rollback is documented: list rules and DELETE the offending rule via the API, or disable it in the UI. The skill also advises grepping dashboards, alerts, and recording rules before dropping any label or metric.

How long do changes take to show up?

Rules take effect within about 5 minutes, and full billing impact appears within about an hour. Unused-metric drops via Alloy should clear from series counts after about 10 minutes.

How do I measure the impact?

Query grafanacloud_instance_active_series for total billed series and grafanacloud_instance_active_series_dropped_by_aggregation_rules for series specifically dropped by Adaptive Metrics rules, comparing counts before and after.

All Files

2 files
SKILL.md5.2 KB
View
references/api.md3.3 KB
View

Install adaptive-metrics

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

grafana/skills

Related Skills

pulumi-esc

78

skill-name

1,884

defold-core

5,619

animated-infographic

16