aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-08-31 13:12:32 +0100
committerGravatar Joe Banks <[email protected]>2024-08-31 13:12:32 +0100
commit3da879100bf337f21bd9e85070227598374dc378 (patch)
treefa718baa24a102accf74f6ef8e918a96e8f942a0
parentRun DMARC inbox setup and dmarc_metrics_exporter role on mail hosts (diff)
Add DMARC exporter to Prometheus scrape targets
-rw-r--r--ansible/host_vars/lovelace/prometheus.yml7
1 files changed, 7 insertions, 0 deletions
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: