prometheus, alertmanager: Add description to alert

This commit is contained in:
SebastianStork 2026-03-03 17:23:19 +01:00
parent 2cd07d8581
commit 8855886547
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
2 changed files with 5 additions and 5 deletions

View file

@ -75,10 +75,7 @@ in
notification = { notification = {
topic = "splitleaf"; topic = "splitleaf";
priority = "default"; priority = "default";
templates = { templates.title = ''{{ index .Annotations "summary" }}'';
title = ''{{ index .Annotations "summary" }}'';
description = "";
};
tags = [ tags = [
{ {
condition = ''status == "resolved"''; condition = ''status == "resolved"'';

View file

@ -89,7 +89,10 @@ in
expr = "up == 0"; expr = "up == 0";
for = "2m"; for = "2m";
labels.severity = "critical"; labels.severity = "critical";
annotations.summary = "{{ $labels.instance }} is DOWN"; annotations = {
summary = "{{ $labels.instance }} is DOWN";
description = "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 2 minutes.";
};
}; };
}; };
} }