Added default pluging if nothing is configured

This commit is contained in:
Werner Dijkerman
2018-11-25 20:21:52 +01:00
parent 8df7435e51
commit c9aac33197

View File

@ -98,3 +98,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 %}