Thank you, I solved it, There was an issue with IPv6, I've added this line and it worked preferred_ip_protocol: "ip4"
Thanks Evelyn. On Friday, 5 March 2021 at 12:12:23 UTC+1 Mohamed Boukhlif wrote: > Hi Evelyn, > > Here are the logs : > ts=2021-03-05T11:00:25.241003327Z caller=main.go:304 module=http_2xx > target=https://mywebsite.com level=info msg="Beginning probe" probe=http > timeout_seconds=9.5 > ts=2021-03-05T11:00:25.241228295Z caller=http.go:342 module=http_2xx > target=https://mywebsite.com level=info msg="Resolving target address" > ip_protocol=ip6 > ts=2021-03-05T11:00:25.242954198Z caller=http.go:342 module=http_2xx > target=https://mywebsite.com level=info msg="Resolved target address" > ip=2001:XXXX::10 > ts=2021-03-05T11:00:25.243051798Z caller=client.go:252 module=http_2xx > target=https://mywebsite.com level=info msg="Making HTTP request" > url=https://[2001:XXXX::10] host=mywebsite.com > ts=2021-03-05T11:00:25.243354351Z caller=main.go:119 module=http_2xx > target=https://mywebsite.com level=error msg="Error for HTTP request" > err="Get \"https://[2001:XXXX::10]\": dial tcp [2001:XXXX::10]:443: > connect: cannot assign requested address" > ts=2021-03-05T11:00:25.24340739Z caller=main.go:119 module=http_2xx target= > https://mywebsite.com level=info msg="Response timings for roundtrip" > roundtrip=0 start=2021-03-05T11:00:25.243191401Z > dnsDone=2021-03-05T11:00:25.243191401Z > connectDone=2021-03-05T11:00:25.243301653Z gotConn=0001-01-01T00:00:00Z > responseStart=0001-01-01T00:00:00Z end=0001-01-01T00:00:00Z > ts=2021-03-05T11:00:25.24348001Z caller=main.go:304 module=http_2xx target= > https://mywebsite.com level=error msg="Probe failed" > duration_seconds=0.002416975 > > > Thank you, > On Friday, 5 March 2021 at 11:48:27 UTC+1 Evelyn Pereira Souza wrote: > >> On 05.03.21 10:27, Mohamed Boukhlif wrote: >> > Hi everyone, >> > >> > I'm getting probe_success 0 but my site is up, any help please. >> > Here is my config : >> (...) >> > >> > *prometheus.yml* >> > - job_name: 'blackbox' >> > metrics_path: /probe >> > params: >> > module: [http_2xx] >> > static_configs: >> > - targets: >> > - https://mywebsite.com >> > relabel_configs: >> > - source_labels: [__address__] >> > target_label: __param_target >> > - source_labels: [__param_target] >> > target_label: instance >> > - target_label: __address__ >> > replacement: blackbox:9115 >> >> >> Hi Mohamed >> >> please add &debug=true to the probe URL, for example >> >> http://localhost:9115/probe?module=http_2xx&target=https://mywebsite.com/&debug=true >> >> and post the result here. >> >> kind regards >> Evelyn >> > -- 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/f7fa5243-c900-4342-bb58-bb5ce588f890n%40googlegroups.com.

