I am guessing - because you didn't say - that you are talking about
blackbox_exporter. I suggest in future you make your request clearer:
describe what software you're using, show your configurations, show what
test you're doing, and what result you get.
Anyway, you can find all the metrics available from blackbox_exporter by
probing it yourself using curl. You will see the metrics for the
round-trip time (the total, and also broken into the different sub-parts of
the request), and these are the metrics you can query using promQL.
Like this:
root@prometheus:~# *curl
'localhost:9115/probe?module=http_2xx_example&target=http:%2F%2Fwww.google.com'*
# 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 0.001660343
# HELP probe_duration_seconds Returns how long the probe took to complete
in seconds
# TYPE probe_duration_seconds gauge
*probe_duration_seconds 0.075831917*
# 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 -1
# 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.011122309*
*probe_http_duration_seconds{phase="processing"} 0.052277206*
*probe_http_duration_seconds{phase="resolve"} 0.001660343*
*probe_http_duration_seconds{phase="tls"} 0*
*probe_http_duration_seconds{phase="transfer"} 0.009934561*
# 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 200
# HELP probe_http_uncompressed_body_length Length of uncompressed response
body
# TYPE probe_http_uncompressed_body_length gauge
probe_http_uncompressed_body_length 0
# HELP probe_http_version Returns the version of HTTP of the probe response
# TYPE probe_http_version gauge
probe_http_version 1.1
# 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 1
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/99ae633d-e635-4a6c-bab0-ce94995c1cab%40googlegroups.com.