Sanitize label input data
What does this MR do and why?
Sanitizes the labels to avoid passing invalid strings to prometheus.
Closes #370604 (closed) #381424 (closed)
Screenshots or screen recordings
/
How to set up and validate locally
- Send request to
gdk.test/?8\u003c/x
- Check
curl -ks https://gdk.test/-/metrics | ./promtool check metrics
- The
promtool
should not report any issues in parsing the data
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Filip Aleksic