# dpm-finder

> Claude/Codex skill by [@grafana](https://omgskills.com/library/grafana/index.md) · 286 stars · Updated 2026-10-17

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.

## Install

```sh
git clone https://github.com/grafana/skills /tmp/skills && ln -s /tmp/skills/skills/grafana-cloud/dpm-finder ~/.claude/skills/dpm-finder
```

## From README

dpm-finder Grafana PS tool ranking Prometheus metrics by DPM with per-series breakdown. Source: https://github.com/grafana-ps/dpm-finder Prerequisites Python 3.9+ A Grafana Cloud Prometheus endpoint URL + numeric stack ID + API key (glc…, metrics:read scope) Common Workflows One-shot analysis (most common) If step 5 is empty, lower -m or confirm the endpoint URL has no trailing path after .net. Discover stack details with gcx If gcx is installed it can derive the endpoint + username: The Prometheus endpoint pattern is https://prometheus-{clusterslug}.grafana.net. Username is the numeric stack ID. Without gcx: look up in the Grafana Cloud portal, or query grafanacloudinstanceinfo{name="STACKNAME."} on the datasource. Multi-stack runs Limit to max 3 concurrent runs to avoid GCloud rate limits. Batch the stacks and wait for each batch before the next.

## Links

- HTML page: https://omgskills.com/library/grafana/skills/dpm-finder/
- GitHub: https://github.com/grafana/skills
- Author: [@grafana](https://omgskills.com/library/grafana/index.md)

## More from this repo

- [k6-docs](https://omgskills.com/library/grafana/skills/k6-docs/index.md) — Used to write or review k6 documentation across the three k6 repositories - k6-DefinitelyTyped (TypeScript types),...
   - [@grafana](https://omgskills.com/library/grafana/index.md) · 295 stars
- [adaptive-metrics](https://omgskills.com/library/grafana/skills/adaptive-metrics/index.md) — Cut Grafana Cloud Metrics cost by shrinking active-series count with Adaptive Metrics aggregation rules —...
   - [@grafana](https://omgskills.com/library/grafana/index.md) · 286 stars
- [admin](https://omgskills.com/library/grafana/skills/admin/index.md) — Used to manage Grafana Cloud accounts — organizations, stacks, RBAC roles and assignments, SSO/SAML/OAuth/GitHub auth,...
   - [@grafana](https://omgskills.com/library/grafana/index.md) · 286 stars
