dashboards: update and fix grafana dashboards
[barometer.git] / docker / barometer-grafana / dashboards / ipmi_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": "10s",
57             "legend": {
58               "alignAsTable": true,
59               "avg": true,
60               "current": true,
61               "max": true,
62               "min": true,
63               "rightSide": true,
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": 12,
79             "stack": false,
80             "steppedLine": false,
81             "targets": [
82               {
83                 "alias": "$tag_type_instance",
84                 "dsType": "influxdb",
85                 "groupBy": [
86                   {
87                     "params": [
88                       "$__interval"
89                     ],
90                     "type": "time"
91                   },
92                   {
93                     "params": [
94                       "type_instance"
95                     ],
96                     "type": "tag"
97                   },
98                   {
99                     "params": [
100                       "null"
101                     ],
102                     "type": "fill"
103                   }
104                 ],
105                 "measurement": "ipmi_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",
133                     "operator": "=",
134                     "value": "fanspeed"
135                   }
136                 ]
137               }
138             ],
139             "thresholds": [],
140             "timeFrom": null,
141             "timeShift": null,
142             "title": "Fanspeed (RPM)",
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": "0",
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": "10s",
184             "legend": {
185               "alignAsTable": true,
186               "avg": true,
187               "current": true,
188               "max": true,
189               "min": true,
190               "rightSide": true,
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": 12,
206             "stack": false,
207             "steppedLine": false,
208             "targets": [
209               {
210                 "alias": "$tag_type_instance",
211                 "dsType": "influxdb",
212                 "groupBy": [
213                   {
214                     "params": [
215                       "$__interval"
216                     ],
217                     "type": "time"
218                   },
219                   {
220                     "params": [
221                       "type_instance"
222                     ],
223                     "type": "tag"
224                   },
225                   {
226                     "params": [
227                       "null"
228                     ],
229                     "type": "fill"
230                   }
231                 ],
232                 "measurement": "ipmi_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",
260                     "operator": "=",
261                     "value": "flow"
262                   }
263                 ]
264               }
265             ],
266             "thresholds": [],
267             "timeFrom": null,
268             "timeShift": null,
269             "title": "Airflow (CFM)",
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": 4,
310             "interval": "10s",
311             "legend": {
312               "alignAsTable": true,
313               "avg": true,
314               "current": true,
315               "max": true,
316               "min": true,
317               "rightSide": true,
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": 12,
333             "stack": false,
334             "steppedLine": false,
335             "targets": [
336               {
337                 "alias": "$tag_type_instance",
338                 "dsType": "influxdb",
339                 "groupBy": [
340                   {
341                     "params": [
342                       "$__interval"
343                     ],
344                     "type": "time"
345                   },
346                   {
347                     "params": [
348                       "type_instance"
349                     ],
350                     "type": "tag"
351                   },
352                   {
353                     "params": [
354                       "null"
355                     ],
356                     "type": "fill"
357                   }
358                 ],
359                 "measurement": "ipmi_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",
387                     "operator": "=",
388                     "value": "power"
389                   }
390                 ]
391               }
392             ],
393             "thresholds": [],
394             "timeFrom": null,
395             "timeShift": null,
396             "title": "power in watts",
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": 5,
437             "interval": "10s",
438             "legend": {
439               "alignAsTable": true,
440               "avg": true,
441               "current": true,
442               "max": true,
443               "min": true,
444               "rightSide": true,
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": 12,
460             "stack": false,
461             "steppedLine": false,
462             "targets": [
463               {
464                 "alias": "$tag_type_instance",
465                 "dsType": "influxdb",
466                 "groupBy": [
467                   {
468                     "params": [
469                       "$__interval"
470                     ],
471                     "type": "time"
472                   },
473                   {
474                     "params": [
475                       "type_instance"
476                     ],
477                     "type": "tag"
478                   },
479                   {
480                     "params": [
481                       "null"
482                     ],
483                     "type": "fill"
484                   }
485                 ],
486                 "measurement": "ipmi_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",
514                     "operator": "=",
515                     "value": "temperature"
516                   }
517                 ]
518               }
519             ],
520             "thresholds": [],
521             "timeFrom": null,
522             "timeShift": null,
523             "title": "temperature in degrees C",
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             "aliasColors": {},
558             "bars": false,
559             "dashLength": 10,
560             "dashes": false,
561             "datasource": "collectd",
562             "fill": 1,
563             "id": 6,
564             "interval": "10s",
565             "legend": {
566               "alignAsTable": true,
567               "avg": true,
568               "current": true,
569               "max": true,
570               "min": true,
571               "rightSide": true,
572               "show": true,
573               "total": false,
574               "values": true
575             },
576             "lines": true,
577             "linewidth": 1,
578             "links": [],
579             "nullPointMode": "null",
580             "percentage": false,
581             "pointradius": 5,
582             "points": false,
583             "renderer": "flot",
584             "seriesOverrides": [],
585             "spaceLength": 10,
586             "span": 12,
587             "stack": false,
588             "steppedLine": false,
589             "targets": [
590               {
591                 "alias": "$tag_type_instance",
592                 "dsType": "influxdb",
593                 "groupBy": [
594                   {
595                     "params": [
596                       "$__interval"
597                     ],
598                     "type": "time"
599                   },
600                   {
601                     "params": [
602                       "type_instance"
603                     ],
604                     "type": "tag"
605                   },
606                   {
607                     "params": [
608                       "null"
609                     ],
610                     "type": "fill"
611                   }
612                 ],
613                 "measurement": "ipmi_value",
614                 "orderByTime": "ASC",
615                 "policy": "default",
616                 "refId": "A",
617                 "resultFormat": "time_series",
618                 "select": [
619                   [
620                     {
621                       "params": [
622                         "value"
623                       ],
624                       "type": "field"
625                     },
626                     {
627                       "params": [],
628                       "type": "last"
629                     }
630                   ]
631                 ],
632                 "tags": [
633                   {
634                     "key": "host",
635                     "operator": "=~",
636                     "value": "/^$host$/"
637                   },
638                   {
639                     "condition": "AND",
640                     "key": "type",
641                     "operator": "=",
642                     "value": "voltage"
643                   }
644                 ]
645               }
646             ],
647             "thresholds": [],
648             "timeFrom": null,
649             "timeShift": null,
650             "title": "voltage",
651             "tooltip": {
652               "shared": true,
653               "sort": 0,
654               "value_type": "individual"
655             },
656             "type": "graph",
657             "xaxis": {
658               "buckets": null,
659               "mode": "time",
660               "name": null,
661               "show": true,
662               "values": []
663             },
664             "yaxes": [
665               {
666                 "format": "short",
667                 "label": null,
668                 "logBase": 1,
669                 "max": null,
670                 "min": null,
671                 "show": true
672               },
673               {
674                 "format": "short",
675                 "label": null,
676                 "logBase": 1,
677                 "max": null,
678                 "min": null,
679                 "show": true
680               }
681             ]
682           }
683         ],
684         "repeat": null,
685         "repeatIteration": null,
686         "repeatRowId": null,
687         "showTitle": false,
688         "title": "Dashboard Row",
689         "titleSize": "h6"
690       }
691     ],
692     "schemaVersion": 14,
693     "style": "dark",
694     "tags": [
695       "Barometer"
696     ],
697     "templating": {
698       "list": [
699         {
700           "current": {
701             "text": "collectd",
702             "value": "collectd"
703           },
704           "hide": 0,
705           "label": null,
706           "name": "datasource",
707           "options": [],
708           "query": "influxdb",
709           "refresh": 1,
710           "regex": "",
711           "type": "datasource"
712         },
713         {
714           "allValue": null,
715           "current": {},
716           "datasource": "collectd",
717           "hide": 0,
718           "includeAll": false,
719           "label": null,
720           "multi": false,
721           "name": "host",
722           "options": [],
723           "query": "SHOW TAG VALUES FROM ipmi_value WITH KEY=host",
724           "refresh": 1,
725           "regex": "",
726           "sort": 0,
727           "tagValuesQuery": "",
728           "tags": [],
729           "tagsQuery": "",
730           "type": "query",
731           "useTags": false
732         }
733       ]
734     },
735     "time": {
736       "from": "now-30m",
737       "to": "now"
738     },
739     "timepicker": {
740       "refresh_intervals": [
741         "5s",
742         "10s",
743         "30s",
744         "1m",
745         "5m",
746         "15m",
747         "30m",
748         "1h",
749         "2h",
750         "1d"
751       ],
752       "time_options": [
753         "5m",
754         "15m",
755         "1h",
756         "6h",
757         "12h",
758         "24h",
759         "2d",
760         "7d",
761         "30d"
762       ]
763     },
764     "timezone": "",
765     "title": "IPMI",
766     "version": 4
767   },
768   "overwrite": false
769 }