No suitable address found

Prometheus logo

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
You cost me an astonishing amount of time.

— Kai Hendry πŸ‡ΈπŸ‡¬ (@kaihendry) January 2, 2019
Found any of my content interesting or useful?