Trait prometheus_endpoint::MetricSource[][src]

pub trait MetricSource: Sync + Send + Clone {
    type N: Number;
    fn collect(&self, set: impl FnMut(&[&str], Self::N));
}
Expand description

A source of values for a SourcedMetric.

Associated Types

The type of the collected values.

Required methods

Collects the current values of the metrics from the source.

Implementors