promql.extrapolatedRate() 函数
promql.extrapolatedRate()
是一个辅助函数,用于计算计数器的外推速率,并用于实现 PromQL 的 rate()
、delta()
和 increase()
函数。
重要提示:internal/promql
包不适合外部使用。
函数类型签名
(
<-tables: stream[{A with _value: float, _time: time, _stop: time, _start: time}],
?isCounter: bool,
?isRate: bool,
) => stream[{B with _value: float}]
有关更多信息,请参阅 函数类型签名。
参数
tables
输入数据。默认为管道转发数据 (<-
)。
isCounter
数据表示计数器。
isRate
数据表示速率。
此页是否对您有帮助?
感谢您的反馈!