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',
|
status: 'firing',
|
||||||
annotations: {
|
annotations: {
|
||||||
summary: 'Instance instance1 has been down for more than 5 minutes',
|
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: {
|
labels: {
|
||||||
alertname: 'InstanceDown',
|
alertname: 'InstanceDown',
|
||||||
instance: 'instance1',
|
instance: 'instance1',
|
||||||
|
severity: 'critical',
|
||||||
|
service: 'service1',
|
||||||
|
environment: 'production',
|
||||||
},
|
},
|
||||||
startsAt: subDays(new Date(), 1).toISOString(),
|
startsAt: subDays(new Date(), 1).toISOString(),
|
||||||
endsAt: addMinutes(new Date(), 5).toISOString(),
|
endsAt: addMinutes(new Date(), 5).toISOString(),
|
||||||
|
@ -525,10 +530,15 @@ const defaultPayload: TestTemplateAlert[] = [
|
||||||
status: 'resolved',
|
status: 'resolved',
|
||||||
annotations: {
|
annotations: {
|
||||||
summary: 'CPU usage above 90%',
|
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: {
|
labels: {
|
||||||
alertname: 'CpuUsage',
|
alertname: 'CpuUsage',
|
||||||
instance: 'instance1',
|
instance: 'instance1',
|
||||||
|
severity: 'warning',
|
||||||
|
service: 'service1',
|
||||||
|
environment: 'dev',
|
||||||
},
|
},
|
||||||
startsAt: subHours(new Date(), 4).toISOString(),
|
startsAt: subHours(new Date(), 4).toISOString(),
|
||||||
endsAt: new Date().toISOString(),
|
endsAt: new Date().toISOString(),
|
||||||
|
|
Loading…
Reference in New Issue