Modules§
- aggr_
over_ 🔒time - changes 🔒
- Implementation of
changesin PromQL. Refer to the original implementation. - deriv 🔒
- Implementation of
derivin PromQL. Refer to the original implementation. - double_
exponential_ 🔒smoothing - Implementation of
double_exponential_smoothingin PromQL. Refer to the original implementation. - edge_
count 🔒 - extrapolate_
rate 🔒 - Implementations of
rate,increaseanddeltafunctions in PromQL. - idelta 🔒
- native_
histogram 🔒 - Native histogram PromQL helpers.
- predict_
linear 🔒 - Implementation of
predict_linearin PromQL. Refer to the original implementation. - quantile 🔒
- quantile_
aggr 🔒 - resets 🔒
- Implementation of
resetin PromQL. Refer to the original implementation. - round 🔒
Structs§
- Absent
Over Time - absent_over_time returns an empty vector if the range vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the range vector passed to it has no elements.
- AvgOver
Time - The average value of all points in the specified interval.
- Changes
- used to count the number of value changes that occur within a specific time range
- Count
Over Time - The count of all values in the specified interval.
- Deriv
- Double
Exponential Smoothing - There are 3 variants of smoothing functions:
- IDelta
- The
funcIdeltain Promql, from https://github.com/prometheus/prometheus/blob/6bdecf377cea8e856509914f35234e948c4fcb80/promql/functions.go#L235 - Last
Over Time - The most recent point value in specified interval.
- MaxOver
Time - The maximum value of all points in the specified interval.
- MinOver
Time - The minimum value of all points in the specified interval.
- Mixed
Range - Coordinated float/native-histogram range evaluation.
- Native
Histogram Absent Over Time - Native
Histogram Add - Native
Histogram AggAvg - Native
Histogram AggSum - Native
Histogram Avg - Native
Histogram AvgOver Time - Native
Histogram Changes - Native
Histogram Count - Native
Histogram Count Over Time - Native
Histogram Delta - Native
Histogram DivScalar - Native
Histogram Drop - Native
Histogram Eq - Native
Histogram Fraction - Native
HistogramI Delta - Native
HistogramI Rate - Native
Histogram Increase - Native
Histogram Last Over Time - Native
Histogram MulScalar - Native
Histogram Neg - Native
Histogram NotEq - Native
Histogram Present Over Time - Native
Histogram Quantile - Native
Histogram Rate - Native
Histogram Resets - Native
Histogram Scalar Mul - Native
Histogram Stddev - Native
Histogram Stdvar - Native
Histogram Sub - Native
Histogram Sum - Native
Histogram SumOver Time - Native
Histogram ToString - Predict
Linear - Present
Over Time - the value 1 for any series in the specified interval.
- Promql
Float ToString - Formats float samples as PromQL label values.
- Quantile
Over Time - Resets
- used to count the number of times the time series starts over.
- Round
- Stddev
Over Time - the population standard deviation of the values in the specified interval. Prometheus’s implementation: https://github.com/prometheus/prometheus/blob/f55ab2217984770aa1eecd0f2d5f54580029b1c0/promql/functions.go#L556-L569
- Stdvar
Over Time - the population standard variance of the values in the specified interval. DataFusion’s implementation: https://github.com/apache/arrow-datafusion/blob/292eb954fc0bad3a1febc597233ba26cb60bda3e/datafusion/physical-expr/src/aggregate/variance.rs#L224-#L241
- SumOver
Time - The sum of all values in the specified interval.
Constants§
Functions§
- compensated_
sum_ 🔒inc - compensation(Kahan) summation algorithm - a technique for reducing the numerical error in floating-point arithmetic. The algorithm also includes the modification (“Neumaier improvement”) that reduces the numerical error further in cases where the numbers being summed have a large difference in magnitude Prometheus’s implementation: https://github.com/prometheus/prometheus/blob/f55ab2217984770aa1eecd0f2d5f54580029b1c0/promql/functions.go#L782
- extract_
array 🔒 - Extracts an array from a
ColumnarValue. - extract_
range_ 🔒array - Extracts a validated RangeArray from a [ColumnarValue].
- extract_
range_ 🔒dict - Extracts and validates a range dictionary with the expected value type.
- linear_
regression 🔒 - linear_regression performs a least-square linear regression analysis on the times and values. It return the slope and intercept based on times and values. Prometheus’s implementation: https://github.com/prometheus/prometheus/blob/90b2f7a540b8a70d8d81372e6692dcbb67ccbaaa/promql/functions.go#L793-L837
- linear_
regression_ 🔒slice - linear_
regression_ 🔒slices - quantile_
udaf - Create a quantile
AggregateUDFfor PromQL quantile operator, which calculates φ-quantile (0 ≤ φ ≤ 1) over dimensions