You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During development we updated the exposition formats and parsers for both prometheus format and OpenMetrics -- I remember discussing the question of whether it required a new version and at the time I was told it was fine to add it without bumping the versions. It seems that the consensus has landed elsewhere, but currently the code does work
So we are going to invent OM 1.1 that adds escaping for utf-8
which is to say, invent the standard. And then in the code we will fail exposition for UTF-8 if the negotiated version is <1.1
This refers to the development of the go version, which has been used as a basis for the java version
This issue has been marked as stale due to 12 months of inactivity. It will be automatically closed if there is no further activity over the next 30 days.
Activity
zeitlinger commentedon Sep 19, 2025
I don't understand - what did you expect to be different?
jonatan-ivanov commentedon Sep 19, 2025
I would expect this:
instead of
See the position of
{}and the extra"".zeitlinger commentedon Sep 23, 2025
This is required for unicode: https://prometheus.io/docs/guides/utf8/#querying
jonatan-ivanov commentedon Sep 23, 2025
The part you linked is about querying, not about the output format. Does OpenMetrics 1.0 support this?
zeitlinger commentedon Sep 24, 2025
Can't find it in the spec - asked here: https://cloud-native.slack.com/archives/CC6CPDEJV/p1758709641526229
Either the spec has not been updated - or I looked at the wrong place
jonatan-ivanov commentedon Sep 24, 2025
The spec is released, earlier versions will not be updated, there can be a OpenMetrics 1.1 that supports this but I'm not sure 1.0 does.
zeitlinger commentedon Sep 25, 2025
Yes, I can confirm that we (prometheus maintainers) failed to update the spec when this feature was introduced.
Quoting @ywwg from the thread:
This refers to the development of the go version, which has been used as a basis for the java version
jonatan-ivanov commentedon Sep 25, 2025
So the code above that should use OM 1.0 should not do what it does right?
zeitlinger commentedon Sep 25, 2025
It is correct - but not OM 1.0.
It'll probably end up as being OM 1.1 or something.
To make that clear, I'll add an "experimental" note to the Unicode docs.
ywwg commentedon Sep 25, 2025
this syntax is not possible due to some UTF-8 characters being reserved for prometheus syntax, especially dots. See: https://github.com/prometheus/proposals/blob/main/proposals/0028-utf8.md
add experimental warning (#1598)
github-actions commentedon Sep 21, 2026
This issue has been marked as stale due to 12 months of inactivity. It will be automatically closed if there is no further activity over the next 30 days.
jonatan-ivanov commentedon Sep 21, 2026
I think this is still valid.