-
Notifications
You must be signed in to change notification settings - Fork 711
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_os_info not correct #1022
Comments
The @benridley or @retryW are you able to provide troubleshooting steps for this collector? |
my windows_exporter on windows 11 metrics also show up as win 10
|
Sorry all, have been traveling recently. It looks like this information is read from the registry key |
So I did some digging, and this appears to be a widely acknowledged issue. Unfortunately, the API calls and registry entries have not been updated to add a way to detect Windows 11. Microsoft employees have apparently said:
(from this StackOverflow answer) We could potentially add in an exception that checks for this and corrects the value exported by windows_os_info for usability purposes, but I guess its worth acknowledging it would be a hack rather than a proper value exposed by the Windows API like the rest of those labels are. |
Keeping an incorrect human name and relying on a particular build number isn't a great user experience 😞. Thanks for researching this one @benridley! My preference would be to document this for the Thoughts? |
I agree @breed808, IMO it's better to keep the exporter 'pure' and move any handling for identifying Windows 11 up into the business logic of whatever is consuming the metrics. One thing that might be worth doing though is exposing the major, minor, and build numbers as separate labels. Right now we concatenate them into a single
would become
I'm happy to make a PR for this if you agree it's worth doing for this use case. |
Sure, the proposed labels sound like a good option for users. Send through a PR and I'll get it merged. |
System: Windows 11
Exporter Version: 0.18.1
Problem: windows_os_info not correct
Hello,
in the Prometheus Browser / Targets / metrics my Windows 11 system appears as:
product="Microsoft Windows 10 Pro", version="10.0.22000"
classified.
Am I doing something wrong??
best regards Thomas.
The text was updated successfully, but these errors were encountered: