I am using below command to create a service on windows server 2019 . 
Service is being created but after start unable to run the service.

sc.exe create Prometheus binPath= 
"`"C:\Prometheus\prometheus-3.4.0.windows-amd64\prometheus.exe`" 
--config.file=C:\Prometheus\prometheus-3.4.0.windows-amd64\prometheus.yml 
--log.level=debug --enable-feature=agent" start= auto

Start-Service -Name Prometheus

In the event log i am getting below error. 

TimeGenerated           EntryType Message
-------------           --------- -------
6/18/2025 4:21:15 AM        Error The Prometheus service failed to start 
due to the following error: ...
6/18/2025 4:21:15 AM        Error A timeout was reached (30000 
milliseconds) while waiting for the Prometheus service to connect.

Also i am not getting any log in the prometheus query log.

When i am running the same executable as a stand alone process or windows 
wrapper(as a service) i am able run that.

Any idea what could be the issue here.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/prometheus-users/0b285956-3ae0-44cb-92d8-75d6a397a403n%40googlegroups.com.

Reply via email to