fix(k8s): update Alertmanager notification title template for Microsoft Teams

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-01-13 20:37:13 +08:00
parent d22d094811
commit 2e848585ad

View File

@ -13,6 +13,14 @@ metadata:
name: alertmanager-config
namespace: freeleaps-monitoring-system
spec:
route:
groupBy:
- severity
- namespace
groupInterval: 5m
groupWait: 30s
receiver: 'ms-teams'
repeatInterval: 12h
receivers:
- name: 'ms-teams'
msteamsConfigs:
@ -20,6 +28,6 @@ spec:
webhookUrl:
key: 'webhook-url'
name: 'freeleaps-teams-webhook'
title: '{{ template "msteams.default.title" . }}'
title: '{{ if eq .Status "firing" }}🚨 [FIRING] 🔥{{- else -}}🙌 [RESOLVED] 🍻{{- end -}}'
text: '{{ template "msteams.default.text" . }}'