Skip to main content

drop_metric_name

Function drop_metric_name 

Source
pub(crate) fn drop_metric_name(metric: &SeriesLabels) -> Result<SeriesLabels>
Expand description

Prometheus DropReserved(schema.IsMetadataLabel) drops the type and unit labels with the name. Empty values are dropped too: Prometheus has no empty labels, and keeping them would hide a same-labelset collision from the caller.