A few enhancements and fixes to windows support

- Add object to template for windows perf counters with some defaults
- Fix reference to include directory
This commit is contained in:
Jack Ivy
2018-12-07 15:54:00 -06:00
committed by Jack Ivy
parent 8e927ff480
commit 160793b0e1
3 changed files with 13 additions and 3 deletions

View File

@ -94,6 +94,16 @@
{{ items }}
{% endfor %}
{% endif %}
{% if item.objects is defined and item.objects is iterable %}
{% for object in item.objects %}
[[inputs.{{ item.plugin }}.object]]
ObjectName = {{ object.name | tojson }}
Instances = {{ object.instances | default(["*"]) }}
Counters = {{ object.counters | default(["*"]) }}
Measurement = {{ object.measurement | default("win_perf_counters") | tojson }}
IncludeTotal = {{ object.total | default(false) | string | lower }}
{% endfor %}
{% endif %}
{% if item.specifications is defined and item.specifications is iterable %}
[[{{item.plugin}}.specifications]]
{% for items in item.specifications %}