You're not the only one: https://groups.google.com/g/prometheus-users/c/NjtTA7vsVJ8
The suggestion there is to use NSSM. On Tuesday, 24 June 2025 at 16:19:25 UTC+1 shashi tiwary wrote: > 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/4d6a3621-eaea-477f-95ac-8f5c3ed934fcn%40googlegroups.com.

