Skip to content
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

Disallow renaming metrics using the prometheus receiver #3410

Merged
merged 2 commits into from
Jun 15, 2021

Conversation

dashpole
Copy link
Contributor

@dashpole dashpole commented Jun 9, 2021

Description:

Don't allow changing the metric name using prometheus metric_relabel_configs. This doesn't currently work (https://github.com/open-telemetry/opentelemetry-collector/issues/2297), and can't easily be made to work (prometheus/prometheus#8893). Until we can make it work correctly, we should fail loudly.

Link to tracking Issue:
Issue: https://github.com/open-telemetry/opentelemetry-collector/issues/2297

Testing:

Unit tests added

@dashpole dashpole requested a review from alolita as a code owner June 9, 2021 16:47
@dashpole dashpole requested review from a team and dmitryax June 9, 2021 16:47
@dashpole dashpole force-pushed the disallow_target_name branch 3 times, most recently from 4c903c1 to 4641b6e Compare June 9, 2021 18:49
@alolita alolita added area:prometheus area:receiver ready-to-merge Code review completed; ready to merge by maintainers labels Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:receiver ready-to-merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants