Brainstorming doc about quoting for metric and label names

149 views
Skip to first unread message

Bjoern Rabenstein

unread,
Feb 1, 2023, 10:36:42 AM2/1/23
to Prometheus Developers
Hi Prometheans,

at the last in-person dev-summit in Munich, we talked a lot about how
to allow arbitrary UTF-8 characters in metric and label names (or
maybe just allow a few like "." and "/"...).

We also had some whiteboarding and brainstorming in the breaks, which
isn't reflected in the dev-summit notes. And obviously, there have
been a lot of discussions on various channels, private and public.

What started as an attempt to document the brainstorming that happened
at the dev-summit evolved into a summary of the current state of all
those discussions, as far as I have noticed. Please have a look:
https://docs.google.com/document/d/1yFj5QSd1AgCYecZ9EJ8f2t4OgF2KBZgJYVde-uzVEtI/edit

Cheers,
--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] bjo...@rabenste.in

Ganesh Vernekar

unread,
Feb 3, 2023, 4:13:15 AM2/3/23
to Bjoern Rabenstein, Prometheus Developers
The idea presented at the end of the doc feels very natural and +1 to that.

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/Y9qHB4ejq27sq8cu%40mail.rabenste.in.

Goutham Veeramachaneni

unread,
Mar 20, 2023, 3:31:33 PM3/20/23
to Prometheus Developers
+1 to  {__name__="Björn's metric", currency="€"}

I am ambivalent about {"Björn's metric"}, {!"Björn's metric"}, {~"Björn's .*"}, and {!~"Björn's .*"} but have no strong feelings.

All in all, super happy we're making progress here!

Thanks
Goutham

Julien Pivotto

unread,
Mar 20, 2023, 4:05:22 PM3/20/23
to Goutham Veeramachaneni, Prometheus Developers
On 20 Mar 12:31, Goutham Veeramachaneni wrote:
> +1 to {__name__="Björn's metric", currency="€"}
>
> I am ambivalent about {"Björn's metric"}, {!"Björn's metric"}, {~"Björn's
> .*"}, and {!~"Björn's .*"} but have no strong feelings.

I am personnaly happy if we limit to {__name__="Björn's metric"} and
{"Björn's metric"}. Regexes and != on metric name is not something I
want to encourage and I think the long form is probably okay.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/16abb613-b181-40bc-ad4c-b34027c496fan%40googlegroups.com.


--
Julien Pivotto
@roidelapluie
Reply all
Reply to author
Forward
0 new messages