You're giving the wrong password in the scrape job. basic_auth: username: admin password: <PUT-THE-REAL-PASSWORD-HERE>
The value starting $2b$... is a *hash* of the password. This is fine to go in web.yml, since Prometheus will take the client-supplied password, hash it, and compare it with the stored hash. But for the client which is making the connection, it must supply the actual password. On Friday, 20 May 2022 at 08:51:00 UTC+1 [email protected] wrote: > 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/311b7c88-63d3-48a7-897e-859202931c65n%40googlegroups.com.

