Macro prometheus::register_gauge_vec[][src]

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

Create a [GaugeVec] and registers to default registry.

Examples

let opts = opts!("test_macro_gauge_vec_1", "help");
let gauge_vec = register_gauge_vec!(opts, &["a", "b"]);
assert!(gauge_vec.is_ok());

let gauge_vec = register_gauge_vec!("test_macro_gauge_vec_2", "help", &["a", "b"]);
assert!(gauge_vec.is_ok());