
Description
The promql skill helps an AI agent write, validate and optimize PromQL queries for Prometheus, Grafana Mimir and Grafana Cloud Metrics. PromQL returns an instant vector, a range vector or a scalar, and the skill explains how to choose among them. It covers the differences between rate, irate and increase, how label matchers and regular expressions filter series, and how to keep queries fast when they run across many series. A central rule in the skill is that rate and increase need a range at least four times the scrape interval, so a 60-second scrape needs at least a five-minute range. The agent writes a query, validates it against your Prometheus endpoint or in Grafana Explore, and refines it. The skill includes a pattern library of common queries. You need a Prometheus, Mimir or Grafana Cloud endpoint to query. The skill is listed on skills.sh and is published in the grafana skills repository on GitHub, which shows about 288 stars. Its security checks all passed.…
Highlights
- Writes and validates PromQL queries
- Explains rate, irate and increase
- Label matchers and regex guidance
- Pattern library of common queries
- Range vector sizing rule
Ratings & Reviews
No ratings yet
Be the first to rate promql.
People also visit

prometheus-cardinality-troubleshooter
Diagnostic guide for active Prometheus cardinality problems

pab1it0/prometheus-mcp-server
Query and analyze Prometheus, the open-source monitoring system

prometheus-label-strategy
Expert evaluator for Prometheus label strategy on Grafana Cloud

prometheus
Prometheus and Grafana Cloud Metrics overview including PromQL query language
promql FAQ
What does the promql skill do?
It helps an AI agent write, check and tune PromQL queries for Prometheus, Mimir and Grafana Cloud Metrics.
How do I install it?
Run: npx skills add https://github.com/grafana/skills --skill promql
What is the range rule?
A range for rate or increase should be at least four times the scrape interval, so a 60-second scrape uses at least [5m].
What do I need to use it?
A Prometheus, Mimir or Grafana Cloud endpoint to query, or Grafana Explore.
What are the security audit results?
Gen Agent Trust Hub Pass, Socket Pass, Snyk Pass.
What are the best promql alternatives?
Popular alternatives to promql include promql-cli, prometheus-cardinality-troubleshooter and pab1it0/prometheus-mcp-server. See all promql alternatives










