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