From 7dffb5195a5e82aa4839a26cc906cf96e2174765 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 17 Aug 2024 10:59:05 -0500 Subject: [PATCH] v-m: alertmanager: Group disk usage alerts Some machines have the same volume mounted multiple times (e.g. container hosts, BURP). Alerts will fire for all of these simultaneously when the filesystem usage passes the threshold. To avoid getting spammed with a bunch of messages about the same filesystem, we'll group alerts from the same machine. --- victoria-metrics/alertmanager.config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/victoria-metrics/alertmanager.config.yml b/victoria-metrics/alertmanager.config.yml index 1f64807..a68e32e 100644 --- a/victoria-metrics/alertmanager.config.yml +++ b/victoria-metrics/alertmanager.config.yml @@ -17,6 +17,11 @@ route: - '...' receiver: ntfy routes: + - receiver: ntfy + matchers: + - alertname=DiskUsage + group_by: + - instance - receiver: ntfy matchers: - alertgroup=Frigate