diff options
author | 2024-08-31 13:12:32 +0100 | |
---|---|---|
committer | 2024-08-31 13:12:32 +0100 | |
commit | 3da879100bf337f21bd9e85070227598374dc378 (patch) | |
tree | fa718baa24a102accf74f6ef8e918a96e8f942a0 | |
parent | Run 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.yml | 7 |
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: |