Merge pull request #70 from dj-wasabi/add-default-plugin

Added default pluging if nothing is configured
This commit is contained in:
Werner Dijkerman
2018-11-26 17:56:42 +01:00
committed by GitHub

View File

@ -102,3 +102,10 @@
{% endif %}
{% endfor %}
{% endif %}
{% if telegraf_plugins_default is defined and telegraf_plugins_default|length == 0 %}
{% if telegraf_plugins_extra is defined and telegraf_plugins_extra.keys() | length == 0 %}
# No plugins configured, added a mem plugin so telegraf doesn't stop working.
[[inputs.mem]]
{% endif %}
{% endif %}