-
Notifications
You must be signed in to change notification settings - Fork 700
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
os collector fails when paging file is disabled (>= v0.17.0) #939
Comments
There's been similar issues raised with the recent changes to the I'll see if I can reproduce this myself, and determine the cause. |
same issue here!
|
This is a problematic line of code: it requires ExistingPageFiles in the registry. ExistingPageFiles key is missing when paging file is disabled. The workaround we use until fixed is to create an empty registry key, before running windows_exporter. windows_exporter/collector/os.go Line 182 in 4d2a247
|
Thanks @to-kr, you've made it very easy to fix this 👍 |
I have 2 servers with Windows Server 2012 R2 and the page file is active. The collector tries to fetch a file from drive "z:", but it doesn't exist.
ExistingPageFiles: |
Having the Windows paging file disabled on all volumes results in the "os" collector failing on v0.17.0 or newer with below error.
Either running an older version (i.e. v0.16.0) or setting a paging file again (w/ system reboot for some reason) mitigates this, but would be great if this could be fixed in the exporter/collector again in an upcoming version.
Tested on both Windows 10 LTSC 2021 and Windows Server 2022.
The text was updated successfully, but these errors were encountered: