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

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

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

Required methods

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