macro_rules! register_gauge_vec_with_registry {
    ($OPTS:expr, $LABELS_NAMES:expr, $REGISTRY:expr $(,)?) => { ... };
    ($NAME:expr, $HELP:expr, $LABELS_NAMES:expr, $REGISTRY:expr $(,)?) => { ... };
}
Expand description

Create a GaugeVec and registers to a custom registry.

§Examples

let mut labels = HashMap::new();
labels.insert("mykey".to_string(), "myvalue".to_string());
let custom_registry = Registry::new_custom(Some("myprefix".to_string()), Some(labels)).unwrap();

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

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