summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-09-14 00:26:21 +0200
committermakefu <github@syntax-fehler.de>2020-09-14 00:26:21 +0200
commit156339f63adcddcd8b1eb6d17bd4f76f72086920 (patch)
treeb2c8cb7aab30e82b4451c778093b646fae977f38 /krebs/2configs/shack
parenteaf4ed0b24dcc89191d018fa4ebd9331e22ea324 (diff)
shack/prometheus: alertmanager-bot on a different port now
Diffstat (limited to 'krebs/2configs/shack')
-rw-r--r--krebs/2configs/shack/prometheus/alert-rules.nix5
-rw-r--r--krebs/2configs/shack/prometheus/server.nix5
2 files changed, 4 insertions, 6 deletions
diff --git a/krebs/2configs/shack/prometheus/alert-rules.nix b/krebs/2configs/shack/prometheus/alert-rules.nix
index 096c551b..afef5b8a 100644
--- a/krebs/2configs/shack/prometheus/alert-rules.nix
+++ b/krebs/2configs/shack/prometheus/alert-rules.nix
@@ -71,11 +71,6 @@ in mapAttrsToList (name: opts: {
summary = "{{$labels.alias}}: Using more than 30% of its swap.";
description = "{{$labels.alias}} is using 30% of its swap space for at least 30 minutes.";
};
- node_visible_confluence_space = {
- condition = "node_visible_confluence_space != 0";
- summary = "crowd prometheus cann see the {{$labels.space_name}} confluence space!";
- description = "crowd user `prometheus` can see the `{{$labels.space_name}}` confluence space.";
- };
node_hwmon_temp = {
condition = "node_hwmon_temp_celsius > node_hwmon_temp_crit_celsius*0.9 OR node_hwmon_temp_celsius > node_hwmon_temp_max_celsius*0.95";
time = "5m";
diff --git a/krebs/2configs/shack/prometheus/server.nix b/krebs/2configs/shack/prometheus/server.nix
index 8f37f447..a10a43af 100644
--- a/krebs/2configs/shack/prometheus/server.nix
+++ b/krebs/2configs/shack/prometheus/server.nix
@@ -119,6 +119,9 @@
alertmanager = {
enable = true;
listenAddress = "127.0.0.1";
+ webExternalUrl = "http://alert.prometheus.shack";
+ logLevel = "debug";
+
configuration = {
"global" = {
"smtp_smarthost" = "smtp.example.com:587";
@@ -137,7 +140,7 @@
"email_configs" = [ ];
"webhook_configs" = [
{
- "url" = "http://localhost:8080";
+ "url" = "http://localhost:16320";
"send_resolved" = true;
}
];