Fix bug 964: Duplicated dashboards. Set fixed port for Grafana
[osm/devops.git] / installers / k8s / nodes-dashboard.yaml
1 #   Copyright 2019 Minsait - Indra S.A.
2 #
3 #   Licensed under the Apache License, Version 2.0 (the "License");
4 #   you may not use this file except in compliance with the License.
5 #   You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #   Unless required by applicable law or agreed to in writing, software
10 #   distributed under the License is distributed on an "AS IS" BASIS,
11 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #   See the License for the specific language governing permissions and
13 #   limitations under the License.
14 #   Author: Jose Manuel Palacios (jmpalacios@minsait.com)
15 #   Author: Jose Antonio Martinez (jamartinezv@minsait.com)
16
17 apiVersion: v1
18 kind: ConfigMap
19 metadata:
20   labels:
21     grafana_dashboard: "1"
22   name: osm-monitoring-osm-nodes-grafana
23   annotations:
24     k8s-sidecar-target-directory: "/tmp/dashboards/Open Source MANO"
25 data:
26   osm-nodes-dashboard.json: |-
27     {
28       "annotations": {
29         "list": [
30           {
31             "builtIn": 1,
32             "datasource": "-- Grafana --",
33             "enable": true,
34             "hide": true,
35             "iconColor": "rgba(0, 211, 255, 1)",
36             "name": "Annotations & Alerts",
37             "type": "dashboard"
38           }
39         ]
40       },
41       "description": "Physical nodes dashboard",
42       "editable": true,
43       "gnetId": 11074,
44       "graphTooltip": 0,
45       "id": 12,
46       "iteration": 1577553366915,
47       "links": [],
48       "panels": [
49         {
50           "collapsed": true,
51           "gridPos": {
52             "h": 1,
53             "w": 24,
54             "x": 0,
55             "y": 0
56           },
57           "id": 179,
58           "panels": [
59             {
60               "cacheTimeout": null,
61               "colorBackground": false,
62               "colorPostfix": false,
63               "colorPrefix": false,
64               "colorValue": true,
65               "colors": [
66                 "rgba(245, 54, 54, 0.9)",
67                 "rgba(237, 129, 40, 0.89)",
68                 "rgba(50, 172, 45, 0.97)"
69               ],
70               "datasource": "Prometheus",
71               "decimals": 1,
72               "description": "",
73               "format": "s",
74               "gauge": {
75                 "maxValue": 100,
76                 "minValue": 0,
77                 "show": false,
78                 "thresholdLabels": false,
79                 "thresholdMarkers": true
80               },
81               "gridPos": {
82                 "h": 6,
83                 "w": 2,
84                 "x": 0,
85                 "y": 1
86               },
87               "hideTimeOverride": true,
88               "id": 15,
89               "interval": null,
90               "links": [],
91               "mappingType": 1,
92               "mappingTypes": [
93                 {
94                   "name": "value to text",
95                   "value": 1
96                 },
97                 {
98                   "name": "range to text",
99                   "value": 2
100                 }
101               ],
102               "maxDataPoints": 100,
103               "nullPointMode": "null",
104               "nullText": null,
105               "options": {},
106               "pluginVersion": "6.4.2",
107               "postfix": "",
108               "postfixFontSize": "50%",
109               "prefix": "",
110               "prefixFontSize": "50%",
111               "rangeMaps": [
112                 {
113                   "from": "null",
114                   "text": "N/A",
115                   "to": "null"
116                 }
117               ],
118               "sparkline": {
119                 "fillColor": "rgba(31, 118, 189, 0.18)",
120                 "full": false,
121                 "lineColor": "rgb(31, 120, 193)",
122                 "show": false
123               },
124               "tableColumn": "",
125               "targets": [
126                 {
127                   "expr": "sum(time() - node_boot_time_seconds{instance=~\"$node\"})",
128                   "format": "time_series",
129                   "hide": false,
130                   "instant": true,
131                   "intervalFactor": 1,
132                   "refId": "A",
133                   "step": 40
134                 }
135               ],
136               "thresholds": "1,2",
137               "title": "System Uptime",
138               "type": "singlestat",
139               "valueFontSize": "70%",
140               "valueMaps": [
141                 {
142                   "op": "=",
143                   "text": "N/A",
144                   "value": "null"
145                 }
146               ],
147               "valueName": "current"
148             },
149             {
150               "cacheTimeout": null,
151               "colorBackground": false,
152               "colorPostfix": false,
153               "colorValue": true,
154               "colors": [
155                 "rgba(245, 54, 54, 0.9)",
156                 "rgba(237, 129, 40, 0.89)",
157                 "rgba(50, 172, 45, 0.97)"
158               ],
159               "datasource": "Prometheus",
160               "description": "",
161               "format": "short",
162               "gauge": {
163                 "maxValue": 100,
164                 "minValue": 0,
165                 "show": false,
166                 "thresholdLabels": false,
167                 "thresholdMarkers": true
168               },
169               "gridPos": {
170                 "h": 6,
171                 "w": 2,
172                 "x": 2,
173                 "y": 1
174               },
175               "id": 14,
176               "interval": null,
177               "links": [],
178               "mappingType": 1,
179               "mappingTypes": [
180                 {
181                   "name": "value to text",
182                   "value": 1
183                 },
184                 {
185                   "name": "range to text",
186                   "value": 2
187                 }
188               ],
189               "maxDataPoints": 100,
190               "maxPerRow": 6,
191               "nullPointMode": "null",
192               "nullText": null,
193               "options": {},
194               "postfix": "",
195               "postfixFontSize": "50%",
196               "prefix": "",
197               "prefixFontSize": "50%",
198               "rangeMaps": [
199                 {
200                   "from": "null",
201                   "text": "N/A",
202                   "to": "null"
203                 }
204               ],
205               "sparkline": {
206                 "fillColor": "rgba(31, 118, 189, 0.18)",
207                 "full": false,
208                 "lineColor": "rgb(31, 120, 193)",
209                 "show": false
210               },
211               "tableColumn": "",
212               "targets": [
213                 {
214                   "expr": "sum(count(node_cpu_seconds_total{instance=~\"$node\", mode='system'}) by (cpu))",
215                   "format": "time_series",
216                   "instant": true,
217                   "intervalFactor": 1,
218                   "legendFormat": "",
219                   "refId": "A",
220                   "step": 20
221                 }
222               ],
223               "thresholds": "1,2",
224               "title": "CPU Cores",
225               "type": "singlestat",
226               "valueFontSize": "70%",
227               "valueMaps": [
228                 {
229                   "op": "=",
230                   "text": "N/A",
231                   "value": "null"
232                 }
233               ],
234               "valueName": "current"
235             },
236             {
237               "cacheTimeout": null,
238               "colorBackground": false,
239               "colorValue": true,
240               "colors": [
241                 "rgba(245, 54, 54, 0.9)",
242                 "rgba(237, 129, 40, 0.89)",
243                 "rgba(50, 172, 45, 0.97)"
244               ],
245               "datasource": "Prometheus",
246               "decimals": 2,
247               "description": "",
248               "format": "bytes",
249               "gauge": {
250                 "maxValue": 100,
251                 "minValue": 0,
252                 "show": false,
253                 "thresholdLabels": false,
254                 "thresholdMarkers": true
255               },
256               "gridPos": {
257                 "h": 6,
258                 "w": 2,
259                 "x": 4,
260                 "y": 1
261               },
262               "id": 75,
263               "interval": null,
264               "links": [],
265               "mappingType": 1,
266               "mappingTypes": [
267                 {
268                   "name": "value to text",
269                   "value": 1
270                 },
271                 {
272                   "name": "range to text",
273                   "value": 2
274                 }
275               ],
276               "maxDataPoints": 100,
277               "maxPerRow": 6,
278               "nullPointMode": "null",
279               "nullText": null,
280               "options": {},
281               "postfix": "",
282               "postfixFontSize": "70%",
283               "prefix": "",
284               "prefixFontSize": "50%",
285               "rangeMaps": [
286                 {
287                   "from": "null",
288                   "text": "N/A",
289                   "to": "null"
290                 }
291               ],
292               "sparkline": {
293                 "fillColor": "rgba(31, 118, 189, 0.18)",
294                 "full": false,
295                 "lineColor": "rgb(31, 120, 193)",
296                 "show": false
297               },
298               "tableColumn": "",
299               "targets": [
300                 {
301                   "expr": "sum(node_memory_MemTotal_bytes{instance=~\"$node\"})",
302                   "format": "time_series",
303                   "instant": true,
304                   "intervalFactor": 1,
305                   "legendFormat": "{{instance}}",
306                   "refId": "A",
307                   "step": 20
308                 }
309               ],
310               "thresholds": "2,3",
311               "title": "Total RAM",
312               "type": "singlestat",
313               "valueFontSize": "70%",
314               "valueMaps": [
315                 {
316                   "op": "=",
317                   "text": "N/A",
318                   "value": "null"
319                 }
320               ],
321               "valueName": "current"
322             },
323             {
324               "datasource": "Prometheus",
325               "gridPos": {
326                 "h": 6,
327                 "w": 18,
328                 "x": 6,
329                 "y": 1
330               },
331               "id": 177,
332               "options": {
333                 "displayMode": "lcd",
334                 "fieldOptions": {
335                   "calcs": [
336                     "last"
337                   ],
338                   "defaults": {
339                     "mappings": [
340                       {
341                         "from": "",
342                         "id": 1,
343                         "operator": "",
344                         "text": "-",
345                         "to": "",
346                         "type": 1,
347                         "value": "NaN"
348                       }
349                     ],
350                     "max": 100,
351                     "min": 0,
352                     "thresholds": [
353                       {
354                         "color": "green",
355                         "value": null
356                       },
357                       {
358                         "color": "#EAB839",
359                         "value": 60
360                       },
361                       {
362                         "color": "red",
363                         "value": 80
364                       }
365                     ],
366                     "title": "",
367                     "unit": "percent"
368                   },
369                   "override": {},
370                   "values": false
371                 },
372                 "orientation": "horizontal"
373               },
374               "pluginVersion": "6.3.5",
375               "targets": [
376                 {
377                   "expr": "100 - (avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"idle\"}[30m])) * 100)",
378                   "instant": true,
379                   "legendFormat": "CPU Busy",
380                   "refId": "A"
381                 },
382                 {
383                   "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"iowait\"}[30m])) * 100",
384                   "hide": true,
385                   "instant": true,
386                   "legendFormat": "Busy Iowait",
387                   "refId": "C"
388                 },
389                 {
390                   "expr": "(1 - (node_memory_MemAvailable_bytes{instance=~\"$node\"} / (node_memory_MemTotal_bytes{instance=~\"$node\"})))* 100",
391                   "instant": true,
392                   "legendFormat": "Used RAM Memory",
393                   "refId": "B"
394                 },
395                 {
396                   "expr": "100 - ((node_filesystem_avail_bytes{instance=~\"$node\",mountpoint=\"$maxmount\",fstype=~\"ext4|xfs\"} * 100) / node_filesystem_size_bytes {instance=~\"$node\",mountpoint=\"$maxmount\",fstype=~\"ext4|xfs\"})",
397                   "hide": false,
398                   "instant": true,
399                   "legendFormat": "Used Max Mount($maxmount)",
400                   "refId": "D"
401                 },
402                 {
403                   "expr": "(1 - (node_memory_SwapFree_bytes{instance=~\"$node\"} / node_memory_SwapTotal_bytes{instance=~\"$node\"})) * 100",
404                   "instant": true,
405                   "legendFormat": "Used SWAP",
406                   "refId": "E"
407                 }
408               ],
409               "timeFrom": null,
410               "timeShift": null,
411               "title": "",
412               "type": "bargauge"
413             }
414           ],
415           "title": "Summary",
416           "type": "row"
417         },
418         {
419           "collapsed": true,
420           "gridPos": {
421             "h": 1,
422             "w": 24,
423             "x": 0,
424             "y": 1
425           },
426           "id": 181,
427           "panels": [
428             {
429               "aliasColors": {
430                 "15分钟": "#6ED0E0",
431                 "1分钟": "#BF1B00",
432                 "5分钟": "#CCA300"
433               },
434               "bars": false,
435               "dashLength": 10,
436               "dashes": false,
437               "datasource": "Prometheus",
438               "editable": true,
439               "error": false,
440               "fill": 1,
441               "fillGradient": 1,
442               "grid": {},
443               "gridPos": {
444                 "h": 10,
445                 "w": 12,
446                 "x": 0,
447                 "y": 8
448               },
449               "height": "300",
450               "id": 13,
451               "legend": {
452                 "alignAsTable": true,
453                 "avg": true,
454                 "current": true,
455                 "max": true,
456                 "min": false,
457                 "rightSide": false,
458                 "show": true,
459                 "total": false,
460                 "values": true
461               },
462               "lines": true,
463               "linewidth": 2,
464               "links": [],
465               "maxPerRow": 6,
466               "nullPointMode": "null as zero",
467               "options": {
468                 "dataLinks": []
469               },
470               "percentage": false,
471               "pointradius": 5,
472               "points": false,
473               "renderer": "flot",
474               "repeat": null,
475               "seriesOverrides": [],
476               "spaceLength": 10,
477               "stack": false,
478               "steppedLine": false,
479               "targets": [
480                 {
481                   "expr": "node_load1{instance=~\"$node\"}",
482                   "format": "time_series",
483                   "instant": false,
484                   "interval": "",
485                   "intervalFactor": 1,
486                   "legendFormat": "{{instance}}_1m",
487                   "metric": "",
488                   "refId": "A",
489                   "step": 20,
490                   "target": ""
491                 },
492                 {
493                   "expr": "node_load5{instance=~\"$node\"}",
494                   "format": "time_series",
495                   "instant": false,
496                   "interval": "",
497                   "intervalFactor": 1,
498                   "legendFormat": "{{instance}}_5m",
499                   "refId": "B",
500                   "step": 20
501                 },
502                 {
503                   "expr": "node_load15{instance=~\"$node\"}",
504                   "format": "time_series",
505                   "instant": false,
506                   "interval": "",
507                   "intervalFactor": 1,
508                   "legendFormat": "{{instance}}_15m",
509                   "refId": "C",
510                   "step": 20
511                 }
512               ],
513               "thresholds": [],
514               "timeFrom": null,
515               "timeRegions": [],
516               "timeShift": null,
517               "title": "System Load",
518               "tooltip": {
519                 "msResolution": false,
520                 "shared": true,
521                 "sort": 2,
522                 "value_type": "cumulative"
523               },
524               "type": "graph",
525               "xaxis": {
526                 "buckets": null,
527                 "mode": "time",
528                 "name": null,
529                 "show": true,
530                 "values": []
531               },
532               "yaxes": [
533                 {
534                   "format": "short",
535                   "logBase": 1,
536                   "max": null,
537                   "min": null,
538                   "show": true
539                 },
540                 {
541                   "format": "short",
542                   "logBase": 1,
543                   "max": null,
544                   "min": null,
545                   "show": true
546                 }
547               ],
548               "yaxis": {
549                 "align": false,
550                 "alignLevel": null
551               }
552             },
553             {
554               "aliasColors": {
555                 "192.168.200.241:9100_Total": "dark-red",
556                 "Idle - Waiting for something to happen": "#052B51",
557                 "guest": "#9AC48A",
558                 "idle": "#052B51",
559                 "iowait": "#EAB839",
560                 "irq": "#BF1B00",
561                 "nice": "#C15C17",
562                 "softirq": "#E24D42",
563                 "steal": "#FCE2DE",
564                 "system": "#508642",
565                 "user": "#5195CE"
566               },
567               "bars": false,
568               "dashLength": 10,
569               "dashes": false,
570               "datasource": "Prometheus",
571               "decimals": 2,
572               "description": "",
573               "fill": 1,
574               "fillGradient": 0,
575               "gridPos": {
576                 "h": 10,
577                 "w": 12,
578                 "x": 12,
579                 "y": 8
580               },
581               "id": 7,
582               "legend": {
583                 "alignAsTable": true,
584                 "avg": true,
585                 "current": true,
586                 "hideEmpty": true,
587                 "hideZero": true,
588                 "max": true,
589                 "min": false,
590                 "rightSide": false,
591                 "show": true,
592                 "sideWidth": null,
593                 "sort": "current",
594                 "sortDesc": true,
595                 "total": false,
596                 "values": true
597               },
598               "lines": true,
599               "linewidth": 2,
600               "links": [],
601               "maxPerRow": 6,
602               "nullPointMode": "null",
603               "options": {
604                 "dataLinks": []
605               },
606               "percentage": false,
607               "pointradius": 5,
608               "points": false,
609               "renderer": "flot",
610               "repeat": null,
611               "seriesOverrides": [
612                 {
613                   "alias": "/.*_Total/",
614                   "color": "#C4162A",
615                   "fill": 0
616                 }
617               ],
618               "spaceLength": 10,
619               "stack": false,
620               "steppedLine": false,
621               "targets": [
622                 {
623                   "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"system\"}[30m])) by (instance)",
624                   "format": "time_series",
625                   "hide": false,
626                   "instant": false,
627                   "interval": "",
628                   "intervalFactor": 1,
629                   "legendFormat": "{{instance}}_System",
630                   "refId": "A",
631                   "step": 20
632                 },
633                 {
634                   "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"user\"}[30m])) by (instance)",
635                   "format": "time_series",
636                   "hide": false,
637                   "intervalFactor": 1,
638                   "legendFormat": "{{instance}}_User",
639                   "refId": "B",
640                   "step": 240
641                 },
642                 {
643                   "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"iowait\"}[30m])) by (instance)",
644                   "format": "time_series",
645                   "hide": false,
646                   "instant": false,
647                   "intervalFactor": 1,
648                   "legendFormat": "{{instance}}_Iowait",
649                   "refId": "D",
650                   "step": 240
651                 },
652                 {
653                   "expr": "1 - avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"idle\"}[30m])) by (instance)",
654                   "format": "time_series",
655                   "hide": false,
656                   "intervalFactor": 1,
657                   "legendFormat": "{{instance}}_Total",
658                   "refId": "F",
659                   "step": 240
660                 }
661               ],
662               "thresholds": [],
663               "timeFrom": null,
664               "timeRegions": [],
665               "timeShift": null,
666               "title": "CPU",
667               "tooltip": {
668                 "shared": true,
669                 "sort": 2,
670                 "value_type": "individual"
671               },
672               "type": "graph",
673               "xaxis": {
674                 "buckets": null,
675                 "mode": "time",
676                 "name": null,
677                 "show": true,
678                 "values": []
679               },
680               "yaxes": [
681                 {
682                   "decimals": 2,
683                   "format": "percentunit",
684                   "label": "",
685                   "logBase": 1,
686                   "max": null,
687                   "min": null,
688                   "show": true
689                 },
690                 {
691                   "format": "short",
692                   "label": null,
693                   "logBase": 1,
694                   "max": null,
695                   "min": null,
696                   "show": false
697                 }
698               ],
699               "yaxis": {
700                 "align": false,
701                 "alignLevel": null
702               }
703             }
704           ],
705           "title": "CPU",
706           "type": "row"
707         },
708         {
709           "collapsed": true,
710           "gridPos": {
711             "h": 1,
712             "w": 24,
713             "x": 0,
714             "y": 2
715           },
716           "id": 183,
717           "panels": [
718             {
719               "columns": [],
720               "datasource": "Prometheus",
721               "fontSize": "110%",
722               "gridPos": {
723                 "h": 8,
724                 "w": 8,
725                 "x": 0,
726                 "y": 3
727               },
728               "id": 164,
729               "links": [],
730               "options": {},
731               "pageSize": null,
732               "scroll": true,
733               "showHeader": true,
734               "sort": {
735                 "col": 11,
736                 "desc": true
737               },
738               "styles": [
739                 {
740                   "alias": "Mounted on",
741                   "colorMode": null,
742                   "colors": [
743                     "rgba(50, 172, 45, 0.97)",
744                     "rgba(237, 129, 40, 0.89)",
745                     "rgba(245, 54, 54, 0.9)"
746                   ],
747                   "dateFormat": "YYYY-MM-DD HH:mm:ss",
748                   "decimals": 2,
749                   "mappingType": 1,
750                   "pattern": "mountpoint",
751                   "thresholds": [
752                     ""
753                   ],
754                   "type": "string",
755                   "unit": "bytes"
756                 },
757                 {
758                   "alias": "Avail",
759                   "colorMode": "value",
760                   "colors": [
761                     "rgba(245, 54, 54, 0.9)",
762                     "rgba(237, 129, 40, 0.89)",
763                     "rgba(50, 172, 45, 0.97)"
764                   ],
765                   "dateFormat": "YYYY-MM-DD HH:mm:ss",
766                   "decimals": 2,
767                   "mappingType": 1,
768                   "pattern": "Value #A",
769                   "thresholds": [
770                     "10000000000",
771                     "20000000000"
772                   ],
773                   "type": "number",
774                   "unit": "bytes"
775                 },
776                 {
777                   "alias": "Used",
778                   "colorMode": "cell",
779                   "colors": [
780                     "rgba(50, 172, 45, 0.97)",
781                     "rgba(237, 129, 40, 0.89)",
782                     "rgba(245, 54, 54, 0.9)"
783                   ],
784                   "dateFormat": "YYYY-MM-DD HH:mm:ss",
785                   "decimals": 2,
786                   "mappingType": 1,
787                   "pattern": "Value #B",
788                   "thresholds": [
789                     "0.6",
790                     "0.8"
791                   ],
792                   "type": "number",
793                   "unit": "percentunit"
794                 },
795                 {
796                   "alias": "Size",
797                   "colorMode": null,
798                   "colors": [
799                     "rgba(245, 54, 54, 0.9)",
800                     "rgba(237, 129, 40, 0.89)",
801                     "rgba(50, 172, 45, 0.97)"
802                   ],
803                   "dateFormat": "YYYY-MM-DD HH:mm:ss",
804                   "decimals": 1,
805                   "link": false,
806                   "mappingType": 1,
807                   "pattern": "Value #C",
808                   "thresholds": [],
809                   "type": "number",
810                   "unit": "bytes"
811                 },
812                 {
813                   "alias": "Filesystem",
814                   "colorMode": null,
815                   "colors": [
816                     "rgba(245, 54, 54, 0.9)",
817                     "rgba(237, 129, 40, 0.89)",
818                     "rgba(50, 172, 45, 0.97)"
819                   ],
820                   "dateFormat": "YYYY-MM-DD HH:mm:ss",
821                   "decimals": 2,
822                   "link": false,
823                   "mappingType": 1,
824                   "pattern": "fstype",
825                   "thresholds": [],
826                   "type": "string",
827                   "unit": "short"
828                 },
829                 {
830                   "alias": "",
831                   "colorMode": null,
832                   "colors": [
833                     "rgba(245, 54, 54, 0.9)",
834                     "rgba(237, 129, 40, 0.89)",
835                     "rgba(50, 172, 45, 0.97)"
836                   ],
837                   "decimals": 2,
838                   "pattern": "/.*/",
839                   "preserveFormat": true,
840                   "sanitize": false,
841                   "thresholds": [],
842                   "type": "hidden",
843                   "unit": "short"
844                 }
845               ],
846               "targets": [
847                 {
848                   "expr": "node_filesystem_avail_bytes {instance=~'$node',fstype=~\"ext4|xfs\"}-0",
849                   "format": "table",
850                   "hide": false,
851                   "instant": true,
852                   "interval": "10s",
853                   "intervalFactor": 1,
854                   "legendFormat": "",
855                   "refId": "A"
856                 },
857                 {
858                   "expr": "1-(node_filesystem_free_bytes{instance=~'$node',fstype=~\"ext4|xfs\"} / node_filesystem_size_bytes{instance=~'$node',fstype=~\"ext4|xfs\"})",
859                   "format": "table",
860                   "hide": false,
861                   "instant": true,
862                   "intervalFactor": 1,
863                   "legendFormat": "",
864                   "refId": "B"
865                 },
866                 {
867                   "expr": "node_filesystem_size_bytes{instance=~'$node',fstype=~\"ext4|xfs\"}-0",
868                   "format": "table",
869                   "hide": false,
870                   "instant": true,
871                   "intervalFactor": 1,
872                   "legendFormat": "",
873                   "refId": "C"
874                 }
875               ],
876               "title": "Disk Space Used  (EXT4/XFS)",
877               "transform": "table",
878               "type": "table"
879             },
880             {
881               "aliasColors": {
882                 "vda_write": "#6ED0E0"
883               },
884               "bars": false,
885               "dashLength": 10,
886               "dashes": false,
887               "datasource": "Prometheus",
888               "description": "Per second read / write bytes ",
889               "fill": 1,
890               "fillGradient": 1,
891               "gridPos": {
892                 "h": 8,
893                 "w": 8,
894                 "x": 8,
895                 "y": 3
896               },
897               "height": "300",
898               "id": 168,
899               "legend": {
900                 "alignAsTable": true,
901                 "avg": true,
902                 "current": true,
903                 "hideEmpty": true,
904                 "hideZero": true,
905                 "max": true,
906                 "min": false,
907                 "show": true,
908                 "sort": "current",
909                 "sortDesc": true,
910                 "total": false,
911                 "values": true
912               },
913               "lines": true,
914               "linewidth": 2,
915               "links": [],
916               "nullPointMode": "null",
917               "options": {
918                 "dataLinks": []
919               },
920               "percentage": false,
921               "pointradius": 5,
922               "points": false,
923               "renderer": "flot",
924               "seriesOverrides": [
925                 {
926                   "alias": "/.*_Read bytes$/",
927                   "transform": "negative-Y"
928                 }
929               ],
930               "spaceLength": 10,
931               "stack": false,
932               "steppedLine": false,
933               "targets": [
934                 {
935                   "expr": "irate(node_disk_read_bytes_total{instance=~\"$node\"}[30m])",
936                   "format": "time_series",
937                   "interval": "",
938                   "intervalFactor": 1,
939                   "legendFormat": "{{instance}}_{{device}}_Read bytes",
940                   "refId": "A",
941                   "step": 10
942                 },
943                 {
944                   "expr": "irate(node_disk_written_bytes_total{instance=~\"$node\"}[30m])",
945                   "format": "time_series",
946                   "hide": false,
947                   "intervalFactor": 1,
948                   "legendFormat": "{{instance}}_{{device}}_Written bytes",
949                   "refId": "B",
950                   "step": 10
951                 }
952               ],
953               "thresholds": [],
954               "timeFrom": null,
955               "timeRegions": [],
956               "timeShift": null,
957               "title": "Disk R/W Data",
958               "tooltip": {
959                 "shared": true,
960                 "sort": 2,
961                 "value_type": "individual"
962               },
963               "type": "graph",
964               "xaxis": {
965                 "buckets": null,
966                 "mode": "time",
967                 "name": null,
968                 "show": true,
969                 "values": []
970               },
971               "yaxes": [
972                 {
973                   "decimals": null,
974                   "format": "Bps",
975                   "label": "Bytes read (-) / write (+)",
976                   "logBase": 1,
977                   "max": null,
978                   "min": null,
979                   "show": true
980                 },
981                 {
982                   "format": "short",
983                   "label": null,
984                   "logBase": 1,
985                   "max": null,
986                   "min": null,
987                   "show": false
988                 }
989               ],
990               "yaxis": {
991                 "align": false,
992                 "alignLevel": null
993               }
994             },
995             {
996               "aliasColors": {
997                 "Idle - Waiting for something to happen": "#052B51",
998                 "guest": "#9AC48A",
999                 "idle": "#052B51",
1000                 "iowait": "#EAB839",
1001                 "irq": "#BF1B00",
1002                 "nice": "#C15C17",
1003                 "sdb_每秒I/O操作%": "#d683ce",
1004                 "softirq": "#E24D42",
1005                 "steal": "#FCE2DE",
1006                 "system": "#508642",
1007                 "user": "#5195CE",
1008                 "磁盘花费在I/O操作占比": "#ba43a9"
1009               },
1010               "bars": false,
1011               "dashLength": 10,
1012               "dashes": false,
1013               "datasource": "Prometheus",
1014               "decimals": null,
1015               "description": "The time spent on I/O in the natural time of each second.(wall-clock time)",
1016               "fill": 1,
1017               "fillGradient": 5,
1018               "gridPos": {
1019                 "h": 8,
1020                 "w": 8,
1021                 "x": 16,
1022                 "y": 3
1023               },
1024               "id": 175,
1025               "legend": {
1026                 "alignAsTable": true,
1027                 "avg": true,
1028                 "current": true,
1029                 "hideEmpty": true,
1030                 "hideZero": true,
1031                 "max": true,
1032                 "min": false,
1033                 "rightSide": false,
1034                 "show": true,
1035                 "sideWidth": null,
1036                 "sort": null,
1037                 "sortDesc": null,
1038                 "total": false,
1039                 "values": true
1040               },
1041               "lines": true,
1042               "linewidth": 2,
1043               "links": [],
1044               "maxPerRow": 6,
1045               "nullPointMode": "null",
1046               "options": {
1047                 "dataLinks": []
1048               },
1049               "percentage": false,
1050               "pointradius": 5,
1051               "points": false,
1052               "renderer": "flot",
1053               "seriesOverrides": [],
1054               "spaceLength": 10,
1055               "stack": false,
1056               "steppedLine": false,
1057               "targets": [
1058                 {
1059                   "expr": "irate(node_disk_io_time_seconds_total{instance=~\"$node\"}[30m])",
1060                   "format": "time_series",
1061                   "intervalFactor": 1,
1062                   "legendFormat": "{{instance}}_{{device}}_ IO time",
1063                   "refId": "C"
1064                 }
1065               ],
1066               "thresholds": [],
1067               "timeFrom": null,
1068               "timeRegions": [],
1069               "timeShift": null,
1070               "title": "Time Spent Doing I/Os",
1071               "tooltip": {
1072                 "shared": true,
1073                 "sort": 2,
1074                 "value_type": "individual"
1075               },
1076               "type": "graph",
1077               "xaxis": {
1078                 "buckets": null,
1079                 "mode": "time",
1080                 "name": null,
1081                 "show": true,
1082                 "values": []
1083               },
1084               "yaxes": [
1085                 {
1086                   "decimals": null,
1087                   "format": "s",
1088                   "label": "",
1089                   "logBase": 1,
1090                   "max": null,
1091                   "min": null,
1092                   "show": true
1093                 },
1094                 {
1095                   "format": "short",
1096                   "label": null,
1097                   "logBase": 1,
1098                   "max": null,
1099                   "min": null,
1100                   "show": false
1101                 }
1102               ],
1103               "yaxis": {
1104                 "align": false,
1105                 "alignLevel": null
1106               }
1107             }
1108           ],
1109           "title": "Disk",
1110           "type": "row"
1111         },
1112         {
1113           "collapsed": true,
1114           "gridPos": {
1115             "h": 1,
1116             "w": 24,
1117             "x": 0,
1118             "y": 3
1119           },
1120           "id": 185,
1121           "panels": [
1122             {
1123               "bars": false,
1124               "dashLength": 10,
1125               "dashes": false,
1126               "datasource": "Prometheus",
1127               "decimals": 2,
1128               "fill": 1,
1129               "fillGradient": 0,
1130               "gridPos": {
1131                 "h": 8,
1132                 "w": 24,
1133                 "x": 0,
1134                 "y": 28
1135               },
1136               "height": "300",
1137               "id": 156,
1138               "legend": {
1139                 "alignAsTable": true,
1140                 "avg": false,
1141                 "current": true,
1142                 "max": false,
1143                 "min": false,
1144                 "rightSide": false,
1145                 "show": true,
1146                 "sort": "current",
1147                 "sortDesc": true,
1148                 "total": false,
1149                 "values": true
1150               },
1151               "lines": true,
1152               "linewidth": 2,
1153               "links": [],
1154               "nullPointMode": "null",
1155               "options": {
1156                 "dataLinks": []
1157               },
1158               "percentage": false,
1159               "pointradius": 5,
1160               "points": false,
1161               "renderer": "flot",
1162               "seriesOverrides": [
1163                 {
1164                   "alias": "/.*_Total/",
1165                   "color": "#C4162A",
1166                   "fill": 0
1167                 }
1168               ],
1169               "spaceLength": 10,
1170               "stack": false,
1171               "steppedLine": false,
1172               "targets": [
1173                 {
1174                   "expr": "node_memory_MemTotal_bytes{instance=~\"$node\"}",
1175                   "format": "time_series",
1176                   "hide": false,
1177                   "instant": false,
1178                   "intervalFactor": 1,
1179                   "legendFormat": "{{instance}}_Total",
1180                   "refId": "A",
1181                   "step": 4
1182                 },
1183                 {
1184                   "expr": "node_memory_MemTotal_bytes{instance=~\"$node\"} - node_memory_MemAvailable_bytes{instance=~\"$node\"}",
1185                   "format": "time_series",
1186                   "hide": false,
1187                   "intervalFactor": 1,
1188                   "legendFormat": "{{instance}}_Used",
1189                   "refId": "B",
1190                   "step": 4
1191                 },
1192                 {
1193                   "expr": "node_memory_MemAvailable_bytes{instance=~\"$node\"}",
1194                   "format": "time_series",
1195                   "hide": false,
1196                   "interval": "",
1197                   "intervalFactor": 1,
1198                   "legendFormat": "{{instance}}_Avaliable",
1199                   "refId": "F",
1200                   "step": 4
1201                 }
1202               ],
1203               "thresholds": [],
1204               "timeFrom": null,
1205               "timeRegions": [],
1206               "timeShift": null,
1207               "title": "Memory",
1208               "tooltip": {
1209                 "shared": true,
1210                 "sort": 2,
1211                 "value_type": "individual"
1212               },
1213               "type": "graph",
1214               "xaxis": {
1215                 "buckets": null,
1216                 "mode": "time",
1217                 "name": null,
1218                 "show": true,
1219                 "values": []
1220               },
1221               "yaxes": [
1222                 {
1223                   "format": "bytes",
1224                   "label": null,
1225                   "logBase": 1,
1226                   "max": null,
1227                   "min": "0",
1228                   "show": true
1229                 },
1230                 {
1231                   "format": "short",
1232                   "label": null,
1233                   "logBase": 1,
1234                   "max": null,
1235                   "min": null,
1236                   "show": true
1237                 }
1238               ],
1239               "yaxis": {
1240                 "align": false,
1241                 "alignLevel": null
1242               }
1243             }
1244           ],
1245           "title": "Memory",
1246           "type": "row"
1247         },
1248         {
1249           "collapsed": true,
1250           "gridPos": {
1251             "h": 1,
1252             "w": 24,
1253             "x": 0,
1254             "y": 4
1255           },
1256           "id": 187,
1257           "panels": [
1258             {
1259               "bars": false,
1260               "dashLength": 10,
1261               "dashes": false,
1262               "datasource": "Prometheus",
1263               "fill": 1,
1264               "fillGradient": 3,
1265               "gridPos": {
1266                 "h": 12,
1267                 "w": 12,
1268                 "x": 0,
1269                 "y": 29
1270               },
1271               "height": "300",
1272               "id": 157,
1273               "legend": {
1274                 "alignAsTable": true,
1275                 "avg": false,
1276                 "current": true,
1277                 "hideEmpty": true,
1278                 "hideZero": true,
1279                 "max": true,
1280                 "min": false,
1281                 "rightSide": false,
1282                 "show": true,
1283                 "sort": "current",
1284                 "sortDesc": true,
1285                 "total": false,
1286                 "values": true
1287               },
1288               "lines": true,
1289               "linewidth": 2,
1290               "links": [],
1291               "nullPointMode": "null",
1292               "options": {
1293                 "dataLinks": []
1294               },
1295               "percentage": false,
1296               "pointradius": 2,
1297               "points": false,
1298               "renderer": "flot",
1299               "seriesOverrides": [
1300                 {
1301                   "alias": "/.*_transmit$/",
1302                   "transform": "negative-Y"
1303                 }
1304               ],
1305               "spaceLength": 10,
1306               "stack": false,
1307               "steppedLine": false,
1308               "targets": [
1309                 {
1310                   "expr": "irate(node_network_receive_bytes_total{instance=~'$node',device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*'}[30m])*8",
1311                   "format": "time_series",
1312                   "intervalFactor": 1,
1313                   "legendFormat": "{{instance}}_{{device}}_receive",
1314                   "refId": "A",
1315                   "step": 4
1316                 },
1317                 {
1318                   "expr": "irate(node_network_transmit_bytes_total{instance=~'$node',device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*'}[30m])*8",
1319                   "format": "time_series",
1320                   "intervalFactor": 1,
1321                   "legendFormat": "{{instance}}_{{device}}_transmit",
1322                   "refId": "B",
1323                   "step": 4
1324                 }
1325               ],
1326               "thresholds": [],
1327               "timeFrom": null,
1328               "timeRegions": [],
1329               "timeShift": null,
1330               "title": "Network Traffic",
1331               "tooltip": {
1332                 "shared": true,
1333                 "sort": 2,
1334                 "value_type": "individual"
1335               },
1336               "type": "graph",
1337               "xaxis": {
1338                 "buckets": null,
1339                 "mode": "time",
1340                 "name": null,
1341                 "show": true,
1342                 "values": []
1343               },
1344               "yaxes": [
1345                 {
1346                   "format": "bps",
1347                   "label": "transmit(-)/receive(+)",
1348                   "logBase": 1,
1349                   "max": null,
1350                   "min": null,
1351                   "show": true
1352                 },
1353                 {
1354                   "format": "short",
1355                   "label": null,
1356                   "logBase": 1,
1357                   "max": null,
1358                   "min": null,
1359                   "show": false
1360                 }
1361               ],
1362               "yaxis": {
1363                 "align": false,
1364                 "alignLevel": null
1365               }
1366             },
1367             {
1368               "aliasColors": {
1369                 "TCP": "#6ED0E0"
1370               },
1371               "bars": false,
1372               "dashLength": 10,
1373               "dashes": false,
1374               "datasource": "Prometheus",
1375               "description": "TCP_alloc - Allocated sockets\n\nCurrEstab - TCP connections for which the current state is either ESTABLISHED or CLOSE- WAIT\n\nTCP_tw - Sockets wating close\n\nUDP_inuse - Udp sockets currently in use\n\nSockets_used - Sockets currently in use",
1376               "fill": 1,
1377               "fillGradient": 0,
1378               "gridPos": {
1379                 "h": 12,
1380                 "w": 12,
1381                 "x": 12,
1382                 "y": 29
1383               },
1384               "height": "300",
1385               "id": 158,
1386               "interval": "",
1387               "legend": {
1388                 "alignAsTable": true,
1389                 "avg": true,
1390                 "current": true,
1391                 "hideEmpty": true,
1392                 "hideZero": true,
1393                 "max": true,
1394                 "min": false,
1395                 "rightSide": false,
1396                 "show": true,
1397                 "sort": "current",
1398                 "sortDesc": true,
1399                 "total": false,
1400                 "values": true
1401               },
1402               "lines": true,
1403               "linewidth": 2,
1404               "links": [],
1405               "nullPointMode": "null",
1406               "options": {
1407                 "dataLinks": []
1408               },
1409               "percentage": false,
1410               "pointradius": 5,
1411               "points": false,
1412               "renderer": "flot",
1413               "seriesOverrides": [
1414                 {
1415                   "alias": "/.*_Sockets_used/",
1416                   "color": "#C4162A",
1417                   "fill": 0
1418                 }
1419               ],
1420               "spaceLength": 10,
1421               "stack": false,
1422               "steppedLine": false,
1423               "targets": [
1424                 {
1425                   "expr": "node_netstat_Tcp_CurrEstab{instance=~'$node'}",
1426                   "format": "time_series",
1427                   "hide": false,
1428                   "instant": false,
1429                   "interval": "",
1430                   "intervalFactor": 1,
1431                   "legendFormat": "{{instance}}_CurrEstab",
1432                   "refId": "A",
1433                   "step": 20
1434                 },
1435                 {
1436                   "expr": "node_sockstat_TCP_tw{instance=~'$node'}",
1437                   "format": "time_series",
1438                   "intervalFactor": 1,
1439                   "legendFormat": "{{instance}}_TCP_tw",
1440                   "refId": "D"
1441                 },
1442                 {
1443                   "expr": "node_sockstat_sockets_used{instance=~'$node'}",
1444                   "legendFormat": "{{instance}}_Sockets_used",
1445                   "refId": "B"
1446                 },
1447                 {
1448                   "expr": "node_sockstat_UDP_inuse{instance=~'$node'}",
1449                   "legendFormat": "{{instance}}_UDP_inuse",
1450                   "refId": "C"
1451                 },
1452                 {
1453                   "expr": "node_sockstat_TCP_alloc{instance=~'$node'}",
1454                   "legendFormat": "{{instance}}_TCP_alloc",
1455                   "refId": "E"
1456                 }
1457               ],
1458               "thresholds": [],
1459               "timeFrom": null,
1460               "timeRegions": [],
1461               "timeShift": null,
1462               "title": "Network Sockstat",
1463               "tooltip": {
1464                 "shared": true,
1465                 "sort": 2,
1466                 "value_type": "individual"
1467               },
1468               "type": "graph",
1469               "xaxis": {
1470                 "buckets": null,
1471                 "mode": "time",
1472                 "name": null,
1473                 "show": true,
1474                 "values": []
1475               },
1476               "yaxes": [
1477                 {
1478                   "format": "short",
1479                   "label": null,
1480                   "logBase": 1,
1481                   "max": null,
1482                   "min": null,
1483                   "show": true
1484                 },
1485                 {
1486                   "format": "short",
1487                   "label": null,
1488                   "logBase": 1,
1489                   "max": null,
1490                   "min": null,
1491                   "show": true
1492                 }
1493               ],
1494               "yaxis": {
1495                 "align": false,
1496                 "alignLevel": null
1497               }
1498             }
1499           ],
1500           "title": "Network",
1501           "type": "row"
1502         }
1503       ],
1504       "refresh": false,
1505       "schemaVersion": 19,
1506       "style": "dark",
1507       "tags": [],
1508       "templating": {
1509         "list": [
1510           {
1511             "allValue": null,
1512             "current": {
1513               "text": "node-exporter",
1514               "value": "node-exporter"
1515             },
1516             "datasource": "Prometheus",
1517             "definition": "label_values(node_uname_info, job)",
1518             "hide": 0,
1519             "includeAll": false,
1520             "label": "JOB",
1521             "multi": false,
1522             "name": "job",
1523             "options": [],
1524             "query": "label_values(node_uname_info, job)",
1525             "refresh": 1,
1526             "regex": "",
1527             "skipUrlSync": false,
1528             "sort": 1,
1529             "tagValuesQuery": "",
1530             "tags": [],
1531             "tagsQuery": "",
1532             "type": "query",
1533             "useTags": false
1534           },
1535           {
1536             "allValue": null,
1537             "current": {
1538               "text": "All",
1539               "value": "$__all"
1540             },
1541             "datasource": "Prometheus",
1542             "definition": "label_values(node_uname_info{job=~\"$job\"}, nodename)",
1543             "hide": 0,
1544             "includeAll": true,
1545             "label": "Host",
1546             "multi": true,
1547             "name": "hostname",
1548             "options": [],
1549             "query": "label_values(node_uname_info{job=~\"$job\"}, nodename)",
1550             "refresh": 1,
1551             "regex": "",
1552             "skipUrlSync": false,
1553             "sort": 0,
1554             "tagValuesQuery": "",
1555             "tags": [],
1556             "tagsQuery": "",
1557             "type": "query",
1558             "useTags": false
1559           },
1560           {
1561             "allFormat": "glob",
1562             "allValue": null,
1563             "current": {
1564               "tags": [],
1565               "text": "All",
1566               "value": "$__all"
1567             },
1568             "datasource": "Prometheus",
1569             "definition": "label_values(node_uname_info{nodename=~\"$hostname\"},instance)",
1570             "hide": 0,
1571             "includeAll": true,
1572             "label": "IP",
1573             "multi": false,
1574             "multiFormat": "regex values",
1575             "name": "node",
1576             "options": [],
1577             "query": "label_values(node_uname_info{nodename=~\"$hostname\"},instance)",
1578             "refresh": 2,
1579             "regex": "",
1580             "skipUrlSync": false,
1581             "sort": 1,
1582             "tagValuesQuery": "",
1583             "tags": [],
1584             "tagsQuery": "",
1585             "type": "query",
1586             "useTags": false
1587           },
1588           {
1589             "allValue": null,
1590             "current": {
1591               "text": "/",
1592               "value": "/"
1593             },
1594             "datasource": "Prometheus",
1595             "definition": "",
1596             "hide": 2,
1597             "includeAll": false,
1598             "label": "",
1599             "multi": false,
1600             "name": "maxmount",
1601             "options": [],
1602             "query": "query_result(topk(1,sort_desc (max(node_filesystem_size_bytes{instance=~'$node',fstype=~\"ext4|xfs\"}) by (mountpoint))))",
1603             "refresh": 2,
1604             "regex": "/.*\\\"(.*)\\\".*/",
1605             "skipUrlSync": false,
1606             "sort": 0,
1607             "tagValuesQuery": "",
1608             "tags": [],
1609             "tagsQuery": "",
1610             "type": "query",
1611             "useTags": false
1612           },
1613           {
1614             "allFormat": "glob",
1615             "allValue": null,
1616             "current": {
1617               "isNone": true,
1618               "text": "None",
1619               "value": ""
1620             },
1621             "datasource": "Prometheus",
1622             "definition": "",
1623             "hide": 2,
1624             "includeAll": false,
1625             "multi": false,
1626             "multiFormat": "regex values",
1627             "name": "env",
1628             "options": [],
1629             "query": "label_values(node_exporter_build_info,env)",
1630             "refresh": 2,
1631             "regex": "",
1632             "skipUrlSync": false,
1633             "sort": 1,
1634             "tagValuesQuery": "",
1635             "tags": [],
1636             "tagsQuery": "",
1637             "type": "query",
1638             "useTags": false
1639           },
1640           {
1641             "allFormat": "glob",
1642             "allValue": "",
1643             "current": {
1644               "isNone": true,
1645               "text": "None",
1646               "value": ""
1647             },
1648             "datasource": "Prometheus",
1649             "definition": "label_values(node_exporter_build_info{env=~'$env'},name)",
1650             "hide": 2,
1651             "includeAll": false,
1652             "label": "名称",
1653             "multi": true,
1654             "multiFormat": "regex values",
1655             "name": "name",
1656             "options": [],
1657             "query": "label_values(node_exporter_build_info{env=~'$env'},name)",
1658             "refresh": 2,
1659             "regex": "",
1660             "skipUrlSync": false,
1661             "sort": 1,
1662             "tagValuesQuery": "/.*/",
1663             "tags": [],
1664             "tagsQuery": "",
1665             "type": "query",
1666             "useTags": false
1667           }
1668         ]
1669       },
1670       "time": {
1671         "from": "now-2d",
1672         "to": "now"
1673       },
1674       "timepicker": {
1675         "now": true,
1676         "refresh_intervals": [
1677           "5s",
1678           "10s",
1679           "30s",
1680           "1m",
1681           "5m",
1682           "15m",
1683           "30m",
1684           "1h",
1685           "2h",
1686           "1d"
1687         ],
1688         "time_options": [
1689           "5m",
1690           "15m",
1691           "1h",
1692           "6h",
1693           "12h",
1694           "24h",
1695           "2d",
1696           "7d",
1697           "30d"
1698         ]
1699       },
1700       "timezone": "browser",
1701       "title": "Hosts",
1702       "uid": "ha7fSE0Zz",
1703       "version": 1
1704     }