1
0
Fork 0

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
Dustin 2024-09-22 12:01:02 -05:00
parent 1c6286a977
commit 8f354a4460
1 changed files with 4 additions and 0 deletions

View File

@ -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