You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I define multiple plugins in telegraf_plugins_extra, the role creates a separate file for each plugin in /etc/telegraf/telegraf.d. However, each file lists all of the extra plugins.
The issue is that the task "Copy telegraf extra plugins" iterates over telegraf_plugins_extra, but the template file telegraf-extra-plugin.confalso iterates over telegraf_plugins_extra, causing duplicates.
I'm not quite expert enough in ansible to know how to fix this yet, but I'll try to find some time to play with it...
The text was updated successfully, but these errors were encountered:
Okay, the obvious fix (remove the iteration inside the file) works - until you define multiple plugins with the same type (e.g. two SNMP plugins talking to different servers). In that case, the second one doesn't get instantiated in the final output.
When I define multiple plugins in
telegraf_plugins_extra
, the role creates a separate file for each plugin in/etc/telegraf/telegraf.d
. However, each file lists all of the extra plugins.The issue is that the task "Copy telegraf extra plugins" iterates over
telegraf_plugins_extra
, but the template filetelegraf-extra-plugin.conf
also iterates overtelegraf_plugins_extra
, causing duplicates.I'm not quite expert enough in ansible to know how to fix this yet, but I'll try to find some time to play with it...
The text was updated successfully, but these errors were encountered: