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