diff --git a/templates/telegraf.conf.j2 b/templates/telegraf.conf.j2 index 83de62b..752543e 100644 --- a/templates/telegraf.conf.j2 +++ b/templates/telegraf.conf.j2 @@ -97,10 +97,10 @@ {% if item.objects is defined and item.objects is iterable %} {% for object in item.objects %} [[inputs.{{ item.plugin }}.object]] - ObjectName = {{ object.name | tojson }} + ObjectName = {{ object.name | to_json }} Instances = {{ object.instances | default(["*"]) }} Counters = {{ object.counters | default(["*"]) }} - Measurement = {{ object.measurement | default("win_perf_counters") | tojson }} + Measurement = {{ object.measurement | default("win_perf_counters") | to_json }} IncludeTotal = {{ object.total | default(false) | string | lower }} {% endfor %} {% endif %}