From 3da879100bf337f21bd9e85070227598374dc378 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sat, 31 Aug 2024 13:12:32 +0100 Subject: Add DMARC exporter to Prometheus scrape targets --- ansible/host_vars/lovelace/prometheus.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ansible') diff --git a/ansible/host_vars/lovelace/prometheus.yml b/ansible/host_vars/lovelace/prometheus.yml index 6e7cb25..674a127 100644 --- a/ansible/host_vars/lovelace/prometheus.yml +++ b/ansible/host_vars/lovelace/prometheus.yml @@ -62,6 +62,13 @@ prometheus_configuration: | - {{ hostvars[host]['ansible_wg0']['ipv4']['address'] }}:9154 {%- endfor %} + - job_name: dmarc + static_configs: + - targets: + {%- for host in groups['mail'] %} + - {{ hostvars[host]['ansible_wg0']['ipv4']['address'] }}:9797 + {%- endfor %} + - job_name: blackbox-ssh metrics_path: /probe params: -- cgit v1.2.3