1
0
mirror of https://github.com/kmein/niveum synced 2026-03-21 04:11:07 +01:00

feat(alertmanager): send telegram and email notifications

This commit is contained in:
2022-12-03 08:26:50 +01:00
parent f04ca9d1de
commit f3e14ffc9e

View File

@@ -176,7 +176,8 @@ in {
receivers = [ receivers = [
{ {
name = "all"; name = "all";
telegram_configs = [{ telegram_configs = [
{
bot_token = lib.strings.fileContents <system-secrets/telegram/prometheus.token>; bot_token = lib.strings.fileContents <system-secrets/telegram/prometheus.token>;
chat_id = 18980945; chat_id = 18980945;
parse_mode = ""; parse_mode = "";
@@ -187,7 +188,8 @@ in {
{{ .Status }}: {{ index .Annotations "summary" }} {{ .Status }}: {{ index .Annotations "summary" }}
{{end -}} {{end -}}
''; '';
}]; }
];
email_configs = let email_configs = let
inherit (import <niveum/lib>) kieran; inherit (import <niveum/lib>) kieran;
inherit (import <niveum/lib/email.nix> {inherit lib;}) cock; inherit (import <niveum/lib/email.nix> {inherit lib;}) cock;