From grafana-k6
Reduces Grafana Cloud costs by attributing spend to teams and reducing telemetry volume with Adaptive Metrics, Logs, and Traces. Includes usage alerts and optimization checklist.
How this skill is triggered — by the user, by Claude, or both
Slash command
/grafana-k6:cost-managementThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Docs**: https://grafana.com/docs/grafana-cloud/cost-management-and-billing/
Docs: https://grafana.com/docs/grafana-cloud/cost-management-and-billing/
Reduce metric / log / trace spend with Adaptive signals + cost-attribution labels.
metrics:write + logs:write (+ traces:write)# 1. Add external labels in Alloy (metrics + logs configs)
prometheus.remote_write "cloud" {
endpoint { url = sys.env("PROMETHEUS_URL") /* ... */ }
external_labels = { team = "platform", project = "checkout-service" }
}
# 2. Reload Alloy
curl -X POST http://localhost:12345/-/reload
# 3. Verify labels arrived in Grafana Cloud
# In Explore, run: count by (team, project) ({__name__=~".+"})
# Then visit Cost Management → group by `team` / `project`
See references/adaptive-signals.md for the full Alloy snippet.
# 1. Pull recommendations
curl https://<stack>.grafana.net/api/plugins/grafana-adaptive-metrics-app/resources/v1/recommendations \
-H "Authorization: Bearer <token>" | jq '.recommendations | length'
# 2. In the UI: Grafana Cloud → Adaptive Metrics → review rules sorted by series-reduction impact
# 3. Test in "Preview" mode before applying
# 4. Apply (takes effect within 5 min)
# 5. Verify — series count should drop on the affected metrics
# Before applying, capture baseline:
# count({__name__="http_request_duration_seconds_bucket"})
# Wait 10 min after apply, run again — expect 10x+ reduction for high-card metrics.
# Rollback if needed: open the rule in the UI → Disable, or DELETE /v1/rules/<id>.
# 1. Add a filter stage (see references/adaptive-signals.md for the full block)
loki.process "filter_logs" {
forward_to = [loki.write.cloud.receiver]
stage.drop { expression = ".*GET /health.*" }
}
# 2. Reload Alloy
curl -X POST http://localhost:12345/-/reload
# 3. Verify the filter — health logs should NOT appear in Logs Drilldown
# LogQL check (should return 0):
# sum(rate({app="my-app"} |= "GET /health" [5m]))
# Bytes-ingested should also drop. Compare 24h before/after:
# sum(increase(loki_ingester_chunk_size_bytes_sum[24h])) by (namespace)
See references/alerts-and-queries.md for ready-to-paste rules (MetricsUsageHigh, LogsIngestionHigh).
team + project external labels to every Alloy configreferences/adaptive-signals.md — Adaptive Metrics / Logs / Traces config; cost-attribution labelsreferences/alerts-and-queries.md — usage alert rules, cost-finding PromQL, billing-unit table2plugins reuse this skill
First indexed Jul 2, 2026
npx claudepluginhub grafana/skills --plugin grafana-datasourcesQueries Prometheus and Loki billing metrics via Grafana API for active series, ingestion rates, storage usage, cardinality, and observability costs.
Creates Adaptive Metrics aggregation rules to reduce Grafana Cloud active-series count and lower costs. Handles auto-recommendations, custom rules, label dropping, and unused metric detection.
Query and analyze a Dynatrace tenant's actual billing and usage data with DQL — DPS consumption breakdown, cost ranking, chargeback, trends, and entity-level drill-down.