不理解 rate() 函数的不同解析

Not understanding the different parse of the rate() function

我真的很困惑,因为我试图找出 Prometheus 的 rate() 函数。查看 the documentation for rate(),我无法理解他们的示例:

rate(http_requests_total{job="api-server"}[5m])

以及描述:

The following example expression returns the per-second rate of HTTP requests as measured over the last 5 minutes, per time series in the range vector

那 5 分钟让我很难过。您正在获取每秒的请求率(即使刮擦是,例如,每 15 秒一次)但是 "over the last 5 minutes" 在哪里发挥作用?我正在查看跨越 30 分钟的图表,"over the last 5 minutes" 表示 query/equation?

提前致谢。希望有人能用不同的术语解释一下!

对于图表的每个垂直切片,将计算它之前 5 分钟的速率。