aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/host_vars
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2024-08-26 17:49:22 +0200
committerGravatar Joe Banks <[email protected]>2024-08-26 17:33:31 +0100
commitefb9fa9194ff5f70fe027b945787cbc34293db05 (patch)
treee7534ba9898b5b524199b526068a6a126f967e85 /ansible/host_vars
parentStop installing libsasl2-modules-ldap (diff)
Install prometheus-postfix-exporter
As a data-obsessed administrator I want to have more data such that I can widen my sense of power. This also installs rsyslog, because prometheus-postfix-exporter doesn't work with journald's binary log format.
Diffstat (limited to 'ansible/host_vars')
-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 6dc92e2..68709f0 100644
--- a/ansible/host_vars/lovelace/prometheus.yml
+++ b/ansible/host_vars/lovelace/prometheus.yml
@@ -55,6 +55,13 @@ prometheus_configuration: |
- {{ hostvars[host]['ansible_wg0']['ipv4']['address'] }}:9187
{%- endfor %}
+ - job_name: postfix
+ static_configs:
+ - targets:
+ {%- for host in groups['mail'] %}
+ - {{ hostvars[host]['ansible_wg0']['ipv4']['address'] }}:9154
+ {%- endfor %}
+
- job_name: blackbox-ssh
metrics_path: /probe
params: