From a426dbe66500403e74a15b570f56a2aa0982e140 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Apr 19 2024 17:47:25 +0000 Subject: Set Apache exporter to scrape IP address The software ignores /etc/hosts and tries to send all names to a DNS server. That naturally does not work for localhost. Signed-off-by: Georg Pfuetzenreuter --- diff --git a/pillar/role/common/apache.sls b/pillar/role/common/apache.sls index c5a3c08..6fbcb12 100644 --- a/pillar/role/common/apache.sls +++ b/pillar/role/common/apache.sls @@ -24,6 +24,6 @@ prometheus: name: golang-github-lusitaniae-apache_exporter environ: args: - scrape_uri: http://ipv6-localhost:8181/server-status/?auto + scrape_uri: http://[::1]:8181/server-status/?auto service: name: prometheus-apache_exporter