prometheus::register_untyped [] [src]

macro_rules! register_untyped {
    ( $ NAME : expr , $ HELP : expr $ ( , $ CONST_LABELS : expr ) * ) => { ... };
    ( $ OPTS : expr ) => { ... };
}

Create a Untyped and register to default registry.

Examples

let opts = opts!("test_macro_untyped",
                 "help",
                 labels!{"test" => "hello", "foo" => "bar",});

let res1 = register_untyped!(opts);
assert!(res1.is_ok());

let res2 = register_untyped!("test_macro_untyped_2", "help");
assert!(res2.is_ok());

let res3 = register_untyped!("test_macro_untyped_3", "help", labels!{"a" => "b",});
assert!(res3.is_ok());