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


impl Metric for Histogram

impl<P: Atomic> Metric for GenericCounter<P>

impl<P: Atomic> Metric for GenericGauge<P>

Loading content...