prometheus, alertmanager: Adjust alert wording depending on firing or resolved status

This commit is contained in:
SebastianStork 2026-03-10 21:22:33 +01:00
parent f2258ac79c
commit ba6f0387b2
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
2 changed files with 8 additions and 5 deletions

View file

@ -83,7 +83,10 @@ in
notification = {
topic = "splitleaf";
priority = "default";
templates.title = ''{{ index .Annotations "summary" }}'';
templates = {
title = ''{{ if eq .Status "firing" }}{{ index .Annotations "summary" }}{{ else }}{{ index .Annotations "summary_resolved" }}{{ end }}'';
description = ".";
};
tags = [
{
condition = ''status == "resolved"'';