-
Notifications
You must be signed in to change notification settings - Fork 219
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
Scraping Windows service info crashes Alloy #1744
Comments
We just started migrating from Agent Flow Mode 0.38 to Alloy 1.4.0 and this became a blocker for us. I believe it would be good to give this some attentions since many of us have to get to 1.4.0 get fix the security issues in the windows service in lower versions. |
This is due to an upstream bug in windows_exporter. The version of Specifically, this code does not set I validated the fix locally by vendoring the package with alloy and a config that was able to reproduce the issue with the following code fix
|
I've opened a bug issue with a code fix included to see if we can get it backported and quickly release a patch for alloy. Otherwise, we can back out the exporter update or jump to v0.29.* which looks like it may be working but requires a later go toolchain than alloy is using. |
What's wrong?
Grafana Alloy works very smooth over all. Thanks for your work!
I ran into the problems descirbed in https://community.grafana.com/t/windows-exporter-component-crash-when-scrapping-scheduled-tasks/126616 so i upgraded to the latest rc version of Grafana Alloy. In general it works great. But i have problems scraping the windows service information. I couldn't figure out what exactly the problem is. But without enabling the "service" collector everything works fine. If you have any more questions surrounding the setup i'm happy to answer them. Grafana Alloy runs as Windows SYSTEM user while some services run under different Active Directory Accounts. Maybe the problem is related to some access restrictions?
Steps to reproduce
See the configuration blocks below. Grafana Alloy crashes on the first windows integration scrape. So shortly after starting it (as a service / as a binary from cmd).
System information
Windows Server 2022 Standard 21H2
Software version
Grafana Alloy v1.4.0-rc.3
Configuration
The configuration was migrated form the static Grafana Agent configuration.
This works:
This does not work:
I also tried this. This works but it generates a warning (see below):
Logs
Running Grafana Alloy with "service" collector enabled and only
where_clause
configured:This works but generates a lot of warnings. Running Grafana Alloy with "service" collector enabled and all the properties configured:
The text was updated successfully, but these errors were encountered: