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