telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

Allow debug setting override per plugin instance

Open voiprodrigo opened this issue 3 years ago • 1 comments

Feature Request

Opening a feature request kicks off a discussion.

Proposal:

Allow debug setting override per plugin instance.

Current behavior:

Debug setting is global and affects all plugins.

Desired behavior:

Ability to override the default per input instance (debug = true | false)

Use case:

There's some debug output (like output.influxdb buffer fulness and batch write metrics) that is useful to keep enabled. If the global is enabled, suddenly a change to a plugin may cause massive amount of debug messages being output, and the only possibility is to disable the setting globally. With this feature, we can chose to silence just one plugin, or enforce debug for just one plugin (for example)

voiprodrigo avatar Feb 21 '22 18:02 voiprodrigo

Hi,

Thanks for this. I agree some of the debug statements on plugins are fairly verbose. Being able to turn on certain plugins would be nice.

next steps: look at adding this per-plugin

Thanks!

powersj avatar May 12 '22 20:05 powersj