Skill
grafana-promql
Write, validate, and optimize PromQL for Prometheus / Grafana Mimir / Grafana Cloud Metrics. Covers `rate` vs `irate` vs `increase`, label matchers and regex, `sum / avg / topk / by / without` aggregation, classic + native `histogram_quantile`, ratios with divide-by-zero guards, `absent` / `changes` for staleness, time offsets and `predict_linear`, recording-rule naming, SLO + burn-rate math, and a cardinality-hunting playbook. Use when writing a metric query, fixing wrong p95s, building an error-budget alert, debugging "query is slow", finding the noisy label that blew up cardinality, or migrating a dashboard query to a recording rule — even when the user says "calculate the error rate", "p99 latency", "sum by service", "why is this query slow", or "what's filling Mimir" without naming PromQL.
Bundled with MegaLinter. Its trust score, security findings and other files are on the plugin page.
SKILL.md
- Path
- .claude/skills/grafana-promql/SKILL.md
- Size
- 4.6 KB
- SHA-256
- 9150bf04266eceb118d21db7e8a0013ed4a9095c21e02a57881a8d85330473f2
Install
Install the plugin's skills with the Skills CLI:
npx [email protected] add oxsecurity/megalinter