-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[metricstransform] Add resource attribute to label support #2568
Comments
* Bump github.com/jaegertracing/jaeger from 1.21.0 to 1.22.0 Bumps [github.com/jaegertracing/jaeger](https://github.com/jaegertracing/jaeger) from 1.21.0 to 1.22.0. - [Release notes](https://github.com/jaegertracing/jaeger/releases) - [Changelog](https://github.com/jaegertracing/jaeger/blob/master/CHANGELOG.md) - [Commits](jaegertracing/jaeger@v1.21.0...v1.22.0) Signed-off-by: dependabot[bot] <[email protected]> * make gotidy Signed-off-by: Bogdan Drutu <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bogdan Drutu <[email protected]>
I'd love to see this type of feature as well. Some of the features of processors:
resource:
attributes:
- key: X-Host
from_attribute: host
action: insert
If #2630 got rejected because it "can be already done with |
…otlptrace (#2568) * Bump google.golang.org/grpc in /exporters/otlp/otlptrace Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.43.0 to 1.44.0. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.43.0...v1.44.0) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Auto-fix go.sum changes in dependent modules Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: MrAlias <[email protected]>
@dmitryax Any chance we can review this issue and related PR again? |
@singku, this processor will be eventually replaced by transform processor. So we would like to avoid any new features to metricstransform processor. Please take a look at transform processor to see if it already does what you want. |
@dmitryax Does that mean that if I want some feature (for example, this particular issue "resource attribute to label support") to be implemented in metricstransform processor, I'll need to propose that feature to transform processor instead? In other words, is it true that I'll commit the same code, but into another folder? :) |
Yes, correct.
It's not the same code. They are completely different codebases providing similar functionality using different configuration approaches. |
Transformprocess support operation like:
I believe this meet our needs. |
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. |
Is your feature request related to a problem? Please describe.
Resource attributes are not applied as labels to metrics (at least not for the prometheus or stackdriver exporters). Examples include node name, username, pod name, k8s namespace, and other common resource attributes which users may wish to differentiate in metrics analysis tools.
Describe the solution you'd like
I would like to be able to use the value of a resource attribute as the source value of an
add_label
action.Describe alternatives you've considered
The only alternative I can think of is to alter the instrumentation in the application and explicitly add the label values to each usage of the metrics instruments. This is slow and intrusive. Being able to quickly manage cardinality in the collector without changing the instrumented application is a very valuable feature.
Additional context
I think this is related to another feature request in the opentelemetry-collector project but the prototype solution there is more liberal copy of all resource attributes and only applies to the prometheus exporter open-telemetry/opentelemetry-collector#2412 .
The text was updated successfully, but these errors were encountered: