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

impl Collector for Histogram[src]

impl<P: Atomic> Collector for GenericCounter<P>[src]

impl<P: Atomic> Collector for GenericGauge<P>[src]

impl<T: MetricVecBuilder> Collector for MetricVec<T>[src]

Loading content...