Structs

Represents the metric filter rule.

Represents metrics matching rules.

Enums

Functions

Returns all metrics that evaluate to “true” for the function.

Returns the first metric that evaluates to “true” for the function.

Loads the “Rules” from the file.

Returns all metrics that evaluate to “true” for the regex on the metrics name, not the label. If called in a loop, use “lazy_static” to ensure that regular expressions are compiled exactly once. ref. https://github.com/rust-lang/regex#usage-avoid-compiling-the-same-regex-in-a-loop

Returns all metrics that evaluate to “true” for the regex set on the metrics name, not the label. If called in a loop, use “lazy_static” to ensure that regular expressions are compiled exactly once. ref. https://github.com/rust-lang/regex#usage-avoid-compiling-the-same-regex-in-a-loop

Returns all metrics that evaluate to “true” based on the rule. If no filter has a label specified, it uses RegexSet for all regexes. TODO: optimize using more RegexSet without labels…