Skip to content

Commit 7529444

Browse files
authored
Merge pull request #122 from DUNE-DAQ/mroda/ers
More efficient ERS dashboard
2 parents e57ee62 + a8ca258 commit 7529444

File tree

1 file changed

+27
-58
lines changed

1 file changed

+27
-58
lines changed

dashboards/ERS.json

Lines changed: 27 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
"editable": true,
1919
"fiscalYearStartMonth": 0,
2020
"graphTooltip": 0,
21-
"id": 241,
21+
"id": 0,
2222
"links": [],
23-
"liveNow": false,
2423
"panels": [
2524
{
2625
"datasource": {
@@ -37,6 +36,9 @@
3736
"cellOptions": {
3837
"type": "color-text"
3938
},
39+
"footer": {
40+
"reducers": []
41+
},
4042
"inspect": false
4143
},
4244
"mappings": [
@@ -71,7 +73,7 @@
7173
"steps": [
7274
{
7375
"color": "light-yellow",
74-
"value": null
76+
"value": 0
7577
}
7678
]
7779
}
@@ -166,14 +168,6 @@
166168
"id": 3,
167169
"options": {
168170
"cellHeight": "sm",
169-
"footer": {
170-
"countRows": false,
171-
"fields": "",
172-
"reducer": [
173-
"sum"
174-
],
175-
"show": false
176-
},
177171
"showHeader": true,
178172
"sortBy": [
179173
{
@@ -182,7 +176,7 @@
182176
}
183177
]
184178
},
185-
"pluginVersion": "10.2.2",
179+
"pluginVersion": "12.3.1",
186180
"targets": [
187181
{
188182
"datasource": {
@@ -193,7 +187,7 @@
193187
"group": [],
194188
"metricColumn": "none",
195189
"rawQuery": true,
196-
"rawSql": "SELECT severity,time/1000000 as time,application_name,message,issue_name,host_name\nFROM ${table}\nWHERE session='${session}' AND time/1000000 >= ${__from} AND time/1000000 <= ${__to} AND severity in ([[severity]]) AND issue_name in ([[issue_full_name]]) AND application_name in ([[application_in]]) AND host_name in ([[host]]) AND message ~ '[[message_regex]]' \nORDER BY -time\n",
190+
"rawSql": "SELECT severity,time/1000000 as time,application_name,message,issue_name,host_name\nFROM ${table}\nWHERE session='${session}' AND time >= ${__from} * 1000000 AND time <= ${__to} * 1000000 AND severity in ([[severity]]) AND issue_name in ([[issue_full_name]]) AND application_name in ([[application_in]]) AND host_name in ([[host]]) AND message ~ '[[message_regex]]' \nORDER BY -time\n",
197191
"refId": "A",
198192
"select": [
199193
[
@@ -236,8 +230,9 @@
236230
"type": "table"
237231
}
238232
],
233+
"preload": false,
239234
"refresh": "5s",
240-
"schemaVersion": 38,
235+
"schemaVersion": 42,
241236
"tags": [
242237
"v5.6.0",
243238
"Subsystem"
@@ -246,59 +241,52 @@
246241
"list": [
247242
{
248243
"current": {
249-
"selected": false,
250244
"text": "KluPostgreSQL",
251245
"value": "c7e9e333-25c9-49e7-b209-b9492f70d419"
252246
},
253247
"hide": 2,
254248
"includeAll": false,
255249
"label": "PostgresSQL",
256-
"multi": false,
257250
"name": "postgresql",
258251
"options": [],
259252
"query": "postgres",
260253
"refresh": 1,
261254
"regex": "",
262-
"skipUrlSync": false,
263255
"type": "datasource"
264256
},
265257
{
258+
"current": {
259+
"text": "\"ERSstream\"",
260+
"value": "\"ERSstream\""
261+
},
266262
"hide": 2,
267263
"name": "table",
268264
"query": "\"ERSstream\"",
269-
"skipUrlSync": false,
265+
"skipUrlSync": true,
270266
"type": "constant"
271267
},
272268
{
273269
"current": {
274-
"isNone": true,
275-
"selected": false,
276-
"text": "None",
277-
"value": ""
270+
"text": "np02-tpc-k8s",
271+
"value": "np02-tpc-k8s"
278272
},
279273
"datasource": {
280274
"uid": "${postgresql}"
281275
},
282276
"definition": "SELECT session\nFROM ${table}\nWHERE time/1000000 >= ${__from} AND time/1000000 <= ${__to} \n",
283-
"hide": 0,
284277
"includeAll": false,
285278
"label": "Session",
286-
"multi": false,
287279
"name": "session",
288280
"options": [],
289281
"query": "SELECT session\nFROM ${table}\nWHERE time/1000000 >= ${__from} AND time/1000000 <= ${__to} \n",
290282
"refresh": 2,
291283
"regex": "",
292-
"skipUrlSync": false,
293284
"sort": 1,
294285
"type": "query"
295286
},
296287
{
297288
"current": {
298-
"selected": true,
299-
"text": [
300-
"All"
301-
],
289+
"text": "All",
302290
"value": [
303291
"$__all"
304292
]
@@ -307,7 +295,6 @@
307295
"uid": "${postgresql}"
308296
},
309297
"definition": "SELECT severity\nFROM ${table}\nWHERE session='${session}' AND time/1000000 >= ${__from} AND time/1000000 <= ${__to}\n",
310-
"hide": 0,
311298
"includeAll": true,
312299
"label": "Severity",
313300
"multi": true,
@@ -316,16 +303,11 @@
316303
"query": "SELECT severity\nFROM ${table}\nWHERE session='${session}' AND time/1000000 >= ${__from} AND time/1000000 <= ${__to}\n",
317304
"refresh": 2,
318305
"regex": "",
319-
"skipUrlSync": false,
320-
"sort": 0,
321306
"type": "query"
322307
},
323308
{
324309
"current": {
325-
"selected": true,
326-
"text": [
327-
"All"
328-
],
310+
"text": "All",
329311
"value": [
330312
"$__all"
331313
]
@@ -334,7 +316,6 @@
334316
"uid": "${postgresql}"
335317
},
336318
"definition": "SELECT application_name\nFROM ${table}\nWHERE session='${session}' AND time/1000000 >= ${__from} AND time/1000000 <= ${__to}\n\n",
337-
"hide": 0,
338319
"includeAll": true,
339320
"label": "Application included",
340321
"multi": true,
@@ -343,16 +324,17 @@
343324
"query": "SELECT application_name\nFROM ${table}\nWHERE session='${session}' AND time/1000000 >= ${__from} AND time/1000000 <= ${__to}\n\n",
344325
"refresh": 2,
345326
"regex": "",
346-
"skipUrlSync": false,
347327
"sort": 1,
348328
"type": "query"
349329
},
350330
{
351331
"current": {
352-
"isNone": true,
353-
"selected": false,
354-
"text": "None",
355-
"value": ""
332+
"text": [
333+
"df-s04-d0"
334+
],
335+
"value": [
336+
"df-s04-d0"
337+
]
356338
},
357339
"datasource": {
358340
"uid": "${postgresql}"
@@ -367,17 +349,14 @@
367349
"query": "SELECT application_name\nFROM ${table}\nWHERE session='${session}' AND time/1000000 >= ${__from} AND time/1000000 <= ${__to}",
368350
"refresh": 2,
369351
"regex": "",
370-
"skipUrlSync": false,
371352
"sort": 1,
372353
"type": "query"
373354
},
374355
{
375356
"current": {
376-
"selected": true,
377357
"text": ".*",
378358
"value": ".*"
379359
},
380-
"hide": 0,
381360
"label": "Message Regex",
382361
"name": "message_regex",
383362
"options": [
@@ -388,15 +367,11 @@
388367
}
389368
],
390369
"query": ".*",
391-
"skipUrlSync": false,
392370
"type": "textbox"
393371
},
394372
{
395373
"current": {
396-
"selected": true,
397-
"text": [
398-
"All"
399-
],
374+
"text": "All",
400375
"value": [
401376
"$__all"
402377
]
@@ -405,7 +380,6 @@
405380
"uid": "${postgresql}"
406381
},
407382
"definition": "SELECT issue_name\nFROM ${table}\nWHERE session='${session}' AND time/1000000 >= ${__from} AND time/1000000 <= ${__to}\n",
408-
"hide": 0,
409383
"includeAll": true,
410384
"label": "Issue",
411385
"multi": true,
@@ -414,21 +388,18 @@
414388
"query": "SELECT issue_name\nFROM ${table}\nWHERE session='${session}' AND time/1000000 >= ${__from} AND time/1000000 <= ${__to}\n",
415389
"refresh": 2,
416390
"regex": "",
417-
"skipUrlSync": false,
418391
"sort": 1,
419392
"type": "query"
420393
},
421394
{
422395
"current": {
423-
"selected": false,
424396
"text": "All",
425397
"value": "$__all"
426398
},
427399
"datasource": {
428400
"uid": "${postgresql}"
429401
},
430402
"definition": "SELECT host_name\nFROM ${table}\nWHERE session='${session}' AND time/1000000 >= ${__from} AND time/1000000 <= ${__to}\n",
431-
"hide": 0,
432403
"includeAll": true,
433404
"label": "Host",
434405
"multi": true,
@@ -437,20 +408,18 @@
437408
"query": "SELECT host_name\nFROM ${table}\nWHERE session='${session}' AND time/1000000 >= ${__from} AND time/1000000 <= ${__to}\n",
438409
"refresh": 2,
439410
"regex": "",
440-
"skipUrlSync": false,
441411
"sort": 1,
442412
"type": "query"
443413
}
444414
]
445415
},
446416
"time": {
447-
"from": "now-15m",
417+
"from": "now-1h",
448418
"to": "now"
449419
},
450420
"timepicker": {},
451421
"timezone": "",
452422
"title": "ERS",
453423
"uid": "v5_6_0-ers",
454-
"version": 6,
455-
"weekStart": ""
424+
"version": 2
456425
}

0 commit comments

Comments
 (0)