-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
New component: configconverter to help migrate users between components #30654
Comments
Duplicate of open-telemetry/opentelemetry-collector/issues/7631 ? cc @songy23 |
Yes I think open-telemetry/opentelemetry-collector#7631 serves pretty similar purpose. In the given example https://github.com/signalfx/splunk-otel-collector/blob/main/internal/configconverter/loglevel_to_verbosity.go, the subcommand works like
@atoulme Does the above meet your requirements or do you still think we need a separate configconverter component? |
Our |
That's actually the same as the subcommand in open-telemetry/opentelemetry-collector#7631 - it does not modify the input source either (because in many cases it cannot modify the input), instead it will just print out the new configs if any updates are made. Then the users are free to copy and apply those changes. |
Sorry, I think you're pointing at an issue. Are you saying we have code towards this in the repo already? Or maybe a PR? Please link and we can look at contributing and adopting the approach. |
The subcommand is WIP, so it isn't yet available in core. If the subcommand approach makes sense to you, we can probably work together. Just want to avoid duplicated work since it sounds like the configconverter and the migration subcommand are targeting the same thing. |
Yes, definitely interested to help and contribute. We can work on this together. Please tag me if/when you have a PR open and we can review. |
@atoulme Do we still want this issue to be open, or should this be done in the core issue referenced above? |
I probably would leave things as is for now as this is a bit difficult to navigate. |
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 |
The purpose and use-cases of the new component
This component is a configuration converter that is currently hosted by Splunk for its own distribution and is used to work through migrations of component configurations.
This converter sits on the configuration initial load and runs through the confmap mapstructure object and makes modifications to take care of configuration breaking changes.
An example exists here: https://github.com/signalfx/splunk-otel-collector/blob/main/internal/configconverter/loglevel_to_verbosity.go
This type of change allows moving between component types, such as spanmetricsprocessor to spanmetricsconnector. The configuration is migrated over to the new component, along with a warning and a prompt for the user to integrate the changes moving forward.
Incorporating this type of feature in the collector will allow us to safely deprecate and dispose of components that are deprecated such as spanmetricsprocessor, servicegraphprocessor, and deal with breaking changes in configuration by explicitly helping customers through conversion.
Example configuration for the component
An example of dealing with log_level to verbosity is available here: https://github.com/signalfx/splunk-otel-collector/blob/main/internal/configconverter/loglevel_to_verbosity.go
Telemetry data types supported
all
Is this a vendor-specific component?
Code Owner(s)
No response
Sponsor (optional)
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: