dashboards: update and fix grafana dashboards
[barometer.git] / docker / barometer-grafana / dashboards / mcelog_dashboard.json
1 {
2   "dashboard": {
3     "__requires": [
4       {
5         "type": "grafana",
6         "id": "grafana",
7         "name": "Grafana",
8         "version": "4.6.3"
9       },
10       {
11         "type": "panel",
12         "id": "graph",
13         "name": "Graph",
14         "version": ""
15       },
16       {
17         "type": "datasource",
18         "id": "influxdb",
19         "name": "InfluxDB",
20         "version": "1.0.0"
21       }
22     ],
23     "annotations": {
24       "list": [
25         {
26           "builtIn": 1,
27           "datasource": "-- Grafana --",
28           "enable": true,
29           "hide": true,
30           "iconColor": "rgba(0, 211, 255, 1)",
31           "name": "Annotations & Alerts",
32           "type": "dashboard"
33         }
34       ]
35     },
36     "editable": true,
37     "gnetId": null,
38     "graphTooltip": 0,
39     "hideControls": false,
40     "id": null,
41     "links": [],
42     "refresh": "10s",
43     "rows": [
44       {
45         "collapse": false,
46         "height": "250px",
47         "panels": [
48           {
49             "aliasColors": {},
50             "bars": false,
51             "dashLength": 10,
52             "dashes": false,
53             "datasource": "collectd",
54             "fill": 1,
55             "id": 1,
56             "interval": "1s",
57             "legend": {
58               "alignAsTable": true,
59               "avg": true,
60               "current": true,
61               "max": true,
62               "min": true,
63               "rightSide": false,
64               "show": true,
65               "total": false,
66               "values": true
67             },
68             "lines": true,
69             "linewidth": 1,
70             "links": [],
71             "nullPointMode": "null",
72             "percentage": false,
73             "pointradius": 5,
74             "points": false,
75             "renderer": "flot",
76             "seriesOverrides": [],
77             "spaceLength": 10,
78             "span": 6,
79             "stack": false,
80             "steppedLine": false,
81             "targets": [
82               {
83                 "alias": "$tag_instance",
84                 "dsType": "influxdb",
85                 "groupBy": [
86                   {
87                     "params": [
88                       "$__interval"
89                     ],
90                     "type": "time"
91                   },
92                   {
93                     "params": [
94                       "instance"
95                     ],
96                     "type": "tag"
97                   },
98                   {
99                     "params": [
100                       "null"
101                     ],
102                     "type": "fill"
103                   }
104                 ],
105                 "measurement": "mcelog_value",
106                 "orderByTime": "ASC",
107                 "policy": "default",
108                 "refId": "A",
109                 "resultFormat": "time_series",
110                 "select": [
111                   [
112                     {
113                       "params": [
114                         "value"
115                       ],
116                       "type": "field"
117                     },
118                     {
119                       "params": [],
120                       "type": "last"
121                     }
122                   ]
123                 ],
124                 "tags": [
125                   {
126                     "key": "host",
127                     "operator": "=~",
128                     "value": "/^$host$/"
129                   },
130                   {
131                     "condition": "AND",
132                     "key": "type_instance",
133                     "operator": "=",
134                     "value": "corrected_memory_errors"
135                   }
136                 ]
137               }
138             ],
139             "thresholds": [],
140             "timeFrom": null,
141             "timeShift": null,
142             "title": "Corrected Memory Errors",
143             "tooltip": {
144               "shared": true,
145               "sort": 0,
146               "value_type": "individual"
147             },
148             "type": "graph",
149             "xaxis": {
150               "buckets": null,
151               "mode": "time",
152               "name": null,
153               "show": true,
154               "values": []
155             },
156             "yaxes": [
157               {
158                 "format": "short",
159                 "label": null,
160                 "logBase": 1,
161                 "max": null,
162                 "min": null,
163                 "show": true
164               },
165               {
166                 "format": "short",
167                 "label": null,
168                 "logBase": 1,
169                 "max": null,
170                 "min": null,
171                 "show": true
172               }
173             ]
174           },
175           {
176             "aliasColors": {},
177             "bars": false,
178             "dashLength": 10,
179             "dashes": false,
180             "datasource": "collectd",
181             "fill": 1,
182             "id": 2,
183             "interval": "1s",
184             "legend": {
185               "alignAsTable": true,
186               "avg": true,
187               "current": true,
188               "max": true,
189               "min": true,
190               "rightSide": false,
191               "show": true,
192               "total": false,
193               "values": true
194             },
195             "lines": true,
196             "linewidth": 1,
197             "links": [],
198             "nullPointMode": "null",
199             "percentage": false,
200             "pointradius": 5,
201             "points": false,
202             "renderer": "flot",
203             "seriesOverrides": [],
204             "spaceLength": 10,
205             "span": 6,
206             "stack": false,
207             "steppedLine": false,
208             "targets": [
209               {
210                 "alias": "$tag_instance",
211                 "dsType": "influxdb",
212                 "groupBy": [
213                   {
214                     "params": [
215                       "$__interval"
216                     ],
217                     "type": "time"
218                   },
219                   {
220                     "params": [
221                       "instance"
222                     ],
223                     "type": "tag"
224                   },
225                   {
226                     "params": [
227                       "null"
228                     ],
229                     "type": "fill"
230                   }
231                 ],
232                 "measurement": "mcelog_value",
233                 "orderByTime": "ASC",
234                 "policy": "default",
235                 "refId": "A",
236                 "resultFormat": "time_series",
237                 "select": [
238                   [
239                     {
240                       "params": [
241                         "value"
242                       ],
243                       "type": "field"
244                     },
245                     {
246                       "params": [],
247                       "type": "last"
248                     }
249                   ]
250                 ],
251                 "tags": [
252                   {
253                     "key": "host",
254                     "operator": "=~",
255                     "value": "/^$host$/"
256                   },
257                   {
258                     "condition": "AND",
259                     "key": "type_instance",
260                     "operator": "=",
261                     "value": "uncorrected_memory_errors"
262                   }
263                 ]
264               }
265             ],
266             "thresholds": [],
267             "timeFrom": null,
268             "timeShift": null,
269             "title": "Uncorrected Memory Errors",
270             "tooltip": {
271               "shared": true,
272               "sort": 0,
273               "value_type": "individual"
274             },
275             "type": "graph",
276             "xaxis": {
277               "buckets": null,
278               "mode": "time",
279               "name": null,
280               "show": true,
281               "values": []
282             },
283             "yaxes": [
284               {
285                 "format": "short",
286                 "label": null,
287                 "logBase": 1,
288                 "max": null,
289                 "min": null,
290                 "show": true
291               },
292               {
293                 "format": "short",
294                 "label": null,
295                 "logBase": 1,
296                 "max": null,
297                 "min": null,
298                 "show": true
299               }
300             ]
301           },
302           {
303             "aliasColors": {},
304             "bars": false,
305             "dashLength": 10,
306             "dashes": false,
307             "datasource": "collectd",
308             "fill": 1,
309             "id": 3,
310             "interval": "1s",
311             "legend": {
312               "alignAsTable": true,
313               "avg": true,
314               "current": true,
315               "max": true,
316               "min": true,
317               "rightSide": false,
318               "show": true,
319               "total": false,
320               "values": true
321             },
322             "lines": true,
323             "linewidth": 1,
324             "links": [],
325             "nullPointMode": "null",
326             "percentage": false,
327             "pointradius": 5,
328             "points": false,
329             "renderer": "flot",
330             "seriesOverrides": [],
331             "spaceLength": 10,
332             "span": 6,
333             "stack": false,
334             "steppedLine": false,
335             "targets": [
336               {
337                 "alias": "$tag_instance",
338                 "dsType": "influxdb",
339                 "groupBy": [
340                   {
341                     "params": [
342                       "$__interval"
343                     ],
344                     "type": "time"
345                   },
346                   {
347                     "params": [
348                       "instance"
349                     ],
350                     "type": "tag"
351                   },
352                   {
353                     "params": [
354                       "null"
355                     ],
356                     "type": "fill"
357                   }
358                 ],
359                 "measurement": "mcelog_value",
360                 "orderByTime": "ASC",
361                 "policy": "default",
362                 "refId": "A",
363                 "resultFormat": "time_series",
364                 "select": [
365                   [
366                     {
367                       "params": [
368                         "value"
369                       ],
370                       "type": "field"
371                     },
372                     {
373                       "params": [],
374                       "type": "last"
375                     }
376                   ]
377                 ],
378                 "tags": [
379                   {
380                     "key": "host",
381                     "operator": "=~",
382                     "value": "/^$host$/"
383                   },
384                   {
385                     "condition": "AND",
386                     "key": "type_instance",
387                     "operator": "=",
388                     "value": "corrected_memory_errors_in_24h"
389                   }
390                 ]
391               }
392             ],
393             "thresholds": [],
394             "timeFrom": null,
395             "timeShift": null,
396             "title": "Corrected Memory Errors in 24H",
397             "tooltip": {
398               "shared": true,
399               "sort": 0,
400               "value_type": "individual"
401             },
402             "type": "graph",
403             "xaxis": {
404               "buckets": null,
405               "mode": "time",
406               "name": null,
407               "show": true,
408               "values": []
409             },
410             "yaxes": [
411               {
412                 "format": "short",
413                 "label": null,
414                 "logBase": 1,
415                 "max": null,
416                 "min": null,
417                 "show": true
418               },
419               {
420                 "format": "short",
421                 "label": null,
422                 "logBase": 1,
423                 "max": null,
424                 "min": null,
425                 "show": true
426               }
427             ]
428           },
429           {
430             "aliasColors": {},
431             "bars": false,
432             "dashLength": 10,
433             "dashes": false,
434             "datasource": "collectd",
435             "fill": 1,
436             "id": 4,
437             "interval": "1s",
438             "legend": {
439               "alignAsTable": true,
440               "avg": true,
441               "current": true,
442               "max": true,
443               "min": true,
444               "rightSide": false,
445               "show": true,
446               "total": false,
447               "values": true
448             },
449             "lines": true,
450             "linewidth": 1,
451             "links": [],
452             "nullPointMode": "null",
453             "percentage": false,
454             "pointradius": 5,
455             "points": false,
456             "renderer": "flot",
457             "seriesOverrides": [],
458             "spaceLength": 10,
459             "span": 6,
460             "stack": false,
461             "steppedLine": false,
462             "targets": [
463               {
464                 "alias": "$tag_instance",
465                 "dsType": "influxdb",
466                 "groupBy": [
467                   {
468                     "params": [
469                       "$__interval"
470                     ],
471                     "type": "time"
472                   },
473                   {
474                     "params": [
475                       "instance"
476                     ],
477                     "type": "tag"
478                   },
479                   {
480                     "params": [
481                       "null"
482                     ],
483                     "type": "fill"
484                   }
485                 ],
486                 "measurement": "mcelog_value",
487                 "orderByTime": "ASC",
488                 "policy": "default",
489                 "refId": "A",
490                 "resultFormat": "time_series",
491                 "select": [
492                   [
493                     {
494                       "params": [
495                         "value"
496                       ],
497                       "type": "field"
498                     },
499                     {
500                       "params": [],
501                       "type": "last"
502                     }
503                   ]
504                 ],
505                 "tags": [
506                   {
507                     "key": "host",
508                     "operator": "=~",
509                     "value": "/^$host$/"
510                   },
511                   {
512                     "condition": "AND",
513                     "key": "type_instance",
514                     "operator": "=",
515                     "value": "uncorrected_memory_errors_in_24h"
516                   }
517                 ]
518               }
519             ],
520             "thresholds": [],
521             "timeFrom": null,
522             "timeShift": null,
523             "title": "Uncorrected Memory Errors in 24H",
524             "tooltip": {
525               "shared": true,
526               "sort": 0,
527               "value_type": "individual"
528             },
529             "type": "graph",
530             "xaxis": {
531               "buckets": null,
532               "mode": "time",
533               "name": null,
534               "show": true,
535               "values": []
536             },
537             "yaxes": [
538               {
539                 "format": "short",
540                 "label": null,
541                 "logBase": 1,
542                 "max": null,
543                 "min": null,
544                 "show": true
545               },
546               {
547                 "format": "short",
548                 "label": null,
549                 "logBase": 1,
550                 "max": null,
551                 "min": null,
552                 "show": true
553               }
554             ]
555           }
556         ],
557         "repeat": null,
558         "repeatIteration": null,
559         "repeatRowId": null,
560         "showTitle": false,
561         "title": "Dashboard Row",
562         "titleSize": "h6"
563       }
564     ],
565     "schemaVersion": 14,
566     "style": "dark",
567     "tags": [
568       "barometer"
569     ],
570     "templating": {
571       "list": [
572         {
573           "current": {
574             "text": "collectd",
575             "value": "collectd"
576           },
577           "hide": 0,
578           "label": null,
579           "name": "datasource",
580           "options": [],
581           "query": "influxdb",
582           "refresh": 1,
583           "regex": "",
584           "type": "datasource"
585         },
586         {
587           "allValue": null,
588           "current": {},
589           "datasource": "collectd",
590           "hide": 0,
591           "includeAll": false,
592           "label": null,
593           "multi": false,
594           "name": "host",
595           "options": [],
596           "query": "SHOW TAG VALUES FROM mcelog_value WITH KEY=host",
597           "refresh": 1,
598           "regex": "",
599           "sort": 0,
600           "tagValuesQuery": "",
601           "tags": [],
602           "tagsQuery": "",
603           "type": "query",
604           "useTags": false
605         }
606       ]
607     },
608     "time": {
609       "from": "now-5m",
610       "to": "now"
611     },
612     "timepicker": {
613       "refresh_intervals": [
614         "5s",
615         "10s",
616         "30s",
617         "1m",
618         "5m",
619         "15m",
620         "30m",
621         "1h",
622         "2h",
623         "1d"
624       ],
625       "time_options": [
626         "5m",
627         "15m",
628         "1h",
629         "6h",
630         "12h",
631         "24h",
632         "2d",
633         "7d",
634         "30d"
635       ]
636     },
637     "timezone": "",
638     "title": "mcelog",
639     "version": 2
640   },
641   "overwrite": false
642 }