-
Notifications
You must be signed in to change notification settings - Fork 701
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
Thermalzone not working #816
Comments
Are there any relevant logs in the Event Viewer? |
Getting something similar with no thermal data. Looking at the event viewer and filtering for windows_exporter everything is information except 2 which are warnings Looks like all my things are duplicated twice which is why I have 2 warnings with the same message. Everything else seems to be working though just a thermalzone issue. |
I am also having this issue. I suspect my hardware does not support the thermalzone collector, but I do not know how to validate this. |
Checking if the # List Counter Sets (confirm if "Thermal Zone Information" CounterSet is present)
Get-Counter -ListSet * | Sort-Object -Property CounterSetName | Select CounterSetName
# List counters for set
Get-Counter -ListSet 'Thermal Zone Information'
# Get a counter from the set
Get-Counter -Counter '\Thermal Zone Information(*)\Temperature' I get an error ("Get-Counter: Internal performance counter API call failed. Error: 800007d1.") when running the last command, but that may be due to my VM not having access to any hardware temperature sensors. |
@breed808 thank you for your reply. I run those commands in PowerShell as Administrator.
This is on a physical PC. Please let me know what other information I can provide. |
Strange, some searching indicates that this error is returned when not running the query as Administrator 😕 Are you able to query any of the other counters, such as |
Hi @breed808. Thanks for the quick reply, appreciate it! I am unable to get any of the other counters in PowerShell, ran as Administrator. I am unable to get them in Performance Monitor either. So it seems it's a Windows problem.
I ran Performance monitor again as administrator, hoping it would help, but it didn't. EDIT: I found this article: https://www.tenforums.com/general-support/136109-error-event-1020-perflib-win-10-1903-a.html
I tried to install https://dotnet.microsoft.com/download/dotnet-framework/net48 as suggested by Google, but it already says that it's installed. So not sure what to install for that specific .dll file, but I think it's related... |
I've done some more searching and there's mention of repairing the .NET Framework installation to install the missing mscoree.dll file. |
I ran the tool, and tried to run the .NET Framework installer again as said in the tool. Unfortunately it didn't fix the Performance monitor, not even after a reboot. Stupidly enough, I never checked if |
I also get the same error on the final command - but I am not running the commands from a VM:
The first two commands run without error. |
I'm seeing similar results; running Powershell as Administrator:
This is running on Windows Server 20H2, on bare metal with almost nothing else installed or configured. Using windows_exporter v0.16.0. CPU: AMD Threadripper 3960X |
I think a separate yet related issue here is that |
Apologies all, I've checked the Could you run the following and see if any output is returned? Get-CimInstance -Classname Win32_PerfRawData_Counters_ThermalZoneInformation I've run this on my testing VM but have received no output or error. |
Same here @breed808
It looks almost like it expects something extra. |
@breed808 Any update/suggestions on this? I don't mind joining an IRC or something so we can troubleshoot this faster if you'd like. |
@Ramshield I don't mind supporting over IRC, but I'm not sure if I can be of much more help here. |
@breed808 Anyone we can mention who might be able to help? :) |
It's been a few years since I looked at this last time, but from what I recall, the ThermalZone data was very finicky, and requires some driver support which we never managed to pin down exactly what was supposed to provide... |
Is there any way to take a look at for example Open hardware monitor for inspiration, at the least? |
There was some work on reusing OHM in #727, but it stalled on a mix of licensing issues and whether it was a good integration pattern. |
I am running it on a German system and it seems it cannot collect data as I have to run the following command to get the relevant data |
Maybe Open Hardware Monitor is a solution. It exposes it's readings to WMI and it's unter the MPL 2.0 license. http://openhardwaremonitor.org/wordpress/wp-content/uploads/2011/04/OpenHardwareMonitor-WMI.pdf It seems that it can be interfaced with it's DLL. https://stackoverflow.com/questions/3262603/accessing-cpu-temperature-in-python |
I'm facing the same issue, in my case it's in spanisht and it seems it cant get temperature values to pass them. |
The translated ListSet names dont't match the English name in the collector. From the previous reports I've seen on this issue, not all ListSets have translation problems (or are not translated). It's something we should address at some stage, else we're excluding entire localizations from running the exporter. |
I was likely on American English when I tried originally and it wasn't working for me. |
Yes, there's two issues with the collector that have been raised in this thread:
Users in this thread are largely experiencing 1), but 2) is also a problem. |
adding my "me too" here as well. German installation of MS Windows Server 2019. |
Same here (German, empty results set), I think we have a clear pattern |
We also plan an collectors which allows to scrape any perfdata based counters. |
In summary: Thermalzone is a generic approach from Windows which seems not implemented by each driver vendor. Thats something which can't be fixed by windows_exporter. Open Hardware Monitor looks good-ish, but it seems getting outdated. No releases since 3 years which sounds suspicious. https://github.com/openhardwaremonitor/openhardwaremonitor |
LibreHardwareMonitor is updated fork for OHM. |
The current workaround is https://github.com/nickbabcock/OhmGraphite - it an first class prometheus exporter for hardware sensors. |
Wow! I have not seen this solution before. I will definitely try it today. Thanks for the tip ;-) |
I will close this issue. Thermalzone collector works, but hardware vendors doesn't implement the interfaces. Workaround is using https://github.com/nickbabcock/OhmGraphite |
Hi,
My exporter does not expose any metrics regarding the thermalzone.
It is enabled however:
Exporter version:
Starting windows_exporter (version=0.16.0, branch=master, revision=f316d81d50738eb0410b0748c5dcdc6874afe95a)
I run windows exporter with the following arguments:
"C:\Program Files\windows_exporter\windows_exporter.exe" --log.format logger:eventlog?name=windows_exporter --telemetry.addr :9182 --collectors.enabled cpu,cs,logical_disk,logon,memory,net,os,process,service,system,tcp,time,thermalzone,textfile
I'm a Linux engineer, so I have no clue how to troubleshoot something like this. Please advice, thank you!
The text was updated successfully, but these errors were encountered: