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

[service]: add new subcommand to examine the initial configuration #11775

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

VihasMakwana
Copy link
Contributor

@VihasMakwana VihasMakwana commented Nov 29, 2024

Description

Why is this useful?

  • Users might want to examine the config if they face any errors at boot time. This subcommand prints the configuration on stdout after merging and resolving from all the --config sources.
  • The command prints the configuration even if it's invalid. This can help user to track down the faulty piece of config.

Usage

./otelcorecol examine --config=file:file.yaml --config=http://remote:8080/config --config=file:file2.yaml

Link to tracking issue

Fixes ##11479

Testing

Added unit test cases.

Documentation

Updated readme.

@VihasMakwana VihasMakwana requested a review from a team as a code owner November 29, 2024 14:03
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

Successfully merging this pull request may close these issues.

1 participant