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.
Implementors
impl<P: Atomic> Collector for GenericCounter<P>
[src]
impl<P: Atomic> Collector for GenericCounter<P>
[src]impl<P: Atomic> Collector for GenericGauge<P>
[src]
impl<P: Atomic> Collector for GenericGauge<P>
[src]