Hi there!
I followed the doc to configure Prometheus to monitor itself, and it works fine.
but then I added basic auth, and the metrics stop updating, and querying "up" returns 0.
at first, I suspected prometheus will also requires basic auth to scrape itself, so I added the same basic auth username/password to config file, but still no luck.
config file (prometheus.yml):
web config file (web.yml):
and I am launching Prometheus with the two config files (using prometheus 2.35.0 on windows):
.\prometheus.exe --config.file=prometheus.yml --web.config.file=web.yml
"up" returns 0:
Any insight is appreciated.