Skip to content

Escape text format label values - #106

Draft
Mirochill wants to merge 1 commit into
claws:masterfrom
Mirochill:fix-91-escape-label-values
Draft

Escape text format label values#106
Mirochill wants to merge 1 commit into
claws:masterfrom
Mirochill:fix-91-escape-label-values

Conversation

@Mirochill

Copy link
Copy Markdown

Summary

  • escape Prometheus text-format label values for backslashes, quotes, and newlines
  • keep label values intact while preventing invalid metrics output
  • add regression coverage for a label value with backslashes, quotes, and a newline

Fixes #91

Validation

  • Not run locally
  • Static validation only: git diff --check, git diff --cached --check, git show --stat --oneline --check HEAD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid labels will create invalid Metrics page

1 participant