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

feat(otlp): allow keeping identifying resource attributes #10216

Merged
merged 4 commits into from
Dec 11, 2024

Conversation

krajorama
Copy link
Contributor

@krajorama krajorama commented Dec 11, 2024

What this PR does

Make it possible to use
prometheus/prometheus#15448 and keep service.instance.id, service.name and service.namespace in target_info on top of converting them to the instance and job labels.

Which issue(s) this PR fixes or relates to

Customer request.
Related to #10028
Related to prometheus/prometheus#15448

Checklist

  • Tests updated.
  • N/A Documentation added. At least not applicable in Mimir.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

Make it possible to use
prometheus/prometheus#15448
and keep `service.instance.id`, `service.name` and `service.namespace`
in `target_info` on top of converting them to the `instance` and `job`
labels.

Signed-off-by: György Krajcsovits <[email protected]>
Signed-off-by: György Krajcsovits <[email protected]>
Signed-off-by: György Krajcsovits <[email protected]>
@krajorama krajorama marked this pull request as ready for review December 11, 2024 12:53
@krajorama krajorama requested review from tacole02 and a team as code owners December 11, 2024 12:53
@krajorama
Copy link
Contributor Author

Manual testing, before and after runtime config was enabled:

Before:
image

After:

overrides:
  anonymous:
    otel_keep_identifying_resource_attributes: true

image

Copy link
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.

LGTM modulo nit.

pkg/util/validation/limits.go Outdated Show resolved Hide resolved
Signed-off-by: György Krajcsovits <[email protected]>
@krajorama krajorama enabled auto-merge (squash) December 11, 2024 15:36
@krajorama krajorama merged commit 5086788 into main Dec 11, 2024
29 checks passed
@krajorama krajorama deleted the krajo/limit-for-target-info branch December 11, 2024 15:40
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