exporter-toolkit icon indicating copy to clipboard operation
exporter-toolkit copied to clipboard

TLS and Basic Auth Config Flag not working

Open Eforen opened this issue 4 years ago • 1 comments

Not sure if I am stupid or the documentation is incomplete or something.

I am unable to get the webconfig file working

>"C:\Program Files\windows_exporter\windows_exporter.exe" --log.format logger:eventlog?name=windows_exporter  --telemetry.addr :9182 --web.config.file C:\Monitoring\web.yaml
windows_exporter.exe: error: unknown long flag '--web.config.file', try --help

my web.yaml is

tls_server_config:
  cert_file: C:\Monitoring\cert.crt
  key_file: C:\Monitoring\cert.key

basic_auth_users:
  prometheus: [redacted]

Eforen avatar Feb 23 '21 21:02 Eforen

It seems like this has not been relased yet, and in the default branch,the code is on --web.config, not web.config.file

Created https://github.com/prometheus-community/windows_exporter/pull/735 to align the flag.

roidelapluie avatar Feb 23 '21 23:02 roidelapluie

Very old issue; I assume this is resolved now.

bboreham avatar Jan 26 '24 11:01 bboreham