-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update OM1.1 for UTF-8 metric names and labels #2746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Part of prometheus/prometheus#16093 Signed-off-by: Owen Williams <[email protected]>
755a40d
to
908e3a6
Compare
Signed-off-by: Owen Williams <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, one nit comment
Signed-off-by: Owen Williams <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good, I think need some examples with CI check on them
label-name-initial-char = ALPHA / "_" | ||
escaped-string = *escaped-char | ||
escaped-string = 1*escaped-char |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a breaking change for labels? https://prometheus.io/docs/specs/om/open_metrics_spec/#label
The format allows empty string as far as I understand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, correct -- ok we need to allow empty strings for label values but not label or metric names
@ywwg I'd suggest to scan the "Design considerations" section, in particular https://prometheus.io/docs/specs/om/open_metrics_spec/#metric-naming-and-namespaces . I've done it as a follow-up to relaxed suffix rules, see #2751 |
Signed-off-by: Owen Williams <[email protected]>
part of prometheus/prometheus#16093