diff --git a/templates/telegraf-extra-plugin.conf.j2 b/templates/telegraf-extra-plugin.conf.j2 index 53b3199..8264621 100644 --- a/templates/telegraf-extra-plugin.conf.j2 +++ b/templates/telegraf-extra-plugin.conf.j2 @@ -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 %} \ No newline at end of file