Type Alias prometheus::local::LocalIntCounterVec
source · pub type LocalIntCounterVec = GenericLocalCounterVec<AtomicU64>;
Expand description
The integer version of LocalCounterVec
.
Provides better performance if metric values are all positive
integers (natural numbers).
Aliased Type§
struct LocalIntCounterVec { /* private fields */ }
Implementations
source§impl<P: Atomic> GenericLocalCounterVec<P>
impl<P: Atomic> GenericLocalCounterVec<P>
sourcepub fn with_label_values<'a>(
&'a mut self,
vals: &[&str],
) -> &'a mut GenericLocalCounter<P>
pub fn with_label_values<'a>( &'a mut self, vals: &[&str], ) -> &'a mut GenericLocalCounter<P>
Get a GenericLocalCounter
by label values.
See more MetricVec::with_label_values.
sourcepub fn remove_label_values(&mut self, vals: &[&str]) -> Result<()>
pub fn remove_label_values(&mut self, vals: &[&str]) -> Result<()>
Remove a GenericLocalCounter
by label values.
See more MetricVec::remove_label_values.
sourcepub fn flush(&self)
pub fn flush(&self)
Flush the local metrics to the CounterVec
metric.
Trait Implementations
source§impl<P: Atomic> Clone for GenericLocalCounterVec<P>
impl<P: Atomic> Clone for GenericLocalCounterVec<P>
source§impl<P: Atomic> Debug for GenericLocalCounterVec<P>
impl<P: Atomic> Debug for GenericLocalCounterVec<P>
source§impl<P: Atomic> LocalMetric for GenericLocalCounterVec<P>
impl<P: Atomic> LocalMetric for GenericLocalCounterVec<P>
source§fn flush(&self)
fn flush(&self)
Flush the local metrics to the CounterVec
metric.