Skip to main content

take_metric_name_matchers

Function take_metric_name_matchers 

Source
fn take_metric_name_matchers(selector: &mut VectorSelector) -> Vec<Matcher>
Expand description

Removes every __name__ matcher from the selector and returns them, so the rest can be planned as column predicates. A name given as VectorSelector::name comes back as an equality matcher, making both spellings filter alike.