Consolidate instead to a single extra-plugins conf file, to cover the case of multiple instances of same plugin

This commit is contained in:
Emerson Knapp
2017-02-21 10:40:19 -08:00
parent 641981bfb3
commit 128faa55b6
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,5 @@
{% if telegraf_plugins_extra is defined and telegraf_plugins_extra is iterable %}
{% for item in telegraf_plugins_extra %}
[[inputs.{{ item.plugin }}]]
{% if item.interval is defined %}
interval = "{{ item.interval }}s"
@ -43,3 +45,5 @@
{{ items }}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}