mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Renamed the tojson to to_json
This commit is contained in:
@ -97,10 +97,10 @@
|
|||||||
{% if item.objects is defined and item.objects is iterable %}
|
{% if item.objects is defined and item.objects is iterable %}
|
||||||
{% for object in item.objects %}
|
{% for object in item.objects %}
|
||||||
[[inputs.{{ item.plugin }}.object]]
|
[[inputs.{{ item.plugin }}.object]]
|
||||||
ObjectName = {{ object.name | tojson }}
|
ObjectName = {{ object.name | to_json }}
|
||||||
Instances = {{ object.instances | default(["*"]) }}
|
Instances = {{ object.instances | default(["*"]) }}
|
||||||
Counters = {{ object.counters | 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 }}
|
IncludeTotal = {{ object.total | default(false) | string | lower }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Reference in New Issue
Block a user