promql.instantRate() 函数
promql.instantRate() 是一个辅助函数,用于计算计数器的即时速率,并用于实现 PromQL 的
irate() 和
idelta() 函数。
重要:internal/promql 包不适用于外部使用。
函数类型签名
(<-tables: stream[{A with _value: float, _time: time}], ?isRate: bool) => stream[{B with _value: float}]
有关更多信息,请参见 Function type signatures。
参数
表格
输入数据。默认是管道转发的数据 (<-).
是比率
数据表示一个比率。