-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: multiple config files not working properly #1137
Comments
that's not expected.....can you post the config files that you're using? Both the main and any you have in directories. |
Here is the "main" config file:
All files in telegraf.d, one input per file. win_perf_counters_logicaldisk.conf
win_perf_counters_memory.conf
win_perf_counters_network_interface.conf
win_perf_counters_processor.conf
win_perf_counters_system.conf
Only "processor" is working at the moment. If I copy/paste everything in one file with only one line:
And then all block starting with:
Everything is working. |
Any update regarding this issue? |
nope, you will need to use one file for now. |
Would love to get this feature. For configuration management for large environments then you could have one base telegraf config that all machines get and then one extra file per role, for SQL servers, for IIS servers and so on. |
Hello. Any chance to have news about this issues |
This is a low priority for me at the moment, there is an easy workaround and I don't have a way to easily reproduce as I don't have a windows dev environment. If someone can submit a PR it would be greatly appreciated. |
I've identified the problem here while investigating another issue, we should use |
I am still seeing the behavior originally described in 1.2.0. @glz-io, is it working as expected for you? |
My windows servers are not on the latest version at the moment. I'll try to work on this by the end of the week. |
When I attempt to load multiple files with Example: With |
If anyone wants to take a stab at this it is probably related to these package level variables: https://github.com/influxdata/telegraf/blob/master/plugins/inputs/win_perf_counters/win_perf_counters.go#L69 |
Thanks for the guidance @danielnelson, I'll take a shot at this. |
Hi,
I've stared using "win_perf_counters" on Windows servers.
I have a little issue: I can not have multiple [[inputs.win_perf_counters]] in multiple files to arrange configs. For example, one for CPU, one for memory, etc...
It seems, only the first [[inputs.win_perf_counters]] found in my telegraf.d directory is used.
WIth snmp input, I can have multiple [[inputs.snmp]], one per file per switch.
Is it an expected behavior ?
I need a such feature for managing config with Puppet.
The text was updated successfully, but these errors were encountered: