On 08.02.23 09:50, Chris Sinjakli wrote: > > Am I right in thinking that client libraries generally don't reserve any > label names outside of ones prefixed with double underscore? I'm curious if > this is something that's changed over time in other clients and we've not > kept up, or if at some point we went in a different direction from the rest > of the libraries.
I don't think anything is strictly reserved. As Bryan Boreham mentioned on the issue, Prometheus simply prefixes `instance` and `job` with `exported_` (unless `honor_labels` is set to true), so that is handled deliberately. Then there are other labels that have an implied meaning in certain contexts, like `le` for (conventional) histogram buckets or `quantile` for pre-calculated quantiles in summaries. But again, there is no hard rule to not use them anywhere else. In other words: It's helpful if instrumentation libraries don't let you use a `quantile` label on a summary or an `le` label on a histogram, but it's totally fine to use those labels on a counter or gauge (or `quantile` on a histogram and `le` on a summary). -- Björn Rabenstein [PGP-ID] 0x851C3DA17D748D03 [email] [email protected] -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/Y%2BUufFsdg/56yk/A%40mail.rabenste.in.

