Trait prometheus::core::Metric[][src]

pub trait Metric: Sync + Send + Clone {
    fn metric(&self) -> Metric;
}

An interface models a single sample value with its meta data being exported to Prometheus.

Required methods

fn metric(&self) -> Metric[src]

Return the protocol Metric.

Loading content...

Implementors

impl Metric for Histogram[src]

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

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

Loading content...