Skip to main content

metric_is_blocked

Function metric_is_blocked 

Source
pub fn metric_is_blocked(metric_name: &str, blocklist: &HashSet<String>) -> bool
Expand description

Whether metric_name is in blocklist, exactly or below an entry at a dot boundary, so a family entry covers all of its sub-names.

Entries must already be lowercase, as configparser hands them over.