增加舞会计数器的日期范围后,统计总计数会减少
Stats total count decreases on increasing the date range for prom counter
我有一个简单的舞会计数器链接到统计可视化,总计作为一个缩减函数。但是,当我增加日期范围时,总数会减少。
我一定是漏了什么。
您正在使用“评分”功能。因此与 Prometheus documentation:
rate()
rate(v range-vector) calculates the per-second average rate of
increase of the time series in the range vector.
增加您的数据范围并不总是会增加您的每秒平均速率。
将“率”功能更改为“增加”功能。
有关更多详细信息,请参阅 Prometheus 文档 here。
我将查询更改为
increase(http_server_requests_seconds_count{uri="/api/otp.send", status="200", outcome="SUCCESS"}[$__interval])
总计数正确。
我有一个简单的舞会计数器链接到统计可视化,总计作为一个缩减函数。但是,当我增加日期范围时,总数会减少。
我一定是漏了什么。
您正在使用“评分”功能。因此与 Prometheus documentation:
rate()
rate(v range-vector) calculates the per-second average rate of increase of the time series in the range vector.
增加您的数据范围并不总是会增加您的每秒平均速率。
将“率”功能更改为“增加”功能。
有关更多详细信息,请参阅 Prometheus 文档 here。
我将查询更改为
increase(http_server_requests_seconds_count{uri="/api/otp.send", status="200", outcome="SUCCESS"}[$__interval])
总计数正确。