Struct ore::metrics::MetricsRegistry[][src]

pub struct MetricsRegistry {
    inner: Registry,
    third_party: Registry,
}
This is supported on crate feature metrics only.
Expand description

The materialize metrics registry.

Fields

inner: Registrythird_party: Registry

Implementations

Creates a new metrics registry.

Register a metric defined with the metric macro.

Registers a gauge whose value is computed when observed.

Register a metric that can be scraped from both the “normal” registry, as well as the registry that is accessible to third parties (like cloud providers and infrastructure orchestrators).

Take care to vet metrics that are visible to third parties: metrics containing sensitive information as labels (e.g. source/sink names or other user-defined identifiers), or “traffic” type labels can lead to information getting exposed that users might not be comfortable sharing.

Register a pre-defined prometheus collector.

Gather all the metrics from the metrics registry for reporting.

See also prometheus::Registry::gather.

Gather all the metrics from the metrics registry that’s visible to third parties.

See also prometheus::Registry::gather.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more