
Linux blackbox-one-prometheus-blackbox-exporter-9cdd9d67d-d456w 5.10.102.1-microsoft-standard-WSL2 #1
blackbox_exporter version: output of blackbox_exporter --versionversion 0.24.0
What is the blackbox.yml module config.modules:
http_2xx:
prober: http
http:
enable_http2: true
fail_if_not_ssl: true
follow_redirects: true
method: HEAD
preferred_ip_protocol: ip4
valid_http_versions:
- HTTP/2.0
tls_config:
insecure_skip_verify: true
http_2xx2:
prober: http
http:
enable_http2: true
fail_if_not_ssl: false
follow_redirects: true
method: GET
preferred_ip_protocol: ip4
valid_http_versions:
- HTTP/2.0
tls_config:
insecure_skip_verify: true
just try out by running blackexporter probe function
What logging output did you get from adding &debug=true to the probe URL?Logs for the probe:
ts=2023-06-22T13:29:31.809938012Z caller=main.go:181 module=http_2xx2 myservice.sss.aaa.net level=info msg="Beginning probe" probe=http timeout_seconds=119.5
ts=2023-06-22T13:29:31.810004165Z caller=http.go:328 module=http_2xx2 myservice.sss.aaa.net level=info msg="Resolving target address" myservice.sss.aaa.net ip_protocol=ip4
ts=2023-06-22T13:29:31.858580912Z caller=http.go:328 module=http_2xx2 myservice.sss.aaa.net level=info msg="Resolved target address" myservice.sss.aaa.net ip=XX.XXX.XXX.XXX
ts=2023-06-22T13:29:31.858787491Z caller=client.go:252 module=http_2xx2 myservice.sss.aaa.net level=info msg="Making HTTP request" url=http://XX.XXX.XX.XXX host=myservice.sss.aaa.net.net
ts=2023-06-22T13:29:32.312484166Z caller=client.go:498 module=http_2xx2 myservice.sss.aaa.net level=info msg="Received redirect" location=https://myservice.sss.aaa.net/
ts=2023-06-22T13:29:32.312617354Z caller=client.go:252 module=http_2xx2 myservice.sss.aaa.net level=info msg="Making HTTP request" url=https://myservice.sss.aaa.net/ host=
ts=2023-06-22T13:29:32.312636522Z caller=client.go:252 module=http_2xx2 myservice.sss.aaa.net level=info msg="Address does not match first address, not sending TLS ServerName" first=XX.XXX.XXX.XXX address=myservice.sss.aaa.net.net
ts=2023-06-22T13:29:32.994268596Z caller=handler.go:120 module=http_2xx2 myservice.sss.aaa.net level=error msg="Error for HTTP request" err="Get "https://myservice.sss.aaa.net/\": remote error: tls: certificate required"
ts=2023-06-22T13:29:32.994326223Z caller=handler.go:120 module=http_2xx2 myservice.sss.aaa.net level=info msg="Response timings for roundtrip" roundtrip=0 start=2023-06-22T13:29:31.858945616Z dnsDone=2023-06-22T13:29:31.858945616Z connectDone=2023-06-22T13:29:32.08670928Z gotConn=2023-06-22T13:29:32.08673468Z responseStart=2023-06-22T13:29:32.312278076Z tlsStart=0001-01-01T00:00:00Z tlsDone=0001-01-01T00:00:00Z end=0001-01-01T00:00:00Z
ts=2023-06-22T13:29:32.994357725Z caller=handler.go:120 module=http_2xx2 myservice.sss.aaa.net level=info msg="Response timings for roundtrip" roundtrip=1 start=2023-06-22T13:29:32.312771806Z dnsDone=2023-06-22T13:29:32.313804149Z connectDone=2023-06-22T13:29:32.54102004Z gotConn=2023-06-22T13:29:32.769238002Z responseStart=0001-01-01T00:00:00Z tlsStart=2023-06-22T13:29:32.541058519Z tlsDone=2023-06-22T13:29:32.769132722Z end=0001-01-01T00:00:00Z
ts=2023-06-22T13:29:32.994381499Z caller=main.go:181 module=http_2xx2 myservice.sss.aaa.net level=error msg="Probe failed" duration_seconds=1.18441594
Metrics that would have been returned:
HELP probe_dns_lookup_time_seconds Returns the time taken for probe dns lookup in secondsTYPE probe_dns_lookup_time_seconds gaugeprobe_dns_lookup_time_seconds 0.04864438
HELP probe_duration_seconds Returns how long the probe took to complete in secondsTYPE probe_duration_seconds gaugeprobe_duration_seconds 1.18441594
HELP probe_failed_due_to_regex Indicates if probe failed due to regexTYPE probe_failed_due_to_regex gaugeprobe_failed_due_to_regex 0
HELP probe_http_content_length Length of http content responseTYPE probe_http_content_length gaugeprobe_http_content_length 0
HELP probe_http_duration_seconds Duration of http request by phase, summed over all redirectsTYPE probe_http_duration_seconds gaugeprobe_http_duration_seconds{phase="connect"} 0.455004955
probe_http_duration_seconds{phase="processing"} 0.225543471
probe_http_duration_seconds{phase="resolve"} 0.049676727000000004
probe_http_duration_seconds{phase="tls"} 0.228074226
probe_http_duration_seconds{phase="transfer"} 0
probe_http_redirects 1
HELP probe_http_ssl Indicates if SSL was used for the final redirectTYPE probe_http_ssl gaugeprobe_http_ssl 0
HELP probe_http_status_code Response HTTP status codeTYPE probe_http_status_code gaugeprobe_http_status_code 0
HELP probe_http_uncompressed_body_length Length of uncompressed response bodyTYPE probe_http_uncompressed_body_length gaugeprobe_http_uncompressed_body_length 0
HELP probe_http_version Returns the version of HTTP of the probe responseTYPE probe_http_version gaugeprobe_http_version 0
HELP probe_ip_addr_hash Specifies the hash of IP address. It's useful to detect if the IP address changes.TYPE probe_ip_addr_hash gaugeprobe_ip_addr_hash 3.872600863e+09
HELP probe_ip_protocol Specifies whether probe ip protocol is IP4 or IP6TYPE probe_ip_protocol gaugeprobe_ip_protocol 4
HELP probe_success Displays whether or not the probe was a successTYPE probe_success gaugeprobe_success 0
What did you do that produced an error?What did you expect to see?probe_ssl_earliest_cert_expiry
What did you see instead?probe_ssl_earliest_cert_expiry is not present