> Out of three ip address (cmd ping works fine) two ip address
probe_status==0 and still fails now this time timeout reading error from
socket err="read ip4 0.0.0.0 i/o timeout".
Test it using curl:
curl 'a.a.a.a:9115/probe?module=XXX&target=Y.Y.Y.Y'
where a.a.a.a is docker container address. Alternatively if you can docker
exec into the container, and there is curl inside the container, then you
can do
curl '127.0.0.1:9115/probe?module=XXX&target=Y.Y.Y.Y'
Here's what I get when I probe an address that is not reachable (1.2.3.4):
$ curl '127.0.0.1:9115/probe?module=icmp&target=1.2.3.4'
# 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 5.2838e-05
# HELP probe_duration_seconds Returns how long the probe took to complete
in seconds
# TYPE probe_duration_seconds gauge
probe_duration_seconds 3.000263382
# HELP probe_icmp_duration_seconds Duration of icmp request by phase
# TYPE probe_icmp_duration_seconds gauge
probe_icmp_duration_seconds{phase="resolve"} 5.2838e-05
probe_icmp_duration_seconds{phase="rtt"} 0
probe_icmp_duration_seconds{phase="setup"} 0.000278196
# 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 gauge
probe_ip_addr_hash 3.268949123e+09
# 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
This is with the following blackbox.yml config:
modules:
icmp:
prober: icmp
timeout: 3s
> Also my second issue is my ssl certificate (openssl) is nearly more than
6 months to expire but its showing as expired and expiring in 30 days.
Go to the PromQL browser in Prometheus web interface, and enter the
expression
probe_ssl_earliest_cert_expiry - time()
What does it show? If you get a negative number then it sounds to me like
one of the certificates in the chain has expired, but unless you tell us
the domain name (and the server is reachable over the Internet), we can't
check.
--
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/31754147-1ee2-4d0f-a473-58c434f5e083o%40googlegroups.com.