shack/prometheus: alertmanager-bot on a different port now
This commit is contained in:
parent
eaf4ed0b24
commit
156339f63a
krebs/2configs/shack/prometheus
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue