-
Notifications
You must be signed in to change notification settings - Fork 707
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
Update collector not doing anything #1691
Comments
windows_exporter is using this search terms: Also I'm missing the debug log message Is |
I found the issue: The But you can try a non stable snapshot build from main branch: https://github.com/prometheus-community/windows_exporter/actions/runs/11326759971/artifacts/2052853407 |
@jkroepke thanks a lot for your quick reply!
During my tests
Good to know! Thanks for this information. I will re-test using a snapshot build. |
@jkroepke I did more tests and have some findings.
|
I will fix that. update should be the correct one. |
Current Behavior
When enabling the update collector it gets listed in the "Enabled collectors: [...]" log output.
Unfortunately not one single metric prefixed with "windows_updates" gets exposed.
Also: there is no log output related to the "update" collector being generated despite debug log level being enabled.
The update collector seems to not do anything at all.
Expected Behavior
When enabling the "update" collector metrics with prefix "windows_updates" should be exposed and log entries should be generated.
Steps To Reproduce
Enable update collector, query metrics endpoint (e.g. http://127.0.0.1:9182/metrics) and check for "windows_updates" prefixed metrics. Check windows_exporter log output.
Environment
windows_exporter logs
After this no additional output / log entry gets generated / printed.
Anything else?
Tried running windows_exporter on 2 different systems. Same issue. Other collectors work without any issues. Tried running windows_exporter both as Administrator and SYSTEM, same issue (issue not related to permissions).
Querying Windows Update via PowerShell works without any issues.
PS C:\Users\Administrator> $Session = New-Object -ComObject "Microsoft.Update.Session"
PS C:\Users\Administrator> $Searcher = $Session.CreateUpdateSearcher()
PS C:\Users\Administrator> $Results = $Searcher.Search("IsInstalled=0 and Type='Software'")
PS C:\Users\Administrator> $Results.Updates.Count
4
The text was updated successfully, but these errors were encountered: