-
Notifications
You must be signed in to change notification settings - Fork 0
/
ops_template.json
378 lines (378 loc) · 11 KB
/
ops_template.json
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
{
"name": "Operational_Reliability Review",
"description": null,
"permissions": "PUBLIC_READ_WRITE",
"pages": [
{
"name": "Incidents",
"description": null,
"widgets": [
{
"title": "Incident Count",
"layout": {
"column": 1,
"row": 1,
"width": 2,
"height": 2
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.billboard"
},
"rawConfiguration": {
"dataFormatters": [
{
"name": "Incident Count",
"precision": null,
"type": "decimal"
}
],
"nrqlQueries": [
{
"accountId": 123,
"query": "SELECT count(*) as 'Incident Count' FROM NrAiIncident where event = 'open' and priority = 'critical' since 1 week ago compare with 1 week ago"
}
],
"thresholds": []
}
},
{
"title": "Incident Minutes (accumulated)",
"layout": {
"column": 3,
"row": 1,
"width": 2,
"height": 2
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.billboard"
},
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 123,
"query": "SELECT sum(durationSeconds)/60 as 'Incident Minutes (accumulated)' FROM NrAiIncident where event = 'close' and priority = 'critical' since 1 week ago COMPARE WITH 1 week ago"
}
],
"thresholds": []
}
},
{
"title": "Incident Stats by Policy",
"layout": {
"column": 5,
"row": 1,
"width": 5,
"height": 4
},
"linkedEntityGuids": [
"MTQ4MjAzNnxWSVp8REFTSEJPQVJEfDM3OTY3NjA"
],
"visualization": {
"id": "viz.table"
},
"rawConfiguration": {
"dataFormatters": [],
"facet": {
"showOtherSeries": true
},
"nrqlQueries": [
{
"accountId": 123,
"query": "FROM NrAiIncident SELECT filter(count(*), where event = 'open') as 'Open Count', filter(sum(durationSeconds)/60, where event = 'close') as 'Total Open Time (min)', average(durationSeconds)/60 as 'Avg MTTR (min)', (filter(count(*), where event = 'close' and durationSeconds <= 5*60)/filter(count(*), where event = 'open'))*100 as '% < 5min' where priority = 'critical' since 1 week ago facet policyName LIMIT 100 "
}
]
}
},
{
"title": "Incidents by Condition",
"layout": {
"column": 10,
"row": 1,
"width": 3,
"height": 4
},
"linkedEntityGuids": [
"MTQ4MjAzNnxWSVp8REFTSEJPQVJEfDM3OTY3NjA"
],
"visualization": {
"id": "viz.bar"
},
"rawConfiguration": {
"dataFormatters": [],
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountId": 123,
"query": "FROM NrAiIncident SELECT count(*) as '# Incidents' where event = 'open' facet conditionName since 1 week ago LIMIT 250 "
}
]
}
},
{
"title": "Incident MTTR (minutes)",
"layout": {
"column": 1,
"row": 3,
"width": 2,
"height": 2
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.billboard"
},
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 123,
"query": "FROM NrAiIncident SELECT average(durationSeconds)/60 as 'Incident MTTR (minutes)' where event = 'close' and priority = 'critical' since 1 week ago COMPARE WITH 1 week ago"
}
],
"thresholds": []
}
},
{
"title": "% incidents closed under 5min",
"layout": {
"column": 3,
"row": 3,
"width": 2,
"height": 2
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.billboard"
},
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 123,
"query": "FROM NrAiIncident SELECT percentage(count(*), where durationSeconds <= 5*60) as '% under 5min' where event = 'close' and priority = 'critical' since 1 week ago COMPARE WITH 1 week ago"
}
],
"thresholds": []
}
},
{
"title": "Incident Trend",
"layout": {
"column": 1,
"row": 5,
"width": 6,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 123,
"query": "FROM NrAiIncident SELECT count(*) as 'Incident Count' where event = 'open' since 1 week ago COMPARE WITH 1 week ago TIMESERIES AUTO "
}
],
"yAxisLeft": {
"zero": true
}
}
},
{
"title": "Incident Duration Trend",
"layout": {
"column": 7,
"row": 5,
"width": 6,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 123,
"query": "FROM NrAiIncident SELECT sum(durationSeconds)/60 as 'Incident Minutes' where event = 'close' since 1 week ago COMPARE WITH 1 week ago TIMESERIES AUTO"
}
],
"yAxisLeft": {
"zero": true
}
}
},
{
"title": "Incident Details (Closed)",
"layout": {
"column": 1,
"row": 8,
"width": 12,
"height": 6
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.table"
},
"rawConfiguration": {
"dataFormatters": [],
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountId": 123,
"query": "FROM NrAiIncident SELECT policyName, conditionName, durationSeconds/60 as 'Duration (min)', title, incidentLink where priority = 'critical' and event = 'close' LIMIT 500 since 1 week ago "
}
]
}
}
]
},
{
"name": "Anomalies",
"description": null,
"widgets": [
{
"title": "Anomaly Count",
"layout": {
"column": 1,
"row": 1,
"width": 3,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.billboard"
},
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 123,
"query": "SELECT count(*) as 'Anomaly Count' FROM NrAiAnomaly where event = 'close' since 1 week ago COMPARE WITH 1 week ago"
}
],
"thresholds": []
}
},
{
"title": "Anomaly Trend",
"layout": {
"column": 4,
"row": 1,
"width": 9,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 123,
"query": "SELECT count(*) as 'Anomaly Count' FROM NrAiAnomaly where event = 'close' since 1 week ago COMPARE WITH 1 week ago TIMESERIES AUTO"
}
],
"yAxisLeft": {
"zero": true
}
}
},
{
"title": "Anomalies by Type",
"layout": {
"column": 1,
"row": 4,
"width": 7,
"height": 3
},
"linkedEntityGuids": [
"MTQ4MjAzNnxWSVp8REFTSEJPQVJEfDQzMDE5OTc"
],
"visualization": {
"id": "viz.table"
},
"rawConfiguration": {
"dataFormatters": [],
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountId": 123,
"query": "FROM NrAiAnomaly SELECT filter(count(*), where event = 'close') as 'Close Count' facet title since 1 week ago LIMIT 100"
}
]
}
},
{
"title": "Anomalies by Entity",
"layout": {
"column": 8,
"row": 4,
"width": 5,
"height": 3
},
"linkedEntityGuids": [
"MTQ4MjAzNnxWSVp8REFTSEJPQVJEfDQzMDE5OTc"
],
"visualization": {
"id": "viz.table"
},
"rawConfiguration": {
"dataFormatters": [],
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountId": 123,
"query": "FROM NrAiAnomaly SELECT filter(count(*), where event = 'close') as 'Close Count' facet entity.name since 1 week ago LIMIT 100"
}
]
}
},
{
"title": "Anomaly Detail",
"layout": {
"column": 1,
"row": 7,
"width": 12,
"height": 6
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.bar"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountId": 123,
"query": "FROM NrAiAnomaly SELECT latest(openTime) as 'OpenedAt', ((latest(closeTime) OR aggregationendtime()) - latest(openTime))/1000/60 as 'Duration (min)' where event = 'close' SINCE 1 week ago facet entity.domain, entity.name, title, link LIMIT 500"
}
]
}
}
]
}
]
}