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

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>

Return descriptors for metrics.

fn collect(&self) -> Vec<MetricFamily>

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...