-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
general_incidents.jsonnet.sample
42 lines (41 loc) · 1.19 KB
/
general_incidents.jsonnet.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
local incidents = [
{ scenario: "You've received an alert that your " + database + ' server is killed...' }
for database in [
'Redis',
'MySQL',
'MongoDB',
]
] + [
// Generates DC is down incidents
{ scenario: "You've received alerts that your DC " + dc + ' has a power outage...' }
for dc in [
'eu-west-1',
'eu-north-1',
'us-east-2',
]
] + [
// Static incidents
{
scenario: 'You received alerts that your MySQL master does not accept writes...',
},
{
scenario: "You've received alerts that your load balancer is down...",
},
{
scenario: "You've received an alert that your Blob storage system is unable to store objects...",
},
{
scenario: "You've received an alert that your Redis server is killed...",
},
{
scenario: "You've received alerts of high HTTP 5xx error rate...",
},
{
scenario: "You've received alerts that there is high query latency in the RPC servers...",
},
{
scenario: "You've received an alert that an LDAP client cannot query LDAP server",
},
];
# Generates incident title and id
[incidents[i] { id: '%d' % [i + 1], title: 'Incident %d' % [i + 1] } for i in std.range(0, std.length(incidents) - 1)]