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

New subcommand for config introspection #11467

Closed
VihasMakwana opened this issue Oct 16, 2024 · 2 comments
Closed

New subcommand for config introspection #11467

VihasMakwana opened this issue Oct 16, 2024 · 2 comments

Comments

@VihasMakwana
Copy link
Contributor

VihasMakwana commented Oct 16, 2024

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

It would make sense to have a command line option which logs the final configuration. It is particularly useful for users when a config is created from multiple providers and expanded recursively.

Describe the solution you'd like

This option can be provided as a subcommand (like validate subcommand). This new subcommand would be helpful for introspection the configuration.

Alternative options

Alternatively, we can create a new subcommand, --dry-run which both validate the config and print the final configuration. This is quite similar to helm's dry-run command.

Usage

  1. Validate the config
otelcol dry-run
  1. Validate the config and print the final configuration
otelcol dry-run --debug
@VihasMakwana
Copy link
Contributor Author

I’m not entirely sure how this fits into the 1.0 roadmap, but I think it could be a valuable addition before the major release. I’d love to hear your thoughts on it!

@VihasMakwana
Copy link
Contributor Author

Duplicate of #5223.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant