Skip to main content

absent

Function absent 

Source
pub fn absent(
    schema: &SeriesSchema,
    series: &[Series],
    labels: SeriesLabels,
) -> Result<Option<Series>>
Expand description

absent(v): 1 with labels at every point where no series is present.

absent_over_time(v[r]) is this over the result of present_over_time(v[r]). When v[r] is a range selector, labels come from its matchers as for absent(v); for a subquery Prometheus derives no labels.

All of it is one label set, so the result is one series. A point where one field is present and another is absent keeps its row, with a null in the field that is present; a point where every field is present contributes no row, and the axis names the runs of points that do. None means no point is absent in any field, so no row survives.