[][src]Type Definition prometheus::core::GenericCounterVec

type GenericCounterVec<P> = MetricVec<CounterVecBuilder<P>>;

The underlying implementation for CounterVec and IntCounterVec.


impl<P: Atomic> GenericCounterVec<P>

pub fn new(opts: Opts, label_names: &[&str]) -> Result<Self>

Create a new GenericCounterVec based on the provided Opts and partitioned by the given label names. At least one label name must be provided.

pub fn local(&self) -> GenericLocalCounterVec<P>

Return a GenericLocalCounterVec for single thread usage.