[][src]Trait substrate_prometheus_endpoint::MetricSource

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

A source of values for a [SourcedMetric].

Associated Types

type N: Number[src]

The type of the collected values.

Loading content...

Required methods

pub fn collect(&self, set: impl FnMut(&[&str], Self::N))[src]

Collects the current values of the metrics from the source.

Loading content...

Implementors

Loading content...