简体   繁体   English

普罗米修斯:刮擦间隔较长时,速率函数如何计算每秒速率?

[英]Prometheus: How does the rate function calculate per second rate when scrape interval is longer?

From Prometheus documentation rate function does the following: 通过Prometheus文档率功能可以执行以下操作:

rate(v range-vector) calculates the per-second average rate of increase of the time series in the range vector. rate(v range-vector)计算范围向量中时间序列的每秒平均增长率。

How is that possible when scrape interval is longer like 15 seconds ? 刮擦时间间隔长于15 seconds怎么办? I mean how does Prometheus estimate "per-second" value when the data points are at least 15 seconds far away? 我的意思是当数据点至少相距15秒时,Prometheus如何估计“每秒”值? I assume that the change is estimated to be uniform in the scrape interval but want to be sure. 我假设更改在刮擦时间间隔内是统一的,但要确定。

I assume that the change is estimated to be uniform in the scrape interval but want to be sure. 我假设更改在刮擦时间间隔内是统一的,但要确定。

Yes, that's the case. 是的,就是这样。 The units of the return value are per-second. 返回值的单位是每秒。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM