mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
add queries var to template
This commit is contained in:
@ -46,4 +46,12 @@
|
||||
Measurement = {{ object.measurement | default("win_perf_counters") | to_json }}
|
||||
IncludeTotal = {{ object.total | default(false) | string | lower }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if item.value.queries is defined and item.value.queries is iterable %}
|
||||
{% for query in item.value.queries %}
|
||||
[[inputs.{{ item.value.plugin | default(item.key) }}.query]]
|
||||
{% for item in item.value.queries[query] %}
|
||||
{{ item }}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
Reference in New Issue
Block a user