Macro prometheus::register_gauge[][src]

macro_rules! register_gauge {
    ($OPTS:expr) => { ... };
    ($NAME:expr, $HELP:expr) => { ... };
}

Create a [Gauge] and registers to default registry.

Examples

let opts = opts!("test_macro_gauge", "help");
let res1 = register_gauge!(opts);
assert!(res1.is_ok());

let res2 = register_gauge!("test_macro_gauge_2", "help");
assert!(res2.is_ok());