telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

fix(agent): only set default snmp after reading all configs

Open powersj opened this issue 1 year ago • 1 comments

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

powersj avatar Jan 04 '23 15:01 powersj

What if the first loaded file has it set? Will you get the warning for each file after?

Hipska avatar Jan 10 '23 19:01 Hipska