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

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

An interface for collecting metrics.

Required methods

fn desc(&self) -> Vec<&Desc>[src]

Return descriptors for metrics.

fn collect(&self) -> Vec<MetricFamily>[src]

Collect metrics.

Loading content...

Implementors

Loading content...