Alerting: Update default payload for template preview (#111159)

update default payload for template preview
This commit is contained in:
Sonia Aguilar 2025-09-16 12:51:44 +02:00 committed by GitHub
parent 0a79b3bdc5
commit 1f1f2ae18f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -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(),