Skip to main content

Module rule

Module rule 

Source
Available on crate feature metrics only.
Expand description

Enrichment rules for Prometheus metrics.

Subsystems register Rules alongside their metrics on a crate::metrics::MetricsRegistry. When env’s federated /metrics/public endpoint scrapes a remote registry, it resolves the rules against the catalog to attach human-readable name labels (e.g. cluster_name, source_name) onto metrics.

Structs§

ObjectName
The resolved, fully-qualified parts of a catalog object’s name.

Enums§

Rule
A declarative enrichment rule applied to a metric family at scrape time.

Traits§

NameLookup
Resolves IDs to their names

Functions§

label_pair 🔒
Builds a Prometheus LabelPair from a label name and value.