k puyak.r: rip alertmanager-telegram

This commit is contained in:
makefu 2022-12-12 20:55:37 +01:00
parent 20a0952d87
commit 26f67c6c80
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 1 additions and 17 deletions

View File

@ -110,6 +110,7 @@
<stockholm/krebs/2configs/shack/prometheus/server.nix>
<stockholm/krebs/2configs/shack/prometheus/blackbox.nix>
#<stockholm/krebs/2configs/shack/prometheus/unifi.nix>
# TODO: alertmanager 0.24+ supports telegram
<stockholm/krebs/2configs/shack/prometheus/alertmanager-telegram.nix>
];

View File

@ -1,17 +0,0 @@
{ pkgs, ...}:
{
systemd.services.alertmanager-bot-telegram = {
wantedBy = [ "multi-user.target" ];
after = [ "ip-up.target" ];
serviceConfig = {
EnvironmentFile = toString <secrets/shack/telegram_bot.env>;
DynamicUser = true;
StateDirectory = "alertbot";
ExecStart = ''${pkgs.alertmanager-bot-telegram}/bin/alertmanager-bot \
--alertmanager.url=http://alert.prometheus.shack --log.level=info \
--store=bolt --bolt.path=/var/lib/alertbot/bot.db \
--listen.addr="0.0.0.0:16320" \
--template.paths=${./templates}/shack.tmpl'';
};
};
}