-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 ability to filter printed headers in telegraf config
#5585
Conversation
Would it be possible to call this |
That would work, though I do like the ability to remove all unneeded comments in a generated file without piping to a text processor. |
I think we should have this so that this command only prints the
Also should support sections
Only show the header for a section when the section is enabled. |
Ok, now I see what you're saying. I understood the section-filter was to only control the other (currently non-configurable) sections agent, and global-tags. To just show the agent section, with changes up to now on this branch, you would need to specify:
Which is a lot of configuration. Making the change now. |
Resolves #5584
This adds
header-filter
as an option to filter the printing of theglobal_tags
andagent
sections of the config file. By setting to "none", config headers will be skipped, allowing the creation of minimal config files.