Skip to content

Conversation

@anna-tran
Copy link
Contributor

What this PR does:
Fix the metric name validation logic used by distributors when processing remote write requests, by invoking validation around metric name instead of label name.

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

Checklist

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

Signed-off-by: Anna Tran <trananna@amazon.com>
@anna-tran anna-tran force-pushed the metric-name-validation branch from d6dc7c3 to 56670a1 Compare November 3, 2025 22:17
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!

@yeya24 yeya24 merged commit ec404d2 into cortexproject:master Nov 3, 2025
18 checks passed
@anna-tran anna-tran deleted the metric-name-validation branch November 3, 2025 22:50
@SungJin1212
Copy link
Member

Thanks for fixing it

@yeya24
Copy link
Contributor

yeya24 commented Nov 4, 2025

We need to cut a new RC to cherry pick this change

yeya24 pushed a commit to yeya24/cortex that referenced this pull request Nov 4, 2025
yeya24 added a commit that referenced this pull request Nov 4, 2025
* Fix metric name validation to use correct validation scheme method (#7087)

Signed-off-by: Anna Tran <trananna@amazon.com>

* bump to 1.20.0-rc.1

Signed-off-by: yeya24 <benye@amazon.com>

* Fix visit marker race condition (#7082)

* update changelog

Signed-off-by: yeya24 <benye@amazon.com>

---------

Signed-off-by: Anna Tran <trananna@amazon.com>
Signed-off-by: yeya24 <benye@amazon.com>
Co-authored-by: Anna Tran <trananna@amazon.com>
Co-authored-by: Daniel Blando <daniel@blando.com.br>
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.

Distributor failing to accept valid metric names

3 participants