-
Notifications
You must be signed in to change notification settings - Fork 710
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 Container fails to install & start service #1894
Comments
thats expected. The golang stdlib does not support that context (running the exporter as a windows service inside a container). the scenario is not supported unless it's fixed upstream. instead using the msi, I would recommend to download the exe from GitHub and start the exporter directly. Ref: |
@jkroepke Thank you for the quick response. I have tried to run the exe, however having issues ensuring it runs in the background like a service (are there examples?) Containerfile snippets
The final command does not seem to have it run in the background |
You can run windows_export just in foreground and run it as dedicated container. Thats it preferred and supported way. |
please check, if the following snapshot build fixes your use-case: |
Current Behavior
I am using the following Docker image
mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2022
and have my application installed and running on it. I am attempting to install and start the windows_exporter to obtain metrics.Snippets from my Containerfile
However, the installation fails, as it fails to start the windows_exporter service.
Expected Behavior
Expected behavior is that the installation succeeds
Steps To Reproduce
Simple Containerfile FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2022 AS final FROM final WORKDIR /inetpub/wwwroot ADD https://github.com/prometheus-community/windows_exporter/releases/download/v0.30.4/windows_exporter-0.30.4-amd64.msi C:\windows_exporter.msi RUN powershell -Command Start-Process msiexec.exe -ArgumentList '/i', 'C:\windows_exporter.msi', 'ENABLED_COLLECTORS=os,iis,eventlog', '/quiet', '/norestart', '/log windows_exporter_install.log' -NoNewWindow -Wait
Environment
windows_exporter logs
Anything else?
This issue seems to be very similar to #1838
The text was updated successfully, but these errors were encountered: