risingwave_common_metrics::gauge_ext

Type Alias UintGauge

source
pub type UintGauge = GenericGauge<AtomicU64>;
Expand description

The integer version of [prometheus::Gauge]. Provides better performance if metric values are all unsigned integers.

Aliased Type§

struct UintGauge { /* private fields */ }

Trait Implementations§

source§

impl UintGaugeExt for UintGauge

source§

fn inc_guard(&self) -> impl Drop + '_

Increment the gauge, and return a guard that will decrement the gauge when dropped.