Thanks for the advice! The /targets page is very helpful in my debugging! On Tuesday, May 24, 2022 at 6:33:43 PM UTC+8 [email protected] wrote:
> Hi, > > I don't know how TLS certs work on Windows, but you should at least be > able to see the exact scrape error on the /targets page of your Prometheus > server - what does it say? > > Cheers, > Julius > > On Tue, May 24, 2022 at 11:57 AM Hank Huang <[email protected]> wrote: > >> Hi all! >> >> So I setup Prometheus to monitor itself. >> Now I want to test with https, so I followed the doc and generated >> example.com.crt and example.com.key, and referenced them in the config file >> and web config file. >> I also double clicked on the example.com.crt to install the cert onto my >> machine. >> Then I launch the Prometheus with the two config files: >> .\prometheus.exe --config.file=prometheus.yml --web.config.file=web.yml >> >> When I query "up" from Prometheus, it's always 0, the response status is >> 200 though. Also there's a "TLS handshake error" in the console. >> I think maybe it's because I didn't install the cert correctly. Any >> insight is appreciated. >> >> [image: Screenshot 2022-05-24 173210.png] >> >> [image: Screenshot 2022-05-24 173734.png] >> >> >> config file (prometheus.yml): >> [image: Screenshot 2022-05-24 161738.png] >> >> web config file (web.yml): >> [image: Screenshot 2022-05-24 161825.png] >> >> >> syntax wise looks fine: >> [image: Screenshot 2022-05-24 162119.png] >> [image: Screenshot 2022-05-24 162158.png] >> >> >> >> >> >> -- >> 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/51ceb9ba-58e0-4149-b199-e49f21661b1cn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/prometheus-users/51ceb9ba-58e0-4149-b199-e49f21661b1cn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > Julius Volz > PromLabs - promlabs.com > -- 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/f0c94c5e-10c6-40db-8449-ae475b94c5a2n%40googlegroups.com.

