Crate prometheus_manager

Source

Structs§

Filter
Represents the metric filter.
HistogramCount
Labels
Metric
Rules
Represents metrics matching rules.
Scrape
SummaryCount

Enums§

Entry
MetricKind
Value

Functions§

apply_rules
Returns all metrics that evaluate to “true” based on the rules. If no filter has a label specified, it uses RegexSet for all regexes. TODO: optimize using more RegexSet without labels… TODO: Support delta-based divides.
find_all
Returns all metrics that evaluate to “true” for the function.
find_first
Returns the first metric that evaluates to “true” for the function.
match_all_by_regex
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
match_all_by_regex_set
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
pair_to_string