diff --git a/templates/telegraf-extra-plugin.conf.j2 b/templates/telegraf-extra-plugin.conf.j2 index c6f90b0..731d6ff 100644 --- a/templates/telegraf-extra-plugin.conf.j2 +++ b/templates/telegraf-extra-plugin.conf.j2 @@ -10,6 +10,12 @@ {{ items }} {% endfor %} {% endif %} +{% if item.tags is defined and item.tags is iterable %} +[inputs.{{ item.plugin }}.tags] +{% for items in item.tags %} + {{ items }} +{% endfor %} +{% endif %} {% if item.tagpass is defined and item.tagpass is iterable %} [{{ item.plugin }}.tagpass] {% for items in item.tagpass %} @@ -41,4 +47,4 @@ {% endfor %} {% endif %} {% endfor %} -{% endif %} \ No newline at end of file +{% endif %}