-
Notifications
You must be signed in to change notification settings - Fork 9.7k
utf8: Remove support for legacy global validation setting #16080
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
Conversation
f628748
to
bb1fe65
Compare
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.
Much cleaner, thanks!
e9e16f9
to
db82701
Compare
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.
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 <owen.williams@grafana.com>
db82701
to
94b43c5
Compare
Windows is consistently failing so far... |
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 |
windows error appears on other PRs, merging anyway. |
mmm after I check that the docs are still accurate |
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 <owen.williams@grafana.com>
Global and Data Source configurations can still specify legacy mode, but Prometheus now requires that the overall validation mode be set to UTF-8.