Add object to template for windows perf counters with defaults
Fix reference to include directory
Description of PR
I found it helpful to explicitly support what telegraf expects when defining win_perf_counters plugin objects as defined in their docs.
I don't particularly like the fact that a new objects property is effectively hijacked for use with the win_perf_counters plugin exclusively, but if you have other ideas on how to handle that let me know - don't want to break compatibility with linux config etc.
I also discovered a small bug in the definition of the windows plugin includes directory (just needed to use the variable)
My definition for a win_perf_counter plugin now looks like this instead of having to define line items in a list of configs to get multiple objects in the template:
Description of PR I found it helpful to explicitly support what telegraf expects when defining win_perf_counters plugin objects as defined in their docs. I don't particularly like the fact that a new
objects
property is effectively hijacked for use with the win_perf_counters plugin exclusively, but if you have other ideas on how to handle that let me know - don't want to break compatibility with linux config etc.I also discovered a small bug in the definition of the windows plugin includes directory (just needed to use the variable)
My definition for a win_perf_counter plugin now looks like this instead of having to define line items in a list of configs to get multiple objects in the template:
Type of change
Feature Pull Request Bugfix Pull Request