Skip to main content

without_metadata_labels

Function without_metadata_labels 

Source
fn without_metadata_labels(tags: Vec<String>) -> Vec<String>
Expand description

The labels a node reports after the metadata labels are dropped, which is what a kernel that computes a value of its own does to the samples it reports.

The runtime drops all of PROMQL_METADATA_LABELS here, not the name alone: a name-dropping window and timestamp both go through drop_metric_name, and both end with remove_all(&METADATA_LABELS) - an empty value leaves with them too. Deriving only the name would leave __type__ and __unit__ in a label set the runtime no longer reports them in, and a drop above such a node would then be collected for labels that are already gone.