Skip to main content

Crate promql

Crate promql 

Source

Modules§

aggregate
Local float aggregation over evaluated series, following Prometheus’ aggregation. State is keyed by absolute grid index, never by local row number; sparse state and trimmed output do not expand the full grid.
error
evaluated
One slice of an evaluated series, as evaluators hand it to their consumers.
extension_plan
functions
go_format 🔒
The shortest float formats of Go’s strconv, which Prometheus writes label values in.
go_sort 🔒
A port of Go’s sort.Sort / slices.SortFunc (pattern-defeating quicksort, Go 1.19+).
grid_series
Building evaluated series that cover only their result range on a shared grid.
histogram_eval
Histogram functions over evaluated series: histogram_quantile and histogram_fraction over classic and native histograms (Prometheus funcHistogramQuantile, funcHistogramFraction and resetHistograms), and histogram_count, histogram_sum, histogram_avg, histogram_stddev and histogram_stdvar over native histograms.
info
info(v, {selector}): the series of v with the data labels of the info series that share their identifying labels, following Prometheus combineWithInfoSeries and combineWithInfoVector.
instant_eval
map
Pointwise kernels for evaluated series, independent of planning and execution nodes.
map_label
label_replace and label_join over evaluated series, following Prometheus evalLabelReplace, evalLabelJoin and mergeSeriesWithSameLabelset.
map_time
time() and the date functions over evaluated series, following Prometheus funcTime and dateWrapper.
metrics 🔒
native
The native PromQL evaluation model.
range_array
range_eval
Range-vector window evaluation of raw series onto an evaluation grid.
select
Operators that depend on the whole set of evaluated series at each grid point: topk, bottomk, limitk, limit_ratio, scalar, absent and the instant-result sorts.
source
vector_match
Vector–vector binary and set operations over evaluated series on one grid.