mirror of
https://github.com/kmein/niveum
synced 2026-03-19 19:41:08 +01:00
feat(alertmanager): send telegram and email notifications
This commit is contained in:
@@ -176,18 +176,20 @@ in {
|
|||||||
receivers = [
|
receivers = [
|
||||||
{
|
{
|
||||||
name = "all";
|
name = "all";
|
||||||
telegram_configs = [{
|
telegram_configs = [
|
||||||
bot_token = lib.strings.fileContents <system-secrets/telegram/prometheus.token>;
|
{
|
||||||
chat_id = 18980945;
|
bot_token = lib.strings.fileContents <system-secrets/telegram/prometheus.token>;
|
||||||
parse_mode = "";
|
chat_id = 18980945;
|
||||||
api_url = "https://api.telegram.org";
|
parse_mode = "";
|
||||||
send_resolved = true;
|
api_url = "https://api.telegram.org";
|
||||||
message = ''
|
send_resolved = true;
|
||||||
{{range .Alerts -}}
|
message = ''
|
||||||
{{ .Status }}: {{ index .Annotations "summary" }}
|
{{range .Alerts -}}
|
||||||
{{end -}}
|
{{ .Status }}: {{ index .Annotations "summary" }}
|
||||||
'';
|
{{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;
|
||||||
|
|||||||
Reference in New Issue
Block a user