No suitable address found
If you are hitting DNS resolution issues, perhaps some program is defaulting to IPv6, instead of IPv4.
level=warn msg="Error resolving address" err="address example.com: no suitable address found"
Is a typical log message produced by Prometheus blackbox exporter.
Solution is edit the awful YAML configuration file with preferred_ip_protocol: ip4
modules:
http_2xx:
prober: http
http:
preferred_ip_protocol: ip4
http_post_2xx:
prober: http
http:
method: POST
preferred_ip_protocol: ip4
tcp_connect:
prober: tcp
tcp:
preferred_ip_protocol: ip4
icmp:
prober: icmp
icmp:
preferred_ip_protocol: ip4
Notice the insane icmp/icmp indentation.
Why the insane defaults @PrometheusIO ? Hardly robust @RobustPerceiver https://t.co/dWAIWwx64L
— Kai Hendry πΈπ¬ (@kaihendry) January 2, 2019
You cost me an astonishing amount of time.