Merge "docker.userguide: Fix manual grafana and influxdb run commands"
[barometer.git] / docker / barometer-grafana / dashboards / ovs_stats_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": 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_instance $tag_type",
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                       "type"
101                     ],
102                     "type": "tag"
103                   },
104                   {
105                     "params": [
106                       "null"
107                     ],
108                     "type": "fill"
109                   }
110                 ],
111                 "hide": false,
112                 "measurement": "ovs_stats_value",
113                 "orderByTime": "ASC",
114                 "policy": "default",
115                 "refId": "A",
116                 "resultFormat": "time_series",
117                 "select": [
118                   [
119                     {
120                       "params": [
121                         "value"
122                       ],
123                       "type": "field"
124                     },
125                     {
126                       "params": [],
127                       "type": "last"
128                     }
129                   ]
130                 ],
131                 "tags": [
132                   {
133                     "key": "host",
134                     "operator": "=~",
135                     "value": "/^$host$/"
136                   },
137                   {
138                     "condition": "AND",
139                     "key": "type",
140                     "operator": "!=",
141                     "value": "if_collisions"
142                   },
143                   {
144                     "condition": "AND",
145                     "key": "type",
146                     "operator": "!=",
147                     "value": "if_rx_errors"
148                   },
149                   {
150                     "condition": "AND",
151                     "key": "type",
152                     "operator": "!=",
153                     "value": "if_tx_octets"
154                   }
155                 ]
156               },
157               {
158                 "alias": "$tag_instance $tag_type",
159                 "dsType": "influxdb",
160                 "groupBy": [
161                   {
162                     "params": [
163                       "$__interval"
164                     ],
165                     "type": "time"
166                   },
167                   {
168                     "params": [
169                       "instance"
170                     ],
171                     "type": "tag"
172                   },
173                   {
174                     "params": [
175                       "type"
176                     ],
177                     "type": "tag"
178                   },
179                   {
180                     "params": [
181                       "null"
182                     ],
183                     "type": "fill"
184                   }
185                 ],
186                 "hide": false,
187                 "measurement": "ovs_stats_rx",
188                 "orderByTime": "ASC",
189                 "policy": "default",
190                 "refId": "B",
191                 "resultFormat": "time_series",
192                 "select": [
193                   [
194                     {
195                       "params": [
196                         "value"
197                       ],
198                       "type": "field"
199                     },
200                     {
201                       "params": [],
202                       "type": "last"
203                     }
204                   ]
205                 ],
206                 "tags": [
207                   {
208                     "key": "host",
209                     "operator": "=~",
210                     "value": "/^$host$/"
211                   },
212                   {
213                     "condition": "AND",
214                     "key": "type",
215                     "operator": "!=",
216                     "value": "if_dropped"
217                   },
218                   {
219                     "condition": "AND",
220                     "key": "type",
221                     "operator": "!=",
222                     "value": "if_errors"
223                   }
224                 ]
225               }
226             ],
227             "thresholds": [],
228             "timeFrom": null,
229             "timeShift": null,
230             "title": "Average RX values",
231             "tooltip": {
232               "shared": true,
233               "sort": 0,
234               "value_type": "individual"
235             },
236             "type": "graph",
237             "xaxis": {
238               "buckets": null,
239               "mode": "time",
240               "name": null,
241               "show": true,
242               "values": []
243             },
244             "yaxes": [
245               {
246                 "format": "short",
247                 "label": null,
248                 "logBase": 1,
249                 "max": null,
250                 "min": null,
251                 "show": true
252               },
253               {
254                 "format": "short",
255                 "label": null,
256                 "logBase": 1,
257                 "max": null,
258                 "min": null,
259                 "show": true
260               }
261             ]
262           },
263           {
264             "aliasColors": {},
265             "bars": false,
266             "dashLength": 10,
267             "dashes": false,
268             "datasource": "collectd",
269             "fill": 1,
270             "id": 2,
271             "interval": "1s",
272             "legend": {
273               "alignAsTable": true,
274               "avg": true,
275               "current": true,
276               "max": true,
277               "min": true,
278               "rightSide": true,
279               "show": true,
280               "total": false,
281               "values": true
282             },
283             "lines": true,
284             "linewidth": 1,
285             "links": [],
286             "nullPointMode": "null",
287             "percentage": false,
288             "pointradius": 5,
289             "points": false,
290             "renderer": "flot",
291             "seriesOverrides": [],
292             "spaceLength": 10,
293             "span": 12,
294             "stack": false,
295             "steppedLine": false,
296             "targets": [
297               {
298                 "alias": "$tag_instance $tag_type",
299                 "dsType": "influxdb",
300                 "groupBy": [
301                   {
302                     "params": [
303                       "$__interval"
304                     ],
305                     "type": "time"
306                   },
307                   {
308                     "params": [
309                       "instance"
310                     ],
311                     "type": "tag"
312                   },
313                   {
314                     "params": [
315                       "type"
316                     ],
317                     "type": "tag"
318                   },
319                   {
320                     "params": [
321                       "null"
322                     ],
323                     "type": "fill"
324                   }
325                 ],
326                 "hide": false,
327                 "measurement": "ovs_stats_value",
328                 "orderByTime": "ASC",
329                 "policy": "default",
330                 "refId": "A",
331                 "resultFormat": "time_series",
332                 "select": [
333                   [
334                     {
335                       "params": [
336                         "value"
337                       ],
338                       "type": "field"
339                     },
340                     {
341                       "params": [],
342                       "type": "last"
343                     }
344                   ]
345                 ],
346                 "tags": [
347                   {
348                     "key": "host",
349                     "operator": "=~",
350                     "value": "/^$host$/"
351                   },
352                   {
353                     "condition": "AND",
354                     "key": "type",
355                     "operator": "!=",
356                     "value": "if_collisions"
357                   },
358                   {
359                     "condition": "AND",
360                     "key": "type",
361                     "operator": "!=",
362                     "value": "if_rx_errors"
363                   },
364                   {
365                     "condition": "AND",
366                     "key": "type",
367                     "operator": "!=",
368                     "value": "if_rx_octets"
369                   }
370                 ]
371               },
372               {
373                 "alias": "$tag_instance $tag_type",
374                 "dsType": "influxdb",
375                 "groupBy": [
376                   {
377                     "params": [
378                       "$__interval"
379                     ],
380                     "type": "time"
381                   },
382                   {
383                     "params": [
384                       "instance"
385                     ],
386                     "type": "tag"
387                   },
388                   {
389                     "params": [
390                       "type"
391                     ],
392                     "type": "tag"
393                   },
394                   {
395                     "params": [
396                       "null"
397                     ],
398                     "type": "fill"
399                   }
400                 ],
401                 "hide": false,
402                 "measurement": "ovs_stats_tx",
403                 "orderByTime": "ASC",
404                 "policy": "default",
405                 "refId": "B",
406                 "resultFormat": "time_series",
407                 "select": [
408                   [
409                     {
410                       "params": [
411                         "value"
412                       ],
413                       "type": "field"
414                     },
415                     {
416                       "params": [],
417                       "type": "last"
418                     }
419                   ]
420                 ],
421                 "tags": [
422                   {
423                     "key": "host",
424                     "operator": "=~",
425                     "value": "/^$host$/"
426                   },
427                   {
428                     "condition": "AND",
429                     "key": "type",
430                     "operator": "!=",
431                     "value": "if_dropped"
432                   },
433                   {
434                     "condition": "AND",
435                     "key": "type",
436                     "operator": "!=",
437                     "value": "if_errors"
438                   }
439                 ]
440               }
441             ],
442             "thresholds": [],
443             "timeFrom": null,
444             "timeShift": null,
445             "title": "Average TX values",
446             "tooltip": {
447               "shared": true,
448               "sort": 0,
449               "value_type": "individual"
450             },
451             "type": "graph",
452             "xaxis": {
453               "buckets": null,
454               "mode": "time",
455               "name": null,
456               "show": true,
457               "values": []
458             },
459             "yaxes": [
460               {
461                 "format": "short",
462                 "label": null,
463                 "logBase": 1,
464                 "max": null,
465                 "min": null,
466                 "show": true
467               },
468               {
469                 "format": "short",
470                 "label": null,
471                 "logBase": 1,
472                 "max": null,
473                 "min": null,
474                 "show": true
475               }
476             ]
477           },
478           {
479             "aliasColors": {},
480             "bars": false,
481             "dashLength": 10,
482             "dashes": false,
483             "datasource": "collectd",
484             "fill": 1,
485             "id": 3,
486             "interval": "1s",
487             "legend": {
488               "alignAsTable": true,
489               "avg": true,
490               "current": true,
491               "max": true,
492               "min": true,
493               "rightSide": true,
494               "show": true,
495               "total": false,
496               "values": true
497             },
498             "lines": true,
499             "linewidth": 1,
500             "links": [],
501             "nullPointMode": "null",
502             "percentage": false,
503             "pointradius": 5,
504             "points": false,
505             "renderer": "flot",
506             "seriesOverrides": [],
507             "spaceLength": 10,
508             "span": 12,
509             "stack": false,
510             "steppedLine": false,
511             "targets": [
512               {
513                 "alias": "$tag_instance $tag_type",
514                 "dsType": "influxdb",
515                 "groupBy": [
516                   {
517                     "params": [
518                       "$__interval"
519                     ],
520                     "type": "time"
521                   },
522                   {
523                     "params": [
524                       "instance"
525                     ],
526                     "type": "tag"
527                   },
528                   {
529                     "params": [
530                       "type"
531                     ],
532                     "type": "tag"
533                   },
534                   {
535                     "params": [
536                       "null"
537                     ],
538                     "type": "fill"
539                   }
540                 ],
541                 "hide": false,
542                 "measurement": "ovs_stats_value",
543                 "orderByTime": "ASC",
544                 "policy": "default",
545                 "refId": "A",
546                 "resultFormat": "time_series",
547                 "select": [
548                   [
549                     {
550                       "params": [
551                         "value"
552                       ],
553                       "type": "field"
554                     },
555                     {
556                       "params": [],
557                       "type": "last"
558                     }
559                   ]
560                 ],
561                 "tags": [
562                   {
563                     "key": "host",
564                     "operator": "=~",
565                     "value": "/^$host$/"
566                   },
567                   {
568                     "condition": "AND",
569                     "key": "type",
570                     "operator": "!=",
571                     "value": "if_tx_octets"
572                   },
573                   {
574                     "condition": "AND",
575                     "key": "type",
576                     "operator": "!=",
577                     "value": "if_rx_octets"
578                   }
579                 ]
580               },
581               {
582                 "alias": "$tag_instance $tag_type",
583                 "dsType": "influxdb",
584                 "groupBy": [
585                   {
586                     "params": [
587                       "$__interval"
588                     ],
589                     "type": "time"
590                   },
591                   {
592                     "params": [
593                       "instance"
594                     ],
595                     "type": "tag"
596                   },
597                   {
598                     "params": [
599                       "type"
600                     ],
601                     "type": "tag"
602                   },
603                   {
604                     "params": [
605                       "null"
606                     ],
607                     "type": "fill"
608                   }
609                 ],
610                 "hide": false,
611                 "measurement": "ovs_stats_tx",
612                 "orderByTime": "ASC",
613                 "policy": "default",
614                 "refId": "B",
615                 "resultFormat": "time_series",
616                 "select": [
617                   [
618                     {
619                       "params": [
620                         "value"
621                       ],
622                       "type": "field"
623                     },
624                     {
625                       "params": [],
626                       "type": "last"
627                     }
628                   ]
629                 ],
630                 "tags": [
631                   {
632                     "key": "host",
633                     "operator": "=~",
634                     "value": "/^$host$/"
635                   },
636                   {
637                     "condition": "AND",
638                     "key": "type",
639                     "operator": "!=",
640                     "value": "if_packets"
641                   }
642                 ]
643               }
644             ],
645             "thresholds": [],
646             "timeFrom": null,
647             "timeShift": null,
648             "title": "Average Collisions, Drops and Error values",
649             "tooltip": {
650               "shared": true,
651               "sort": 0,
652               "value_type": "individual"
653             },
654             "type": "graph",
655             "xaxis": {
656               "buckets": null,
657               "mode": "time",
658               "name": null,
659               "show": true,
660               "values": []
661             },
662             "yaxes": [
663               {
664                 "format": "short",
665                 "label": null,
666                 "logBase": 1,
667                 "max": null,
668                 "min": null,
669                 "show": true
670               },
671               {
672                 "format": "short",
673                 "label": null,
674                 "logBase": 1,
675                 "max": null,
676                 "min": null,
677                 "show": true
678               }
679             ]
680           }
681         ],
682         "repeat": null,
683         "repeatIteration": null,
684         "repeatRowId": null,
685         "showTitle": false,
686         "title": "Dashboard Row",
687         "titleSize": "h6"
688       }
689     ],
690     "schemaVersion": 14,
691     "style": "dark",
692     "tags": [
693       "barometer"
694     ],
695     "templating": {
696       "list": [
697         {
698           "current": {
699             "text": "collectd",
700             "value": "collectd"
701           },
702           "hide": 0,
703           "label": null,
704           "name": "datasource",
705           "options": [],
706           "query": "influxdb",
707           "refresh": 1,
708           "regex": "",
709           "type": "datasource"
710         },
711         {
712           "allValue": null,
713           "current": {},
714           "datasource": "collectd",
715           "hide": 0,
716           "includeAll": false,
717           "label": null,
718           "multi": false,
719           "name": "host",
720           "options": [],
721           "query": "SHOW TAG VALUES FROM ovs_stats_value WITH KEY=host",
722           "refresh": 1,
723           "regex": "",
724           "sort": 0,
725           "tagValuesQuery": "",
726           "tags": [],
727           "tagsQuery": "",
728           "type": "query",
729           "useTags": false
730         }
731       ]
732     },
733     "time": {
734       "from": "now-5m",
735       "to": "now"
736     },
737     "timepicker": {
738       "refresh_intervals": [
739         "5s",
740         "10s",
741         "30s",
742         "1m",
743         "5m",
744         "15m",
745         "30m",
746         "1h",
747         "2h",
748         "1d"
749       ],
750       "time_options": [
751         "5m",
752         "15m",
753         "1h",
754         "6h",
755         "12h",
756         "24h",
757         "2d",
758         "7d",
759         "30d"
760       ]
761     },
762     "timezone": "",
763     "title": "Open vSwitch",
764     "version": 2
765   },
766   "overwrite": false
767 }