telegraf
telegraf copied to clipboard
fix(agent): only set default snmp after reading all configs
Currently the default snmp reader is set after reading every file. This can lead to unnecessary deprecation messages that do not make sense to the user. Instead, only set the default, deprecated snmp reader after all files are read in. This way the user is only notified of the deprecation if they actually choose to use that value in their config.
fixes: #12454
Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip. Downloads for additional architectures and packages are available below.
:thumbsup: This pull request doesn't change the Telegraf binary size
:package: Click here to get additional PR build artifacts
Artifact URLs
What if the first loaded file has it set? Will you get the warning for each file after?