admission-control
Use when the user asks to "write a validator", "add validation", "implement admission…
Find the Prometheus metrics that drive your Grafana Cloud bill. `dpm-finder` is a Grafana Professional Services CLI that ranks metrics by Data Points per Minute (DPM) with per-label-set breakdown, optional `--cost-per-1000-series` pricing, and a Prometheus-exporter mode. Use
$ npx -y skills add grafana/skills --skill dpm-finder --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/dpm-finderContext preview
The summary Claude sees to decide when to auto-load this skill.
Find the Prometheus metrics that drive your Grafana Cloud bill. `dpm-finder` is a Grafana Professional Services CLI that ranks metrics by Data Points per Minute (DPM) with per-label-set breakdown, optional `--cost-per-1000-series` pricing, and a Prometheus-exporter mode. Use
name: dpm-finder license: Apache-2.0 description: Find the Prometheus metrics that drive your Grafana Cloud bill. `dpm-finder` is a Grafana Professional Services CLI that ranks metrics by Data Points per Minute (DPM) with per-label-set breakdown, optional `--cost-per-1000-series` pricing, and a Prometheus-exporter mode. Use when investigating high Grafana Cloud spend, hunting noisy / high-cardinality metrics, comparing pre/post recording-rule cardinality, or feeding cost data into dashboards — even when the user says "why is my Mimir bill so high?", "find the biggest metrics", "cardinality offenders", or "optimize Prometheus cost" without naming dpm-finder.
Grafana PS tool ranking Prometheus metrics by DPM with per-series breakdown. Source: https://github.com/grafana-ps/dpm-finder
# 1. Clone + venv + install git clone https://github.com/grafana-ps/dpm-finder.git cd dpm-finder python3 -m venv venv && source venv/bin/activate pip install -r requirements.txt # 2. Configure creds — copy .env_example → .env and fill in: # PROMETHEUS_ENDPOINT https://prometheus-<cluster_slug>.grafana.net (NOTHING after .net) # PROMETHEUS_USERNAME <numeric stack id> # PROMETHEUS_API_KEY glc_… # 3. Verify creds before scanning — should return >0 series count curl -s -u "$PROMETHEUS_USERNAME:$PROMETHEUS_API_KEY" \ "$PROMETHEUS_ENDPOINT/api/v1/label/__name__/values" | jq '.data | length' # 4. Run the scan (10-min lookback, 2.0 DPM minimum, top output) ./dpm-finder.py -f json -m 2.0 -t 8 --timeout 120 -l 10 # 5. Read the result — top 10 metrics by DPM jq -r '.metrics | sort_by(-.dpm) | .[:10][] | "\(.dpm)\t\(.series_count)\t\(.metric_name)"' metric_rates.json
If step 5 is empty, lower `-m` or confirm the endpoint URL has no trailing path after `.net`.
If [gcx](https://github.com/grafana/gcx) is installed it can derive the endpoint + username:
gcx config check # active stack context gcx config list-contexts # all configured stacks gcx config view # full config with endpoints
The Prometheus endpoint pattern is `https://prometheus-{cluster_slug}.grafana.net`. Username is the numeric stack ID.
Without gcx: look up in the Grafana Cloud portal, or query `grafanacloud_instance_info{name=~"STACK_NAME.*"}` on the usage datasource.
Limit to **max 3 concurrent** runs to avoid GCloud rate limits. Batch the stacks and wait for each batch before the next.
Public skills for working with Grafana, Prometheus, Loki, Tempo, Pyroscope, k6, and the broader LGTM observability stack. Compatible with Claude Code, Cursor, Codex, and any tool supporting the Agent Skills open standard.
Repo: grafana/skills
Use when the user asks to "write a validator", "add validation", "implement admission…
Use when starting any grafana-app-sdk work — scaffolding a Grafana app, initializing a…
Author CUE kind definitions for grafana-app-sdk apps - schemas, versioning, field…
Implement reconcilers and watchers for grafana-app-sdk apps — write…
Cut Grafana Cloud Metrics cost by shrinking active-series count with Adaptive Metrics…