Try using like this.

‘’’
sc create Prometheus binPath= "\"C:\Prometheus\prometheus.exe\"
--config.file=\"C:\Prometheus\prometheus.yml\"" start= auto

‘’’

On Thu, Feb 27, 2025 at 6:30 PM DIWAHAR RAHAWID <[email protected]>
wrote:

> Hi Team,
>
> I am trying to configure Prometheus on Windows server 2022 Hosted on AWS
> environment,.
>
> I want the application to run automatically even when the server is
> rebooted, but running Prometheus as service using the command sc create
> Prometheus binPath= "C:\Prometheus\prometheus.exe
> --config.file=C:\Prometheus\prometheus.yml
> --storage.tsdb.path=C:\Prometheus\data" start= auto
> service is getting created but unable to start, getting error  Error
> 1053: the service did not respond to the start or control request in a
> timely fashion
> <https://stackoverflow.com/questions/158371/error-1053-the-service-did-not-respond-to-the-start-or-control-request-in-a-tim>
>  and
> starting fails.
>
> Not sure what I am missing, please suggest me a way to overcome this
> issue.
>
> Using NSSM is out of box, i want to use only windows service.
>
> Regards
> Diwahar
>
> --
> 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/392ca196-96e1-4d3f-835d-89648172efdfn%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/392ca196-96e1-4d3f-835d-89648172efdfn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAEsBgVf47tu8COHBLeZWwrutTXkeewwe-kOD9O0LzGj6mbjRVA%40mail.gmail.com.

Reply via email to