-
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
Telegraf issues with Windows multi instance processes #1827
Comments
I'm seeing more abnormal Windows process results. One of my colleagues pointed out for example that Telegraf.exe was using more then 10 % CPU on some servers in Grafana. I doublechecked this on the server and it was only using 1 % CPU. |
When there are multiple of the same processes it seems to only pick one of them, my config is also as follows: [[inputs.win_perf_counters.object]]
# Process metrics, in this case for IIS only
ObjectName = "Process"
Counters = ["% Processor Time","Handle Count","Private Bytes","Thread Count","Virtual Bytes","Working Set"]
# Instances = ["gitkraken"]
Instances = ["*"]
Measurement = "win_proc"
IncludeTotal=true |
Posted this problem on Google forums, but no answer. https://groups.google.com/forum/#!topic/influxdb/k2njOfflGmo It seems there is no way atm to monitor processes which have multiple instances. Although perfMon is able to show data for each process instance, Telegraf fails to separate processes with the same name.. Changing the title of this issue for more clarity. |
That does appear to be the issue. PRs would be appreciated if anyone could find a solution for tagging the process with the Windows instance #. In unix we would call this a PID (Process ID), not sure what it's referred to in the Windows world. |
@sparrc, in Windows it is also called PID. |
+1 on getting this solved ! |
Hi, i managed to debug it on windows and it turned out that the |
Hi, could anybody test my changes. i really would appreciate your help #2352 https://github.com/bullshit/telegraf/tree/fix-1827-win_perf_counters |
@bullshit , tried the fix and seems to work:
by the way the following issues may be related to this one: #2210, #1546 thanks, |
Reopening based on #2879 (comment) |
It seems that the problem still exists. I have this issue on a Server 2008 R2 with Telegraf 1.8. Windows sees process but in Grafana I found only process. |
This issue should be mostly solved by enabling wildcard expansion:
This option has a side effect of localizing the counter names, which is usually unwanted, but is discussed on a different issue. #4280 |
Bug report
I noticed in Grafana that some Windows process % Processor Time was incorrect on one server for one process. The process is called UserMonitor showed as using 100 % CPU for almost all the time.
Doublechecking the perfmon on the Windows Server showed that this process was actually only using +- 8 % CPU.
The config in Grafana:
And a query qhowing the UserMonitor process data coming in as 100%:
Relevant telegraf.conf:
System info:
Telegraf 1.0.0
Windows Server 2012 R2
The text was updated successfully, but these errors were encountered: