how to monitor https web server with blackboxexporter

411 views
Skip to first unread message

Jerry Han

unread,
Mar 22, 2021, 2:10:32 AM3/22/21
to Prometheus Users
I have working on monitor custom made https web server with blackbox exporter 
any example or solutions? 
every time I fail with probe_success 
below file is my blackbox and promehtues yaml file 

blackbox.JPG
prometheus.JPG

Julius Volz

unread,
Mar 22, 2021, 2:19:59 AM3/22/21
to Jerry Han, Prometheus Users
Try going to your Blackbox exporter manually and probing your HTTPS server through it, but with "debug=true" appended to the probe request. That should show you where and why exactly your probe request is failing.

E.g.:

http://<blackbox-exporter-host>:9115/probe?target=<server-url>&module=http_2xx&debug=true

--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/78b15066-4d00-4aae-9859-7a930c0f0647n%40googlegroups.com.


--
Julius Volz
PromLabs - promlabs.com

Jerry Han

unread,
Mar 22, 2021, 5:29:16 AM3/22/21
to Prometheus Users
sorry for CC Julius
This is my debugging logs please help me...
2021년 3월 22일 월요일 오후 3시 19분 59초 UTC+9에 juliu...@promlabs.com님이 작성:
debuglog.JPG

Julius Volz

unread,
Mar 22, 2021, 7:15:05 AM3/22/21
to Jerry Han, Prometheus Users
So EOF ("end of file") in the context of a failed HTTP request probably means that the remote end closed the connection for some reason. This can also happen if the web server sends the response, but closes the connection before the client reads the response. I would check your custom web server code for that.

Marcelo Magallón

unread,
Mar 22, 2021, 1:07:13 PM3/22/21
to Prometheus Users
I see there's an artifact in the logs when reporting the error, "Get " plus some non-ascii character.

Is the domain name for the target by any chance an international domain name (using characters outside the ascii range)?

There's an old open PR in blackbox_exporter related to that that I have been meaning to take a look at but I haven't gotten around to it yet.

Marcelo



--
Marcelo Magallón

Jerry Han

unread,
Mar 22, 2021, 9:18:36 PM3/22/21
to Prometheus Users
to  Julius 
well in that case i made a custom metric in web server this could be a reason for failing the probe? 

2021년 3월 23일 화요일 오전 2시 7분 13초 UTC+9에 marcelo....@grafana.com님이 작성:
Reply all
Reply to author
Forward
0 new messages