Skip to main content

scrape_mismatches

Function scrape_mismatches 

Source
pub fn scrape_mismatches(
    scrape: &str,
    prefix: Option<&str>,
    docs: &[MetricDoc],
) -> Vec<String>
Expand description

What doesn’t match between docs and a scrape (the text format) of a registry under prefix that holds them, every label family having a member: a metric missing from the scrape or with another type, help text or label names, and a metric the scrape has but docs doesn’t. Empty when they match.