-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
OTTL: Allow copying attributes with a regex #23444
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
We have had similar requests before (#14946) and it continues to be a valuable function to add. @gouthamve is this something you want to work on? |
I wonder if |
Hi, I wrote the referenced issue, that wouldn't work on our use case, since we want to keep the full set of resource attributes on target_info metrics and copy over their subset on the actual metric itself. To be able to use merge_maps we would need to remove items from resource attributes which would remove them from the target_info metric. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
pkg/ottl, processor/transform
Is your feature request related to a problem? Please describe.
A common usecase in Prometheus is to copy all resource attributes matching a prefix / regex into metric attributes.
Right now its not possible and users are asking for workaround features in the exporter itself: #22914
The usecase in the above issue is that they'd like to copy all the resource attributes with
k8s.*
regex into metric attributes. And right now they're doing the following:This is not scalable as new attributes that are added will be missed.
Describe the solution you'd like
Something like:
copy_keys(target, source, regex)
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: