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}]
有关更多信息,请参见 Function type signatures。
参数
表格
输入数据。默认是管道转发数据 (<-).
计数器
数据表示一个计数器。
是比率
数据表示一个比率。