-
Notifications
You must be signed in to change notification settings - Fork 708
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
collector process failed - counter not found on Windows Server 2022 #1313
Comments
I assume that one of the required counters is disabled. Can you try this command (admin mode) and post the result : |
PS C:\> lodctr.exe /Q | findstr /i "disable"
[Lsa] Performance Counters (Disabled)
[PerfProc] Performance Counters (Disabled)
PS C:\> So it seems something is disabled, does this include the required |
Yes, so now try to activate these counters by running the command below and check if you still have any errors.
|
Thank you very much ❤️ @SupraOva , that does seem to do the trick. I followed those command with Where do we go from here, I guess this should be put at least into the process collector docs? The setup installer cannot run this automatically, because not everybody uses the |
Found the information there :
It might be interesting to use |
The issue here that windows_exporter is using Registry API that the moment which not support any V2 providers. See also: #1350 |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
For me the above Workaround didnt fix it. |
I'm currently working on a new collector which is used the windows performance data libraries. They are able to use v2 counters. But I expect that it might take weeks develop the new feature. |
Will this collector be commited to prometheus or its seperate thing? |
here - #1459 The PR is not fully completed yet. |
Had a similar issue on Windows 10. None of os,cpu,memory,system,logical_disk etc. worked. Another symptom was getting a "Unable to add these counters" message when starting PerfMon. Rebuilding the counters exactly as instructed here (Administrator prompt, cd to correct directories) solved it for me. |
Something very similar happened to me on a Server 2008 R2 VM (the same collectors even) and this helped me fix it, thanks! |
Using version
0.24.0
on a new Windows Server 2022 machine, the exporter service was not starting.Investigating logs this error is found:
Related issue found:
I tried running
as originally posted by @carlpett in #580 (comment)
But that did not resolve the issue (I have not yet tried rebooting). We use these collectors by default:
Enabling them one by one, only
process
seems to have an issue.Looking into
perfmon.exe
I noticed the following:On the machine with the error,
process
performance counters are listed under categoryProcess V2
.An ok machine (Windows Server 2019) displays them under
Process
.Has there been an breaking change by Microsoft?
Edit: Querying using powershell, it seems the
Process
Counter has been renamed ?!The text was updated successfully, but these errors were encountered: