Skip to main content

reads_default_info_metric

Function reads_default_info_metric 

Source
pub fn reads_default_info_metric(labels: &VectorSelector) -> bool
Expand description

Whether labels, the second argument of PromQL info, selects the default info metric in the current schema: data label matchers only, with no name, modifier or or.

The planner accepts exactly this shape for the default metric in query’s info_input, and the two have to agree: a shape claimed here that the planner later reads differently would be authorized as the wrong table.