From f1c9e10d9adce7f4e1d60608c6ec6efb7b0e384b Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 6 Dec 2022 20:43:22 +0000 Subject: [PATCH] Use IPv4 on blackbox The docker networks they're running on are v4 only at the moment, so the DNS resolution passes by the connection fails. --- ansible/roles/forrest/files/prometheus/blackbox.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/forrest/files/prometheus/blackbox.yml b/ansible/roles/forrest/files/prometheus/blackbox.yml index 6e40e5a..df0ac9b 100644 --- a/ansible/roles/forrest/files/prometheus/blackbox.yml +++ b/ansible/roles/forrest/files/prometheus/blackbox.yml @@ -2,6 +2,8 @@ modules: http: prober: http timeout: 10s + http: + preferred_ip_protocol: ip4 # Docker network is v4 only https_redir: prober: http @@ -14,3 +16,4 @@ modules: fail_if_header_not_matches: - header: Location regexp: ^https + preferred_ip_protocol: ip4 # Docker network is v4 only