Skip to content

Conversation

ywwg
Copy link
Member

@ywwg ywwg commented Aug 26, 2024

When the validation scheme in common.model is set to utf8, it is still possible to set the scrapeconfig to enforce legacy validation. This PR enables that behavior. However, if the common.model scheme is set to legacy, it is not supported to check for utf-8 validity on a case-by-case basis. This restriction is currently enforced by prometheus flag checking.

fixes #14728

ywwg added 2 commits August 23, 2024 15:28
…idation right. oops!

Signed-off-by: Owen Williams <owen.williams@grafana.com>
Signed-off-by: Owen Williams <owen.williams@grafana.com>
@ywwg ywwg changed the title DRAFT WIP: fix(utf8): ensure correct validation when legacy mode turned on fix(utf8): ensure correct validation when legacy mode turned on Aug 26, 2024
@ywwg ywwg marked this pull request as ready for review August 26, 2024 14:09
…option

Signed-off-by: Owen Williams <owen.williams@grafana.com>
@ywwg ywwg marked this pull request as draft August 26, 2024 14:11
@ywwg
Copy link
Member Author

ywwg commented Aug 26, 2024

looks like this will need an update to common

Signed-off-by: Owen Williams <owen.williams@grafana.com>
@ywwg
Copy link
Member Author

ywwg commented Aug 26, 2024

ywwg added 4 commits August 26, 2024 10:33
Signed-off-by: Owen Williams <owen.williams@grafana.com>
Signed-off-by: Owen Williams <owen.williams@grafana.com>
fix unused param

Signed-off-by: Owen Williams <owen.williams@grafana.com>
@ywwg ywwg marked this pull request as ready for review August 28, 2024 13:36
@ywwg ywwg requested a review from roidelapluie as a code owner August 28, 2024 13:36
@ywwg
Copy link
Member Author

ywwg commented Aug 28, 2024

unblocked

Signed-off-by: Owen Williams <owen.williams@grafana.com>
@beorn7 beorn7 merged commit 9da7532 into main Aug 28, 2024
44 checks passed
@beorn7 beorn7 deleted the owilliams/scrapeloop-option branch August 28, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Prometheus not actually validating legacy names when utf8 on globally but overrided in scrapeconfig
2 participants