mz_ore::metrics

Type Alias HistogramVec

Source
pub type HistogramVec = DeleteOnDropWrapper<HistogramVec>;
Available on crate feature metrics only.
Expand description

Delete-on-drop shadow of Prometheus prometheus::HistogramVec.

Aliased Type§

struct HistogramVec {
    inner: MetricVec<HistogramVecBuilder>,
}

Fields§

§inner: MetricVec<HistogramVecBuilder>

Implementations

Source§

impl<M: MetricVecExt> DeleteOnDropWrapper<M>

Source

pub fn get_delete_on_drop_metric<L: PromLabelsExt>( &self, labels: L, ) -> DeleteOnDropMetric<M, L>

Returns a metric that deletes its labels from this metrics vector when dropped.

Trait Implementations

Source§

impl<M: Clone> Clone for DeleteOnDropWrapper<M>

Source§

fn clone(&self) -> DeleteOnDropWrapper<M>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<M: Collector> Collector for DeleteOnDropWrapper<M>

Source§

fn desc(&self) -> Vec<&Desc>

Return descriptors for metrics.
Source§

fn collect(&self) -> Vec<MetricFamily>

Collect metrics.
Source§

impl<M: MakeCollector + Debug> Debug for DeleteOnDropWrapper<M>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<M: MakeCollector> MakeCollector for DeleteOnDropWrapper<M>

Source§

fn make_collector(opts: MakeCollectorOpts) -> Self

Creates a new collector.