Skip to content

3.0 Port: Allow UTF-8 characters in metric and label names as opt-in feature (plus config entry)#15384

Merged
bwplotka merged 2 commits intorelease-3.0from
otlp-utf8-from-main
Nov 11, 2024
Merged

3.0 Port: Allow UTF-8 characters in metric and label names as opt-in feature (plus config entry)#15384
bwplotka merged 2 commits intorelease-3.0from
otlp-utf8-from-main

Conversation

@bwplotka
Copy link
Copy Markdown
Member

The main source of UTF traffic is from OTLP receiver. It's silly to enable UTF-8 by default but NOT allow OTLP receive to avoid normalization from e.g. ..

For this reason I propose to port #15258 to 3.0 branch.

See https://cloud-native.slack.com/archives/C077Z4V13AM/p1731358488986449

ArthurSens and others added 2 commits November 11, 2024 21:27
…15258)

* Allow UTF-8 characters in metric and label names as opt-in feature

---------

Signed-off-by: Arthur Silva Sens <[email protected]>
Signed-off-by: bwplotka <[email protected]>
# - "NoUTF8EscapingWithSuffixes" is a mode that relies on UTF-8 support in Prometheus.
# It preserves all special characters like dots, but it still add required suffixes
# for units and _total like in UnderscoreEscapingWithSuffixes.
[ translation_strategy: <string> | default = "UnderscoreEscapingWithSuffixes" ]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: Added this on top of your changes @ArthurSens

@bwplotka
Copy link
Copy Markdown
Member Author

Tested internally, works great!

image

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.

2 participants