Change tags by global_tags

This commit is contained in:
Anthony ARNAUD
2017-07-20 23:02:51 -04:00
parent 7766329cb8
commit b4317d8e5d
3 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,8 @@
# Telegraf configuration
[tags]
{% if telegraf_agent_tags is defined and telegraf_agent_tags is iterable %}
{% for item in telegraf_agent_tags %}
[global_tags]
{% if telegraf_global_tags is defined and telegraf_global_tags is iterable %}
{% for item in telegraf_global_tags %}
{{ item.tag_name }} = "{{ item.tag_value }}"
{% endfor %}
{% endif %}