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

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

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