How to change default port of Promethues and windows exporter

664 views
Skip to first unread message

Abhishek Kurmi

unread,
Aug 18, 2023, 6:35:53 AM8/18/23
to Prometheus Users
I success fully changed a port in Linux of Prometheus and node exporter default port.
But now I want to change a port in Windows of Prometheus and windows exporter , there is no config file or .service file in windows and when I my trying to change port in Promethues.yml, even after that these service is running on default port.

Please suggest me how can I change a default port in windows of Prometheus and windows exporter.

Brian Candler

unread,
Aug 18, 2023, 7:11:14 AM8/18/23
to Prometheus Users
It's the same as Linux: you need to apply the appropriate command line option.

If it's running as a Windows service, I believe you should be able to edit the options passed to the service using service settings and/or regedit.  Google says:
Reply all
Reply to author
Forward
0 new messages