Skip to main content

normalize_metrics

Function normalize_metrics 

Source
pub fn normalize_metrics(
    source: &str,
    metrics: &[ListOutput],
    metric_blocklist: &HashSet<String>,
) -> ReportSource
Expand description

Turn one source’s List replies into a ReportSource, dropping what systemd-report would drop and skipping what metric_blocklist names.

Blocked metrics are left out on purpose, so they are not counted in dropped_metrics, which flags metrics a source got wrong.