Sean's Blog

心之所向,身之所往。

[Prometheus] What is the difference between rate and irate

Here are the definitions from the official document for rate() and irate(). But if you still don’t quite understand, check the examples below. In this example, I select all the values I have recorded within the last 1 minute for all time series that have the metric name prometheus_http_requests_total and a handler label set to /metrics: prometheus_http_requests_total{handler=”/metrics”}[1m] Output from the Prometheus UI: # Element prometheus_http_requests_total{code="200",handler="/metrics",instance="localhost:9090",job="prometheus"} # ValueHere are the definitions from the official document for rate() and irate().