rate()

The PromQL function that turns a counter into its average increase per second over a time window, handling restarts.

In more detail

rate is the natural input to traffic panels and error ratios. A short window reacts quickly but is noisy; a long window is steadier but hides brief surges, so state the window in the question.

Example

rate(http_requests_total[5m])

Related terms

Taught in

References

Certification courses