Changing Port Number and Implementing Authentication for Windows Exporter

43 views
Skip to first unread message

madan

unread,
Aug 28, 2024, 6:28:48 AM8/28/24
to Prometheus Users

Dear Prometheus Support Team,

I am using the Windows Exporter to monitor my Windows server. I would like to know how to change the default port number from 9182 to a different port. Additionally, I would like to implement authentication to ensure that only authorized users can access the metrics exposed by the exporter.

Could you please provide detailed instructions on how to accomplish these tasks? Any specific configuration changes or steps involved would be greatly appreciated.

Thank you for your time and assistance.

Madan D S.

Brian Candler

unread,
Aug 28, 2024, 6:59:11 AM8/28/24
to Prometheus Users
You need to pass some flags to the server process:
https://github.com/prometheus-community/windows_exporter?tab=readme-ov-file#flags

--web.listen-address lets you change the port
--web.config.file lets you point to a config file for setting up HTTP basic auth and/or TLS client certificate auth
Reply all
Reply to author
Forward
0 new messages