PromQL

The query language of Prometheus, used to select time series and calculate rates, sums and percentiles from them.

In more detail

A query starts with a metric name, narrows it with label matchers, and then applies functions and aggregations. Results are usually a set of labelled series rather than one number. Grafana panels and alerting rules are both written in PromQL.

Example

sum(rate(demo_http_requests_total[5m]))

Related terms

Taught in

References

Certification courses