mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 18:59:07 +01:00
prometheus, alertmanager: Improve alerts
This commit is contained in:
parent
e728fe43bb
commit
36f24bdd30
2 changed files with 15 additions and 1 deletions
|
|
@ -75,6 +75,20 @@ in
|
|||
notification = {
|
||||
topic = "splitleaf";
|
||||
priority = "default";
|
||||
templates = {
|
||||
title = ''{{ index .Annotations "summary" }}'';
|
||||
description = "";
|
||||
};
|
||||
tags = [
|
||||
{
|
||||
condition = ''status == "resolved"'';
|
||||
tag = "white_check_mark";
|
||||
}
|
||||
{
|
||||
condition = ''status == "firing"'';
|
||||
tag = "rotating_light";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ in
|
|||
expr = "up == 0";
|
||||
for = "2m";
|
||||
labels.severity = "critical";
|
||||
annotations.summary = "Instance {{ $labels.instance }} down";
|
||||
annotations.summary = "{{ $labels.instance }} is DOWN";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue