utf8: Remove support for legacy global validation setting#16080
Merged
Conversation
ywwg
commented
Feb 26, 2025
f628748 to
bb1fe65
Compare
e9e16f9 to
db82701
Compare
bwplotka
approved these changes
Mar 12, 2025
Member
bwplotka
left a comment
There was a problem hiding this comment.
Thanks! Lgtm
Nit: Consider changing PR title as it's bit wider that just scraper (or/and) commit title.
Global and Data Source configurations can specify legacy mode, but Prometheus now requires that the overall validation mode be set to UTF-8 Signed-off-by: Owen Williams <[email protected]>
db82701 to
94b43c5
Compare
Member
Windows is consistently failing so far... |
Member
Author
how did you find the error? the log is humongous and there are 100 instances of the word "error" and I couldn't find this |
Member
Author
|
windows error appears on other PRs, merging anyway. |
Member
Author
|
mmm after I check that the docs are still accurate |
ywwg
added a commit
that referenced
this pull request
Mar 26, 2025
The new metric_name_escaping_scheme config option works in parallel with metric_name_validation_scheme and controls which escaping scheme is requested when scraping. When not specified, the scheme will request underscores if the validation scheme is set to legacy, and will request allow-utf-8 when the validation scheme is set to utf8. This setting allows users to allow utf8 names if they like, but explicitly request an escaping scheme rather than UTF-8. Fixes #16034 Built on #16080 Signed-off-by: Owen Williams <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Global and Data Source configurations can still specify legacy mode, but Prometheus now requires that the overall validation mode be set to UTF-8.