mirror of https://github.com/grafana/grafana.git
Alerting: Update default payload for template preview (#111159)
update default payload for template preview
This commit is contained in:
parent
0a79b3bdc5
commit
1f1f2ae18f
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue