Skip to main content

absent_labels_of

Function absent_labels_of 

Source
fn absent_labels_of(expr: &Expr) -> Result<SeriesLabels>
Expand description

The labels absent(expr) and absent_over_time(m[d]) answer with, as Prometheus createLabelsForAbsentFunction derives them: from the matchers of a vector or range selector, and none for any other expression.

Both selectors carry the same matchers, and Prometheus derives the labels from them the same way in either position, so the range selector of absent_over_time reads exactly as the vector selector of absent does.

__field__, __schema__ and __database__ choose what is read rather than match a label, so they are not labels of the answer, as in the existing planner.