diff options
Diffstat (limited to 'inventory')
-rw-r--r-- | inventory/host_vars/ele-mon.yml | 13 | ||||
-rw-r--r-- | inventory/host_vars/ele-sms.yml | 2 |
2 files changed, 11 insertions, 4 deletions
diff --git a/inventory/host_vars/ele-mon.yml b/inventory/host_vars/ele-mon.yml index f9956901..3fdb4d17 100644 --- a/inventory/host_vars/ele-mon.yml +++ b/inventory/host_vars/ele-mon.yml @@ -96,18 +96,25 @@ prometheus_alertmanager_smtp: prometheus_alertmanager_route: receiver: empty routes: - - receiver: equinox + - receiver: equinox-mail matchers: - 'alertname != PrometheusAlertmanagerE2eDeadManSwitch' group_by: - instance + continue: true + - receiver: equinox-sms + matchers: + - 'alertname != PrometheusAlertmanagerE2eDeadManSwitch' + - severity="critical" prometheus_alertmanager_receivers: - name: empty - - name: equinox + - name: equinox-mail email_configs: - to: equinox@spreadspace.org - + - name: equinox-sms + webhook_configs: + - url: "http://{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets['ele-sms']) | ipaddr('address') }}:9876/alert" grafana_secret_key: "{{ vault_grafana_secret_key }}" diff --git a/inventory/host_vars/ele-sms.yml b/inventory/host_vars/ele-sms.yml index f65d95a2..abbd800e 100644 --- a/inventory/host_vars/ele-sms.yml +++ b/inventory/host_vars/ele-sms.yml @@ -70,7 +70,7 @@ openwrt_mixin: outgoing_dir: /var/spool/sms/outgoing receivers: - - name: 'equinox' + - name: 'equinox-sms' provider: 'smstools' to: - '+436644800222' |