-
Notifications
You must be signed in to change notification settings - Fork 165
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
running as a windows services #214
Comments
I'd be interested to know how it installs the service? Maybe a windows registry screenshot? I can't get the service to start from a new-service command in powershell |
@elitistphoenix if you're running into issues w/ v0.63.0, it's possibly related to open-telemetry/opentelemetry-collector#6433 |
i have updated to the new version. still getting these errors: |
Any news on this topic ? |
I don't think we have any maintainers using Windows, we need your input and engineering help to determine what's the cause and how to fix it. |
I'll try to implement this, we have already some go apps which we install as service on windows. |
@Outek that would be awesome thx! |
@Outek i think https://github.com/grafana/agent/blob/afd53a233d75df004c04702618918113038fe606/cmd/agent/service_windows.go#L94 and https://github.com/grafana/agent/blob/afd53a233d75df004c04702618918113038fe606/pkg/server/logger_windows.go#L19 are pretty neat examples of how to run a Go application as a Windows Service with logging to the Windows Event Log. Maybe you can get some inspiration from that. |
I'd be interested to know if @Outek had any success in turning the Otel collector into a windows service as I find myself in the position of using a service creation tool like NSSM 🙏 |
@open-telemetry/collector-maintainers I didn't test this on NSSM, I'm not familiar with it, but, I think we can close this one, since detection to run as a service was fixed via open-telemetry/opentelemetry-collector#9042 |
Closing, please file a new issue if you have trouble with running the Collector as a Windows service |
I'm using nssm to install the otel collector as a windows service.
But every-time the service wants to start it goes in pauze mode.
What i'm i missing to install the collector as a windows service?
Using collector version 0.60.0.
thx
Timmy
The text was updated successfully, but these errors were encountered: