From cf427eb5739ded3f072680c1706f43e71fe82315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Tue, 18 Oct 2022 02:02:57 +0200 Subject: [PATCH] alertmanager: Configure ntfy severities --- .../alertmanager/templates/ntfy-alertmanager.j2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/roles/alertmanager/templates/ntfy-alertmanager.j2 b/roles/alertmanager/templates/ntfy-alertmanager.j2 index 06a61aa..ca6686a 100644 --- a/roles/alertmanager/templates/ntfy-alertmanager.j2 +++ b/roles/alertmanager/templates/ntfy-alertmanager.j2 @@ -3,6 +3,22 @@ log-level debug user {{ alertmanager_secrets['webhook_user'] }} password {{ alertmanager_secrets['webhook_pass'] }} +labels { + order "severity" + + severity "critical" { + priority 4 + } + + severity "warning" { + priority 3 + } + + severity "info" { + priority 1 + } +} + ntfy { topic https://ntfy.xenrox.net/infrastructure user infrastructure -- 2.44.0