shack/prometheus: alertmanager-bot on a different port now

This commit is contained in:
makefu 2020-09-14 00:26:21 +02:00
parent eaf4ed0b24
commit 156339f63a
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 4 additions and 6 deletions

View File

@ -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";

View File

@ -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;
}
];