From 1f1f2ae18fa679cceca0a997e77ec6a2080ebe11 Mon Sep 17 00:00:00 2001 From: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com> Date: Tue, 16 Sep 2025 12:51:44 +0200 Subject: [PATCH] Alerting: Update default payload for template preview (#111159) update default payload for template preview --- .../unified/components/receivers/TemplateForm.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/public/app/features/alerting/unified/components/receivers/TemplateForm.tsx b/public/app/features/alerting/unified/components/receivers/TemplateForm.tsx index 6f0f358f011..aa5c347464a 100644 --- a/public/app/features/alerting/unified/components/receivers/TemplateForm.tsx +++ b/public/app/features/alerting/unified/components/receivers/TemplateForm.tsx @@ -511,10 +511,15 @@ const defaultPayload: TestTemplateAlert[] = [ status: 'firing', annotations: { summary: 'Instance instance1 has been down for more than 5 minutes', + description: + 'The instance instance1 has been unreachable for more than 5 minutes, indicating a potential service outage.', }, labels: { alertname: 'InstanceDown', instance: 'instance1', + severity: 'critical', + service: 'service1', + environment: 'production', }, startsAt: subDays(new Date(), 1).toISOString(), endsAt: addMinutes(new Date(), 5).toISOString(), @@ -525,10 +530,15 @@ const defaultPayload: TestTemplateAlert[] = [ status: 'resolved', annotations: { summary: 'CPU usage above 90%', + description: + 'The CPU usage on instance1 has exceeded 90% for an extended period, which may indicate performance issues or resource constraints.', }, labels: { alertname: 'CpuUsage', instance: 'instance1', + severity: 'warning', + service: 'service1', + environment: 'dev', }, startsAt: subHours(new Date(), 4).toISOString(), endsAt: new Date().toISOString(),