Skip to content

bugfix: Fix otlp translator switching colons to underscores in suffix adding mode#15251

Merged
aknuds1 merged 1 commit intomainfrom
otlp-fix-metricwithcolons
Nov 3, 2024
Merged

bugfix: Fix otlp translator switching colons to underscores in suffix adding mode#15251
aknuds1 merged 1 commit intomainfrom
otlp-fix-metricwithcolons

Conversation

@ArthurSens
Copy link
Copy Markdown
Member

@ArthurSens ArthurSens commented Oct 31, 2024

Fixes #15199

Colons are allowed in metric names even without UTF8 support. The usage of colons is a very common pattern for recording rules, as documented in our website and by PromLabs, and broadly used by popular mixins.

This bug only occurs in suffix adding mode, not otherwise. Note that this mode is hard coded in Prometheus itself, but can be disabled when using Prometheus as a library.

@aknuds1 aknuds1 changed the title bugfix: Fix otlp translator switching colons to undescores bugfix: Fix otlp translator switching colons to underscores Nov 3, 2024
@aknuds1 aknuds1 changed the title bugfix: Fix otlp translator switching colons to underscores bugfix: Fix otlp translator switching colons to underscores in suffix adding mode Nov 3, 2024
Copy link
Copy Markdown
Contributor

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

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

I noticed the same bug. Thanks!

@aknuds1 aknuds1 merged commit 1a22b1d into main Nov 3, 2024
@aknuds1 aknuds1 deleted the otlp-fix-metricwithcolons branch November 3, 2024 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

otlp writer: colons (':') in metric names replaced with underscores ('_')

2 participants