From 0597f0115c1862109d0401144b91eb4a4f83caaf Mon Sep 17 00:00:00 2001 From: Olivier Boukili Date: Fri, 20 Jan 2017 11:58:17 +0100 Subject: [PATCH] extra plugins tags --- templates/telegraf-extra-plugin.conf.j2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 %}