client_rust
client_rust copied to clipboard
Allow multiple labels in sub_registry_with_label method
Hey
I have a bunch of counters coming from from processes running on different hosts and I'd like to have them labeled with about 2-3 labels to be able to query them in my dashboards.
Is there a reason sub_registry_with_label
accepts a single label? What if I want to add 2-3 labels to a bunch of metrics (globally)?
Thanks for writing this out. Never thought there would be the need for more than one label. Happy to accept a contribution @popadi. Off the top of my head, what do you think of adding Registry::sub_registry_with_labels
taking an I: Iterator<Item = (Cow<'static, str>, Cow<'static, str>)>
?
Thanks for the quick response. I will implement this & add tests in the coming days.