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):
[image: Screenshot 2022-05-20 134752.png]

web config file (web.yml):
[image: Screenshot 2022-05-20 131614.png]

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:
[image: Screenshot 2022-05-20 131948.png]

Any insight is appreciated.


-- 
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/44c36b22-21e4-4f2a-9648-a1d13dc7d747n%40googlegroups.com.

Reply via email to