Skip to content

Add enable type and unit labels flag #6969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

SungJin1212
Copy link
Member

This PR adds an experimental -distributor.otlp.enable-type-and-unit-labels flag to add __type__ and __unit__ labels for OTLP metrics.

Which issue(s) this PR fixes:
Fixes #6952

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@SungJin1212 SungJin1212 force-pushed the Add-EnableTypeAndUnitLabels-flag branch from 767dba0 to 3c3bb21 Compare August 14, 2025 12:59
Signed-off-by: SungJin1212 <[email protected]>
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Thanks! This looks great

@yeya24 yeya24 requested a review from danielblando August 14, 2025 15:22
@yeya24 yeya24 merged commit 1ef21a1 into cortexproject:master Aug 15, 2025
33 of 34 checks passed
aclaygray pushed a commit to aclaygray/cortex that referenced this pull request Aug 18, 2025
* Add EnableTypeAndUnitLabels flag to add type and unit label

Signed-off-by: SungJin1212 <[email protected]>

* fix lint

Signed-off-by: SungJin1212 <[email protected]>

---------

Signed-off-by: SungJin1212 <[email protected]>
Signed-off-by: Andrew Gray <[email protected]>
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.

Support Prometheus type and unit labels in OTLP receiver
2 participants