Why blackbox_exporter tcp_timeout changed to 0.5?

20 views
Skip to first unread message

leiwa...@gmail.com

unread,
Aug 31, 2020, 5:14:06 AM8/31/20
to Prometheus Users
Using blackbox exporter to check the network health from specific host to many remote mysql server. Suddenly the max network delay value changed to 0.5s

微信截图_20200831171233.png


Open x.x.x.x:9115 on browser and click any specific log:
Logs for the probe: ts=2020-08-31T09:05:04.80989131Z caller=main.go:304 module=tcp_connect target=192.168.116.17:3306 level=info msg="Beginning probe" probe=tcp timeout_seconds=0.5

But when i just run

ts=2020-08-31T09:08:03.409757011Z caller=main.go:304 module=tcp_connect target=192.168.116.17:3306 level=info msg="Beginning probe" probe=tcp timeout_seconds=119.5

This really confuses me a lot.
Any insight on this?

Brian Candler

unread,
Aug 31, 2020, 6:23:52 AM8/31/20
to Prometheus Users
What's your scrape interval?  The probe timeout is automatically clipped to just under the scrape interval.

leiwa...@gmail.com

unread,
Aug 31, 2020, 6:32:39 AM8/31/20
to Prometheus Users
Thanks,  that‘s the problem.  It is because i  changed to scrape interval from 15s to 1s 
Reply all
Reply to author
Forward
0 new messages