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

add a feature to the metricstransformprocessor to allow custom code to do the transformation #37699

Open
preetmyob opened this issue Feb 5, 2025 · 0 comments
Labels
enhancement New feature or request needs triage New item requiring triage

Comments

@preetmyob
Copy link

preetmyob commented Feb 5, 2025

Component(s)

https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricstransformprocessor

Is your feature request related to a problem? Please describe.

Use case:

we have an old (non-oTel) custom metrics collector that transforms metrics by running some custom code to perform some custom renaming/modification of metrics.

Notes:

This is an obscure activity so this particular transform would never likely be used by other people, so not likely to be a candidate for the control project. However, being able to make your transforms would potentially enable more people to move from legacy collection schemes to oTel.

Caveats

How to support:

  • multiple languages
  • multiple platforms

Perhaps picking a single cross-platform language would be sufficient.

Describe the solution you'd like

A new processor with the ability to run some custom code, package, and follow a well-defined interface. With the defined input of the metric, and the defined output of the transformed metric.

Describe alternatives you've considered

  1. Just writing an entire processor that would likely just be used by us. This would have the added maintenance of keeping it synced with the project changes.

  2. Writing finding a way to add attributes to the transformation chain that an existing transformer can use (perhaps the regexp one)

Additional context

No response

@preetmyob preetmyob added enhancement New feature or request needs triage New item requiring triage labels Feb 5, 2025
@preetmyob preetmyob changed the title add a feature to the metricstransformprocessor to all custom code to executed to do the transformation add a feature to the metricstransformprocessor to allow custom code to do the transformation Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage New item requiring triage
Projects
None yet
Development

No branches or pull requests

1 participant