Macro prometheus::register_counter_vec[][src]

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

Create a [CounterVec] and registers to default registry.

Examples

let opts = opts!("test_macro_counter_vec_1", "help");
let counter_vec = register_counter_vec!(opts, &["a", "b"]);
assert!(counter_vec.is_ok());

let counter_vec = register_counter_vec!("test_macro_counter_vec_2", "help", &["a", "b"]);
assert!(counter_vec.is_ok());