1
0

Compare commits

..

No commits in common. "3ea21db30bc991c3c3ea638ef585f843186ee08d" and "cdcf21427ad8a6b1cfc54b2b040daf514526b848" have entirely different histories.

2 changed files with 0 additions and 55 deletions

View File

@ -63,40 +63,6 @@ in {
services.prometheus.exporters.node.enable = true;
services.prometheus.xmpp-alerts = {
enable = true;
settings = {
jid = "feuer@fem-net.de";
password_command = "cat /var/src/secrets/xmpp-alert/password";
listen_address = "::1";
listen_port = 9199;
to_jid = "clerie@fem-net.de";
format = "short";
};
};
services.prometheus.alertmanager = {
enable = true;
listenAddress = "[::1]";
port = 9093;
configuration = {
route = {
receiver = "xmpp-receiver";
group_by = [ "instance" ];
};
receivers = [
{
name = "xmpp-receiver";
webhook_configs = [
{
url = "http://[::1]:9199/alert";
}
];
}
];
};
};
services.prometheus = {
enable = true;
listenAddress = "[::1]";
@ -152,16 +118,6 @@ in {
];
}
];
alertmanagers = [
{
static_configs = [ {
targets = [
"[::1]:9093"
];
} ];
}
];
rules = [ (readFile ./rules.yml) ];
};
services.grafana = {

View File

@ -1,11 +0,0 @@
groups:
- name: alert.rules
rules:
- alert: InstanceDown
expr: up{job="node-exporter"} == 0
for: 1m
labels:
severity: critical
annotations:
summary: "Endpoint {{ $labels.instance }} down"
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 1 minutes."