Skip to main content

gauge

Function gauge 

Source
fn gauge(
    registry: &MetricsRegistry,
    opts: MakeCollectorOpts,
    field: fn(&PoolStats) -> u64,
)
Expand description

Registers one computed gauge over a mz_ore::pool::PoolStats field. Peeks at the process-wide pool at scrape time. Reports zero until something initializes the pool, or if its reservation failed.