Expand description
Implementations of rate, increase and delta functions in PromQL.
Structsยง
- Counter
Reset ๐Index - Positions of the counter resets in a value array, so that a window can accumulate the resets it contains instead of scanning all of its samples.
- Extrapolated
Rate - Part of the
extrapolatedRatein Promql, from https://github.com/prometheus/prometheus/blob/v0.40.1/promql/functions.go#L66
Functionsยง
- add_
counter_ ๐resets - Adds the value preceding every counter reset in
valuestoresult, in sample order. - add_
counter_ ๐resets_ between_ samples - Same additions
add_counter_resetsperforms, over the samples in[first, last]instead of over every slot. - extract_
eval_ ๐timestamps - valid_
window_ ๐bounds - Locates the samples inside
[offset, offset + length), returning the first and last non-null index together with the number of non-null slots. ReturnsNonewhen the window holds no sample.