2.3 KiB
2.3 KiB
title | description | menu | weight | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
promql.extrapolatedRate() function | `promql.extrapolatedRate()` is a helper function that calculates extrapolated rates over counters and is used to implement PromQL's [`rate()`](https://prometheus.io/docs/prometheus/latest/querying/functions/#rate), [`delta()`](https://prometheus.io/docs/prometheus/latest/querying/functions/#increase), and [`increase()`](https://prometheus.io/docs/prometheus/latest/querying/functions/#delta) functions. |
|
201 |
promql.extrapolatedRate()
is a helper function that calculates extrapolated rates over
counters and is used to implement PromQL's
rate()
,
delta()
,
and increase()
functions.
Important: The internal/promql
package is not meant for external use.
Function type signature
(
<-tables: stream[{A with _value: float, _time: time, _stop: time, _start: time}],
?isCounter: bool,
?isRate: bool,
) => stream[{B with _value: float}]
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
Parameters
tables
Input data. Default is piped-forward data (<-
).
isCounter
Data represents a counter.
isRate
Data represents a rate.