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

On Wednesday 28 August 2024 at 11:28:48 UTC+1 madan wrote:

> 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.
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/prometheus-users/f1198bf9-0907-4004-a334-125cc7bd54a4n%40googlegroups.com.

Reply via email to