summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-07-15 18:12:19 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-07-15 18:12:19 +0200
commit3ceede47d34798513c50a656cdd1c80ea0ffc893 (patch)
tree851c88fd9acfb2b96164207f50dae3027d4c47c3
parentele-sms: add sachet (diff)
ele-mon: enable sms for alerts
-rw-r--r--inventory/host_vars/ele-mon.yml13
-rw-r--r--inventory/host_vars/ele-sms.yml2
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'