SKILL8.1K installs291

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.

Type
Skill
Author
grafana
GitHub stars
291
Installs
8.1K
Last updated
November 1, 2026

Install

npx skills add https://github.com/grafana/skills --skill promql

About this skill

A reference and debugging aid for writing PromQL against Prometheus, Grafana Mimir, and Grafana Cloud Metrics. It walks through rate vs irate vs increase, label matchers and regex, aggregations, classic and native histogram_quantile, divide-by-zero guards, staleness with absent and changes, time offsets, recording-rule naming, SLO and burn-rate math, plus a cardinality-hunting playbook. Reach for it when a p95 looks wrong, an error-budget alert needs building, or a slow query is filling Mimir with series.

Summary written with AI assistance from the project's public description.


Categories


More from grafana


Similar Skills