blackbox show different results than curl

61 views
Skip to first unread message

nesa...@gmail.com

unread,
Apr 10, 2021, 12:52:18 PM4/10/21
to Prometheus Users
Hi,
I have deployed a blackbox with the default configuration file to K8S, the problem is using http_2xx module with the target address of https://google.com I get this error in the debug mode:

ts=2021-04-10T16:17:34.956404139Z caller=main.go:304 module=http_2xx target=https://google.com level=info msg="Beginning probe" probe=http timeout_seconds=14.5 ts=2021-04-10T16:17:34.956566847Z caller=http.go:342 module=http_2xx target=https://google.com level=info msg="Resolving target address" ip_protocol=ip4 ts=2021-04-10T16:17:34.974894624Z caller=http.go:342 module=http_2xx target=https://google.com level=info msg="Resolved target address" ip=172.217.168.46 ts=2021-04-10T16:17:34.974998484Z caller=client.go:252 module=http_2xx target=https://google.com level=info msg="Making HTTP request" url=https://172.217.168.46 host=google.com ts=2021-04-10T16:17:45.095333388Z caller=main.go:119 module=http_2xx target=https://google.com level=error msg="Error for HTTP request" err="Get \"https://172.217.168.46\": net/http: TLS handshake timeout" ts=2021-04-10T16:17:45.095391758Z caller=main.go:119 module=http_2xx target=https://google.com level=info msg="Response timings for roundtrip" roundtrip=0 start=2021-04-10T16:17:34.975094791Z dnsDone=2021-04-10T16:17:34.975094791Z connectDone=2021-04-10T16:17:35.094979121Z gotConn=0001-01-01T00:00:00Z responseStart=0001-01-01T00:00:00Z end=0001-01-01T00:00:00Z ts=2021-04-10T16:17:45.09544815Z caller=main.go:304 module=http_2xx target=https://google.com level=error msg="Probe failed" duration_seconds=10.138987767

But using curl I can send get request to google.com:

Screenshot from 2021-04-10 21-20-22.png

Reply all
Reply to author
Forward
0 new messages