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
DataPoint Attributes to Resource Attributes Conversion #32120
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
You are probably looking for the groupbyattrs processor: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/groupbyattrsprocessor |
Let me know if you run into any issues |
Much thanks for the quick reply @dashpole. It definitely looks like the right tool for the job. I tried it and it works perfectly. It seems that this processor gives other advanced capability which looks interesting. Much thanks. Unfortunately it is not included yet in AWS Otel Collector (ADOT). Hope the will add it to their OtelCol distro. This is not a requirement for me, just a nice to have. Thank you again, you can close this issue. |
happy to help |
Component(s)
receiver/prometheus
Describe the issue you're reporting
Hello, I have setup the Collector with a Prometheus Receiver to scrape metrics from targets and added to the scrape_config some prometheus metrics labels. I need these informations to be able to store metrics data in Opensearch indexes based on the value of these labels.
The prometheus receiver put these metrics labels into metric data point attributes when converting in Otel format. However for my use case I need them to be placed in the resource attributes instead. So, I started looking at processors which could help me in this regard.
Unfortunately, I hadn't find anything yet for my use case. This is what I found:
Maybe you can help me pointing to some material which I overlooked or some other workaround. Thanks in advance for your time.
The text was updated successfully, but these errors were encountered: