Closed llamafilm closed 2 months ago
The log should not say anything about processors.regex since it does not match the namepass line.
This is an incorrect assumption. Any plugin that you have defined will have its Init
function run. That is because this function is run during the initial set up of Telegraf, before metrics are passed and any namepass or other metric filtering is used.
Or at least this should be debug level.
This log message was added as a part of #14084, which I believe was feedback from users as well to better understand what was going on with the plugin. While it could be debug, we have a history of putting init messages that explain a plugin behavior or mode as info instead of debug. This is only printed at the start, which does not make it excessive versus printing at every gather.
Ah I see! Ok that's fair, since it only happens once at init. My telegraf config changes quite often via inotify, so that must be what I'm seeing this so often.
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.31.3
Steps to reproduce
Run the telegraf config above
Expected behavior
The log should not say anything about
processors.regex
since it does not match thenamepass
line. Or at least this should be debug level.Actual behavior
I see log messages at info level like this: