I have a server with multiple services and there is an internal (non public) http endpoint which has certificate on port 50051. I have used blackbox exporter to notify us on cert expiration, which works fine with all other ports. But with the port 50051 i see an EOF error and i'm unable to find an answer for it. Can anyone please help. Below is what my blakcbox_exporter config look like :
Logs for the probe:
ts=2019-09-19T04:56:38.553501915Z caller=main.go:118 module=http_2xx target=PUBLICIP:50051 level=info msg="Beginning probe" probe=http timeout_seconds=4.5
ts=2019-09-19T04:56:38.553571141Z caller=utils.go:42 module=http_2xx target=PUBLICIP:50051 level=info msg="Resolving target address" ip_protocol=ip4
ts=2019-09-19T04:56:38.55360649Z caller=utils.go:75 module=http_2xx target=PUBLICIP:50051 level=info msg="Resolved target address" ip=PUBLICIP
ts=2019-09-19T04:56:38.553635643Z caller=http.go:349 module=http_2xx target=PUBLICIP:50051 level=info msg="Making HTTP request" url=
http://PUBLICIP:50051 host=PUBLICIP:50051
ts=2019-09-19T04:56:38.554566404Z caller=http.go:364 module=http_2xx target=PUBLICIP:50051 level=error msg="Error for HTTP request" err="Get
http://PUBLICIP:50051: EOF"
ts=2019-09-19T04:56:38.554596553Z caller=http.go:450 module=http_2xx target=PUBLICIP:50051 level=info msg="Response timings for roundtrip" roundtrip=0 start=2019-09-19T04:56:38.553697373Z dnsDone=2019-09-19T04:56:38.553697373Z connectDone=2019-09-19T04:56:38.554065361Z gotConn=2019-09-19T04:56:38.554072677Z responseStart=0001-01-01T00:00:00Z end=0001-01-01T00:00:00Z
ts=2019-09-19T04:56:38.554624319Z caller=main.go:131 module=http_2xx target=PUBLICIP:50051 level=error msg="Probe failed" duration_seconds=0.001098531
Metrics that would have been returned:
# HELP probe_dns_lookup_time_seconds Returns the time taken for probe dns lookup in seconds
# TYPE probe_dns_lookup_time_seconds gauge
probe_dns_lookup_time_seconds 2.1521e-05
# HELP probe_duration_seconds Returns how long the probe took to complete in seconds
# TYPE probe_duration_seconds gauge
probe_duration_seconds 0.001098531
# HELP probe_failed_due_to_regex Indicates if probe failed due to regex
# TYPE probe_failed_due_to_regex gauge
probe_failed_due_to_regex 0
# HELP probe_http_content_length Length of http content response
# TYPE probe_http_content_length gauge
probe_http_content_length 0
# HELP probe_http_duration_seconds Duration of http request by phase, summed over all redirects
# TYPE probe_http_duration_seconds gauge
probe_http_duration_seconds{phase="connect"} 0.000375244
probe_http_duration_seconds{phase="processing"} 0
probe_http_duration_seconds{phase="resolve"} 2.1521e-05
probe_http_duration_seconds{phase="tls"} 0
probe_http_duration_seconds{phase="transfer"} 0
# HELP probe_http_redirects The number of redirects
# TYPE probe_http_redirects gauge
probe_http_redirects 0
# HELP probe_http_ssl Indicates if SSL was used for the final redirect
# TYPE probe_http_ssl gauge
probe_http_ssl 0
# HELP probe_http_status_code Response HTTP status code
# TYPE probe_http_status_code gauge
probe_http_status_code 0
# HELP probe_http_version Returns the version of HTTP of the probe response
# TYPE probe_http_version gauge
probe_http_version 0
# HELP probe_ip_protocol Specifies whether probe ip protocol is IP4 or IP6
# TYPE probe_ip_protocol gauge
probe_ip_protocol 4
# HELP probe_success Displays whether or not the probe was a success
# TYPE probe_success gauge
probe_success 0
=========================