v-m/alertmanager: Suppress battery low alerts
The alerts for Z-Wave device batteries in particular are pretty annoying, as they tend to "flap" for some reason. I like having the alerts show up on Alertmanager/Grafana dashboards, but I don't necessarily need notifications about them. Fortunately, we can create a special "none" receiver and route notifications there, which does exactly what we want here.pull/27/head
parent
1c6286a977
commit
8f354a4460
|
@ -11,12 +11,16 @@ receivers:
|
||||||
- name: ntfy
|
- name: ntfy
|
||||||
webhook_configs:
|
webhook_configs:
|
||||||
- url: http://alertmanager-ntfy:8000/hook
|
- url: http://alertmanager-ntfy:8000/hook
|
||||||
|
- name: none
|
||||||
|
|
||||||
route:
|
route:
|
||||||
group_by:
|
group_by:
|
||||||
- '...'
|
- '...'
|
||||||
receiver: ntfy
|
receiver: ntfy
|
||||||
routes:
|
routes:
|
||||||
|
- receiver: none
|
||||||
|
matchers:
|
||||||
|
- alertname=Battery Low
|
||||||
- receiver: ntfy
|
- receiver: ntfy
|
||||||
matchers:
|
matchers:
|
||||||
- alertname=DiskUsage
|
- alertname=DiskUsage
|
||||||
|
|
Loading…
Reference in New Issue