-
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 Performance Counters input plugin doesn't gather data from multiple instances #4280
Comments
As PdhGetFormattedCounterArray doesn't return counter handle neither it is impossible to determine instance index using available data. The flaw here is that there is no guarantee that the instances will be returned in the same order next time, so the same temporary index could be used for different instances. Of course, the best solution is to use wildcards expansion 🥇 |
Can you create a unittest that shows this behavior? |
Sure, np. |
I know we have had problems with multiple instances for a long time now, but has this issue gotten worse since 1.6 or is it essentially the same behavior as before? |
PR #4036 caused this.. |
I'm running into this issue. Any idea when / if it'll be resolved? |
@PeterKelecom What version of Telegraf are you using? If 1.7.x, try setting |
@vlastahajek That works, thanks! |
version 1.8.2 doesn't work for Windows 10 x64 - telegraf doesn't send data |
@andryua Can you attach the config you are using? |
|
Setting |
@vlastahajek does setting |
So, how I can get summary data from multiple instances? |
@andryua This would be something that can be done using an aggregator plugin or, I think most flexibly, at query time. |
I feel like we are getting off topic here, this issue is documenting a known limitation/quirk of the current plugin that came up during development. Most people should use If anyone is experiencing additional issues please check for other open issues and if none is found open a new issue. |
can, You help me - where I can get this aggrefator plugin and how I can apply it in telegraf for Windows. Thanks! |
@glinton, everything seems to be working as expected with attached config in master and in 1.8.2. Both, with |
@andryua Here are the docs, if you need more help can you create a new topic on the InfluxData Community site. https://github.com/influxdata/telegraf/tree/master/plugins/aggregators/basicstats |
Thanks! But only on Win 7 x64 work correctly. On Win 10 x64 - show min-max only in process section |
With Telegraf 1.8.3 on Server 2008 R2 x64 and UseWildcardsExpansion = true I get the expected results for the process I want to monitor. |
Closing as it seems |
Relevant telegraf.conf:
System info:
Telegraf 1.7.0
Window 10 64bit
Expected behavior:
Actual behavior:
Additional info:
Problem is that PdhGetFormattedCounterArray returns instance name without an instance index.
And in this case values grouping causes that each instance overwrites value of previous.
The text was updated successfully, but these errors were encountered: