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 = { notification = {
topic = "splitleaf"; topic = "splitleaf";
priority = "default"; 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"; expr = "up == 0";
for = "2m"; for = "2m";
labels.severity = "critical"; labels.severity = "critical";
annotations.summary = "Instance {{ $labels.instance }} down"; annotations.summary = "{{ $labels.instance }} is DOWN";
}; };
}; };
} }