Macro prometheus::register_counter_vec [−][src]
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());