Skip to main content

Module instant_eval

Module instant_eval 

Source

Structs§

InstantCandidateSpan 🔒
The candidate evaluation timestamps the instant kernel scans and reserves for.

Functions§

info_sample_times
The series info() reads its data labels from: at each point the selection holds, the original time of the selected sample in milliseconds, as Prometheus’ evalSeries records it for info. The labels are kept. Info series hold float samples, so a selected native histogram fails.
instant_candidate_span 🔒
Clips the candidate span using only the source axis endpoints; allocates nothing.
project_selection 🔒
One series over an instant selection, each field holding value(sample, original time) where the selected row has a sample for it.
row_read 🔒
Counts one row of the axis examined; a no-op outside tests.
select_instant_at
Selects the one source row an anchored instant reads, with the lookback, offset and staleness rules of select_instants: the last sample at or before at_ms (shifted by offset_ms) and not more than the lookback before it, unless a stale marker is the latest sample there.
select_instants
Selects source rows for an aligned PromQL instant-evaluation range.
timestamp_of_evaluated
timestamp(v) over an evaluated v, such as timestamp(abs(x)): the evaluation time in seconds at each point a field of series holds a value. The metric name, __type__ and __unit__ are dropped.
timestamp_of_selection
timestamp(v) over an instant selector: at each point the selection holds, the original time of the selected sample in seconds, not the time it was looked up at, so an offset or @ moves which sample is selected but not the time reported. The metric name, __type__ and __unit__ are dropped.