prometheus, alertmanager: Improve alerts

This commit is contained in:
SebastianStork 2026-03-03 16:47:32 +01:00
parent e728fe43bb
commit 36f24bdd30
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
2 changed files with 15 additions and 1 deletions

View file

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

View file

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