From 3b1af791c9efdd34075ce11fdeb60e6970b58524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Sat, 3 Dec 2022 08:29:31 +0100 Subject: [PATCH] feat(alertmanager): send text email as well --- systems/makanek/monitoring/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/systems/makanek/monitoring/default.nix b/systems/makanek/monitoring/default.nix index 916ed8a..2600af3 100644 --- a/systems/makanek/monitoring/default.nix +++ b/systems/makanek/monitoring/default.nix @@ -202,6 +202,13 @@ in { auth_username = cock.user; auth_identity = cock.user; auth_password = cock.password; + text = '' + {{range .Alerts -}} + {{ .Status }}: {{ index .Annotations "summary" }} + Generated by: {{.generatorURL}} + See at: {{.externalURL}} + {{end -}} + ''; } ]; }