Trait prom::Collector
[−]
[src]
pub trait Collector: Sync + Send { fn desc(&self) -> &Desc; fn collect(&self) -> MetricFamily; }
Required Methods
fn desc(&self) -> &Desc
desc
returns the descriptor for the metric collector.
fn collect(&self) -> MetricFamily
collect
collects the metric.
Implementors
impl Collector for Counter