Trait prometheus::core::Collector[][src]

pub trait Collector: Sync + Send {
    fn desc(&self) -> Vec<&Desc>;
fn collect(&self) -> Vec<MetricFamily>; }
Expand description

An interface for collecting metrics.

Required methods

Return descriptors for metrics.

Collect metrics.

Implementors