Integrate collectd, prometheus and grafana.
[multicloud/k8s.git] / kud / tests / vnfs / comp-app / collection / app2 / helm / prometheus-operator / templates / grafana / dashboards / nodes.yaml
1 {{- /*
2 Generated from 'nodes' from https://raw.githubusercontent.com/coreos/kube-prometheus/release-0.1/manifests/grafana-dashboardDefinitions.yaml
3 Do not change in-place! In order to change this file first read following link:
4 https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
5 */ -}}
6 {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }}
7 {{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }}
8 apiVersion: v1
9 kind: ConfigMap
10 metadata:
11   namespace: {{ template "prometheus-operator.namespace" . }}
12   name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "nodes" | trunc 63 | trimSuffix "-" }}
13   labels:
14     {{- if $.Values.grafana.sidecar.dashboards.label }}
15     {{ $.Values.grafana.sidecar.dashboards.label }}: "1"
16     {{- end }}
17     app: {{ template "prometheus-operator.name" $ }}-grafana
18 {{ include "prometheus-operator.labels" $ | indent 4 }}
19 data:
20   nodes.json: |-
21     {
22         "__inputs": [
23
24         ],
25         "__requires": [
26
27         ],
28         "annotations": {
29             "list": [
30
31             ]
32         },
33         "editable": false,
34         "gnetId": null,
35         "graphTooltip": 0,
36         "hideControls": false,
37         "id": null,
38         "links": [
39
40         ],
41         "refresh": "",
42         "rows": [
43             {
44                 "collapse": false,
45                 "collapsed": false,
46                 "panels": [
47                     {
48                         "aliasColors": {
49
50                         },
51                         "bars": false,
52                         "dashLength": 10,
53                         "dashes": false,
54                         "datasource": "$datasource",
55                         "fill": 1,
56                         "gridPos": {
57
58                         },
59                         "id": 2,
60                         "legend": {
61                             "alignAsTable": false,
62                             "avg": false,
63                             "current": false,
64                             "max": false,
65                             "min": false,
66                             "rightSide": false,
67                             "show": true,
68                             "total": false,
69                             "values": false
70                         },
71                         "lines": true,
72                         "linewidth": 1,
73                         "links": [
74
75                         ],
76                         "nullPointMode": "null",
77                         "percentage": false,
78                         "pointradius": 5,
79                         "points": false,
80                         "renderer": "flot",
81                         "repeat": null,
82                         "seriesOverrides": [
83
84                         ],
85                         "spaceLength": 10,
86                         "span": 6,
87                         "stack": false,
88                         "steppedLine": false,
89                         "targets": [
90                             {
91                                 "expr": "max(node_load1{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"})",
92                                 "format": "time_series",
93                                 "intervalFactor": 2,
94                                 "legendFormat": "load 1m",
95                                 "refId": "A"
96                             },
97                             {
98                                 "expr": "max(node_load5{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"})",
99                                 "format": "time_series",
100                                 "intervalFactor": 2,
101                                 "legendFormat": "load 5m",
102                                 "refId": "B"
103                             },
104                             {
105                                 "expr": "max(node_load15{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"})",
106                                 "format": "time_series",
107                                 "intervalFactor": 2,
108                                 "legendFormat": "load 15m",
109                                 "refId": "C"
110                             },
111                             {
112                                 "expr": "count(node_cpu_seconds_total{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\", mode=\"user\"})",
113                                 "format": "time_series",
114                                 "intervalFactor": 2,
115                                 "legendFormat": "logical cores",
116                                 "refId": "D"
117                             }
118                         ],
119                         "thresholds": [
120
121                         ],
122                         "timeFrom": null,
123                         "timeShift": null,
124                         "title": "System load",
125                         "tooltip": {
126                             "shared": false,
127                             "sort": 0,
128                             "value_type": "individual"
129                         },
130                         "type": "graph",
131                         "xaxis": {
132                             "buckets": null,
133                             "mode": "time",
134                             "name": null,
135                             "show": true,
136                             "values": [
137
138                             ]
139                         },
140                         "yaxes": [
141                             {
142                                 "format": "short",
143                                 "label": null,
144                                 "logBase": 1,
145                                 "max": null,
146                                 "min": null,
147                                 "show": true
148                             },
149                             {
150                                 "format": "short",
151                                 "label": null,
152                                 "logBase": 1,
153                                 "max": null,
154                                 "min": null,
155                                 "show": true
156                             }
157                         ]
158                     },
159                     {
160                         "aliasColors": {
161
162                         },
163                         "bars": false,
164                         "dashLength": 10,
165                         "dashes": false,
166                         "datasource": "$datasource",
167                         "fill": 1,
168                         "gridPos": {
169
170                         },
171                         "id": 3,
172                         "legend": {
173                             "alignAsTable": false,
174                             "avg": false,
175                             "current": false,
176                             "max": false,
177                             "min": false,
178                             "rightSide": false,
179                             "show": true,
180                             "total": false,
181                             "values": false
182                         },
183                         "lines": true,
184                         "linewidth": 1,
185                         "links": [
186
187                         ],
188                         "nullPointMode": "null",
189                         "percentage": false,
190                         "pointradius": 5,
191                         "points": false,
192                         "renderer": "flot",
193                         "repeat": null,
194                         "seriesOverrides": [
195
196                         ],
197                         "spaceLength": 10,
198                         "span": 6,
199                         "stack": false,
200                         "steppedLine": false,
201                         "targets": [
202                             {
203                                 "expr": "sum by (cpu) (irate(node_cpu_seconds_total{cluster=\"$cluster\", job=\"node-exporter\", mode!=\"idle\", instance=\"$instance\"}[5m]))",
204                                 "format": "time_series",
205                                 "intervalFactor": 2,
206                                 "legendFormat": "{{`{{`}}cpu{{`}}`}}",
207                                 "refId": "A"
208                             }
209                         ],
210                         "thresholds": [
211
212                         ],
213                         "timeFrom": null,
214                         "timeShift": null,
215                         "title": "Usage Per Core",
216                         "tooltip": {
217                             "shared": false,
218                             "sort": 0,
219                             "value_type": "individual"
220                         },
221                         "type": "graph",
222                         "xaxis": {
223                             "buckets": null,
224                             "mode": "time",
225                             "name": null,
226                             "show": true,
227                             "values": [
228
229                             ]
230                         },
231                         "yaxes": [
232                             {
233                                 "format": "percentunit",
234                                 "label": null,
235                                 "logBase": 1,
236                                 "max": null,
237                                 "min": null,
238                                 "show": true
239                             },
240                             {
241                                 "format": "percentunit",
242                                 "label": null,
243                                 "logBase": 1,
244                                 "max": null,
245                                 "min": null,
246                                 "show": true
247                             }
248                         ]
249                     }
250                 ],
251                 "repeat": null,
252                 "repeatIteration": null,
253                 "repeatRowId": null,
254                 "showTitle": false,
255                 "title": "Dashboard Row",
256                 "titleSize": "h6",
257                 "type": "row"
258             },
259             {
260                 "collapse": false,
261                 "collapsed": false,
262                 "panels": [
263                     {
264                         "aliasColors": {
265
266                         },
267                         "bars": false,
268                         "dashLength": 10,
269                         "dashes": false,
270                         "datasource": "$datasource",
271                         "fill": 1,
272                         "gridPos": {
273
274                         },
275                         "id": 4,
276                         "legend": {
277                             "alignAsTable": "true",
278                             "avg": "true",
279                             "current": "true",
280                             "max": "false",
281                             "min": "false",
282                             "rightSide": "true",
283                             "show": "true",
284                             "total": "false",
285                             "values": "true"
286                         },
287                         "lines": true,
288                         "linewidth": 1,
289                         "links": [
290
291                         ],
292                         "nullPointMode": "null",
293                         "percentage": false,
294                         "pointradius": 5,
295                         "points": false,
296                         "renderer": "flot",
297                         "repeat": null,
298                         "seriesOverrides": [
299
300                         ],
301                         "spaceLength": 10,
302                         "span": 9,
303                         "stack": false,
304                         "steppedLine": false,
305                         "targets": [
306                             {
307                                 "expr": "max (sum by (cpu) (irate(node_cpu_seconds_total{cluster=\"$cluster\", job=\"node-exporter\", mode!=\"idle\", instance=\"$instance\"}[2m])) ) * 100\n",
308                                 "format": "time_series",
309                                 "intervalFactor": 10,
310                                 "legendFormat": "{{`{{`}} cpu {{`}}`}}",
311                                 "refId": "A"
312                             }
313                         ],
314                         "thresholds": [
315
316                         ],
317                         "timeFrom": null,
318                         "timeShift": null,
319                         "title": "CPU Utilization",
320                         "tooltip": {
321                             "shared": false,
322                             "sort": 0,
323                             "value_type": "individual"
324                         },
325                         "type": "graph",
326                         "xaxis": {
327                             "buckets": null,
328                             "mode": "time",
329                             "name": null,
330                             "show": true,
331                             "values": [
332
333                             ]
334                         },
335                         "yaxes": [
336                             {
337                                 "format": "percent",
338                                 "label": null,
339                                 "logBase": 1,
340                                 "max": 100,
341                                 "min": 0,
342                                 "show": true
343                             },
344                             {
345                                 "format": "percent",
346                                 "label": null,
347                                 "logBase": 1,
348                                 "max": 100,
349                                 "min": 0,
350                                 "show": true
351                             }
352                         ]
353                     },
354                     {
355                         "cacheTimeout": null,
356                         "colorBackground": false,
357                         "colorValue": false,
358                         "colors": [
359                             "rgba(50, 172, 45, 0.97)",
360                             "rgba(237, 129, 40, 0.89)",
361                             "rgba(245, 54, 54, 0.9)"
362                         ],
363                         "datasource": "$datasource",
364                         "format": "percent",
365                         "gauge": {
366                             "maxValue": 100,
367                             "minValue": 0,
368                             "show": true,
369                             "thresholdLabels": false,
370                             "thresholdMarkers": true
371                         },
372                         "gridPos": {
373
374                         },
375                         "id": 5,
376                         "interval": null,
377                         "links": [
378
379                         ],
380                         "mappingType": 1,
381                         "mappingTypes": [
382                             {
383                                 "name": "value to text",
384                                 "value": 1
385                             },
386                             {
387                                 "name": "range to text",
388                                 "value": 2
389                             }
390                         ],
391                         "maxDataPoints": 100,
392                         "nullPointMode": "connected",
393                         "nullText": null,
394                         "postfix": "",
395                         "postfixFontSize": "50%",
396                         "prefix": "",
397                         "prefixFontSize": "50%",
398                         "rangeMaps": [
399                             {
400                                 "from": "null",
401                                 "text": "N/A",
402                                 "to": "null"
403                             }
404                         ],
405                         "span": 3,
406                         "sparkline": {
407                             "fillColor": "rgba(31, 118, 189, 0.18)",
408                             "full": false,
409                             "lineColor": "rgb(31, 120, 193)",
410                             "show": false
411                         },
412                         "tableColumn": "",
413                         "targets": [
414                             {
415                                 "expr": "avg(sum by (cpu) (irate(node_cpu_seconds_total{cluster=\"$cluster\", job=\"node-exporter\", mode!=\"idle\", instance=\"$instance\"}[2m]))) * 100\n",
416                                 "format": "time_series",
417                                 "intervalFactor": 2,
418                                 "legendFormat": "",
419                                 "refId": "A"
420                             }
421                         ],
422                         "thresholds": "80, 90",
423                         "title": "CPU Usage",
424                         "tooltip": {
425                             "shared": false
426                         },
427                         "type": "singlestat",
428                         "valueFontSize": "80%",
429                         "valueMaps": [
430                             {
431                                 "op": "=",
432                                 "text": "N/A",
433                                 "value": "null"
434                             }
435                         ],
436                         "valueName": "current"
437                     }
438                 ],
439                 "repeat": null,
440                 "repeatIteration": null,
441                 "repeatRowId": null,
442                 "showTitle": false,
443                 "title": "Dashboard Row",
444                 "titleSize": "h6",
445                 "type": "row"
446             },
447             {
448                 "collapse": false,
449                 "collapsed": false,
450                 "panels": [
451                     {
452                         "aliasColors": {
453
454                         },
455                         "bars": false,
456                         "dashLength": 10,
457                         "dashes": false,
458                         "datasource": "$datasource",
459                         "fill": 1,
460                         "gridPos": {
461
462                         },
463                         "id": 6,
464                         "legend": {
465                             "alignAsTable": false,
466                             "avg": false,
467                             "current": false,
468                             "max": false,
469                             "min": false,
470                             "rightSide": false,
471                             "show": true,
472                             "total": false,
473                             "values": false
474                         },
475                         "lines": true,
476                         "linewidth": 1,
477                         "links": [
478
479                         ],
480                         "nullPointMode": "null",
481                         "percentage": false,
482                         "pointradius": 5,
483                         "points": false,
484                         "renderer": "flot",
485                         "repeat": null,
486                         "seriesOverrides": [
487
488                         ],
489                         "spaceLength": 10,
490                         "span": 9,
491                         "stack": false,
492                         "steppedLine": false,
493                         "targets": [
494                             {
495                                 "expr": "max(\n  node_memory_MemTotal_bytes{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n  - node_memory_MemFree_bytes{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n  - node_memory_Buffers_bytes{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n  - node_memory_Cached_bytes{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n)\n",
496                                 "format": "time_series",
497                                 "intervalFactor": 2,
498                                 "legendFormat": "memory used",
499                                 "refId": "A"
500                             },
501                             {
502                                 "expr": "max(node_memory_Buffers_bytes{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"})",
503                                 "format": "time_series",
504                                 "intervalFactor": 2,
505                                 "legendFormat": "memory buffers",
506                                 "refId": "B"
507                             },
508                             {
509                                 "expr": "max(node_memory_Cached_bytes{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"})",
510                                 "format": "time_series",
511                                 "intervalFactor": 2,
512                                 "legendFormat": "memory cached",
513                                 "refId": "C"
514                             },
515                             {
516                                 "expr": "max(node_memory_MemFree_bytes{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"})",
517                                 "format": "time_series",
518                                 "intervalFactor": 2,
519                                 "legendFormat": "memory free",
520                                 "refId": "D"
521                             }
522                         ],
523                         "thresholds": [
524
525                         ],
526                         "timeFrom": null,
527                         "timeShift": null,
528                         "title": "Memory Usage",
529                         "tooltip": {
530                             "shared": false,
531                             "sort": 0,
532                             "value_type": "individual"
533                         },
534                         "type": "graph",
535                         "xaxis": {
536                             "buckets": null,
537                             "mode": "time",
538                             "name": null,
539                             "show": true,
540                             "values": [
541
542                             ]
543                         },
544                         "yaxes": [
545                             {
546                                 "format": "bytes",
547                                 "label": null,
548                                 "logBase": 1,
549                                 "max": null,
550                                 "min": null,
551                                 "show": true
552                             },
553                             {
554                                 "format": "bytes",
555                                 "label": null,
556                                 "logBase": 1,
557                                 "max": null,
558                                 "min": null,
559                                 "show": true
560                             }
561                         ]
562                     },
563                     {
564                         "cacheTimeout": null,
565                         "colorBackground": false,
566                         "colorValue": false,
567                         "colors": [
568                             "rgba(50, 172, 45, 0.97)",
569                             "rgba(237, 129, 40, 0.89)",
570                             "rgba(245, 54, 54, 0.9)"
571                         ],
572                         "datasource": "$datasource",
573                         "format": "percent",
574                         "gauge": {
575                             "maxValue": 100,
576                             "minValue": 0,
577                             "show": true,
578                             "thresholdLabels": false,
579                             "thresholdMarkers": true
580                         },
581                         "gridPos": {
582
583                         },
584                         "id": 7,
585                         "interval": null,
586                         "links": [
587
588                         ],
589                         "mappingType": 1,
590                         "mappingTypes": [
591                             {
592                                 "name": "value to text",
593                                 "value": 1
594                             },
595                             {
596                                 "name": "range to text",
597                                 "value": 2
598                             }
599                         ],
600                         "maxDataPoints": 100,
601                         "nullPointMode": "connected",
602                         "nullText": null,
603                         "postfix": "",
604                         "postfixFontSize": "50%",
605                         "prefix": "",
606                         "prefixFontSize": "50%",
607                         "rangeMaps": [
608                             {
609                                 "from": "null",
610                                 "text": "N/A",
611                                 "to": "null"
612                             }
613                         ],
614                         "span": 3,
615                         "sparkline": {
616                             "fillColor": "rgba(31, 118, 189, 0.18)",
617                             "full": false,
618                             "lineColor": "rgb(31, 120, 193)",
619                             "show": false
620                         },
621                         "tableColumn": "",
622                         "targets": [
623                             {
624                                 "expr": "max(\n  (\n    (\n      node_memory_MemTotal_bytes{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n    - node_memory_MemFree_bytes{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n    - node_memory_Buffers_bytes{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n    - node_memory_Cached_bytes{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n    )\n    / node_memory_MemTotal_bytes{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n  ) * 100)\n",
625                                 "format": "time_series",
626                                 "intervalFactor": 2,
627                                 "legendFormat": "",
628                                 "refId": "A"
629                             }
630                         ],
631                         "thresholds": "80, 90",
632                         "title": "Memory Usage",
633                         "tooltip": {
634                             "shared": false
635                         },
636                         "type": "singlestat",
637                         "valueFontSize": "80%",
638                         "valueMaps": [
639                             {
640                                 "op": "=",
641                                 "text": "N/A",
642                                 "value": "null"
643                             }
644                         ],
645                         "valueName": "current"
646                     }
647                 ],
648                 "repeat": null,
649                 "repeatIteration": null,
650                 "repeatRowId": null,
651                 "showTitle": false,
652                 "title": "Dashboard Row",
653                 "titleSize": "h6",
654                 "type": "row"
655             },
656             {
657                 "collapse": false,
658                 "collapsed": false,
659                 "panels": [
660                     {
661                         "aliasColors": {
662
663                         },
664                         "bars": false,
665                         "dashLength": 10,
666                         "dashes": false,
667                         "datasource": "$datasource",
668                         "fill": 1,
669                         "gridPos": {
670
671                         },
672                         "id": 8,
673                         "legend": {
674                             "alignAsTable": false,
675                             "avg": false,
676                             "current": false,
677                             "max": false,
678                             "min": false,
679                             "rightSide": false,
680                             "show": true,
681                             "total": false,
682                             "values": false
683                         },
684                         "lines": true,
685                         "linewidth": 1,
686                         "links": [
687
688                         ],
689                         "nullPointMode": "null",
690                         "percentage": false,
691                         "pointradius": 5,
692                         "points": false,
693                         "renderer": "flot",
694                         "repeat": null,
695                         "seriesOverrides": [
696                             {
697                                 "alias": "read",
698                                 "yaxis": 1
699                             },
700                             {
701                                 "alias": "io time",
702                                 "yaxis": 2
703                             }
704                         ],
705                         "spaceLength": 10,
706                         "span": 6,
707                         "stack": false,
708                         "steppedLine": false,
709                         "targets": [
710                             {
711                                 "expr": "max(rate(node_disk_read_bytes_total{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}[2m]))",
712                                 "format": "time_series",
713                                 "intervalFactor": 2,
714                                 "legendFormat": "read",
715                                 "refId": "A"
716                             },
717                             {
718                                 "expr": "max(rate(node_disk_written_bytes_total{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}[2m]))",
719                                 "format": "time_series",
720                                 "intervalFactor": 2,
721                                 "legendFormat": "written",
722                                 "refId": "B"
723                             },
724                             {
725                                 "expr": "max(rate(node_disk_io_time_seconds_total{cluster=\"$cluster\", job=\"node-exporter\",  instance=\"$instance\"}[2m]))",
726                                 "format": "time_series",
727                                 "intervalFactor": 2,
728                                 "legendFormat": "io time",
729                                 "refId": "C"
730                             }
731                         ],
732                         "thresholds": [
733
734                         ],
735                         "timeFrom": null,
736                         "timeShift": null,
737                         "title": "Disk I/O",
738                         "tooltip": {
739                             "shared": false,
740                             "sort": 0,
741                             "value_type": "individual"
742                         },
743                         "type": "graph",
744                         "xaxis": {
745                             "buckets": null,
746                             "mode": "time",
747                             "name": null,
748                             "show": true,
749                             "values": [
750
751                             ]
752                         },
753                         "yaxes": [
754                             {
755                                 "format": "bytes",
756                                 "label": null,
757                                 "logBase": 1,
758                                 "max": null,
759                                 "min": null,
760                                 "show": true
761                             },
762                             {
763                                 "format": "ms",
764                                 "label": null,
765                                 "logBase": 1,
766                                 "max": null,
767                                 "min": null,
768                                 "show": true
769                             }
770                         ]
771                     },
772                     {
773                         "aliasColors": {
774
775                         },
776                         "bars": false,
777                         "dashLength": 10,
778                         "dashes": false,
779                         "datasource": "$datasource",
780                         "fill": 1,
781                         "gridPos": {
782
783                         },
784                         "id": 9,
785                         "legend": {
786                             "alignAsTable": false,
787                             "avg": false,
788                             "current": false,
789                             "max": false,
790                             "min": false,
791                             "rightSide": false,
792                             "show": true,
793                             "total": false,
794                             "values": false
795                         },
796                         "lines": true,
797                         "linewidth": 1,
798                         "links": [
799
800                         ],
801                         "nullPointMode": "null",
802                         "percentage": false,
803                         "pointradius": 5,
804                         "points": false,
805                         "renderer": "flot",
806                         "repeat": null,
807                         "seriesOverrides": [
808
809                         ],
810                         "spaceLength": 10,
811                         "span": 6,
812                         "stack": false,
813                         "steppedLine": false,
814                         "targets": [
815                             {
816                                 "expr": "max by (namespace, pod, device) ((node_filesystem_size_bytes{cluster=\"$cluster\", fstype=~\"ext[234]|btrfs|xfs|zfs\", instance=\"$instance\", job=\"node-exporter\"} - node_filesystem_avail_bytes{cluster=\"$cluster\", fstype=~\"ext[234]|btrfs|xfs|zfs\", instance=\"$instance\", job=\"node-exporter\"}) / node_filesystem_size_bytes{cluster=\"$cluster\", fstype=~\"ext[234]|btrfs|xfs|zfs\", instance=\"$instance\", job=\"node-exporter\"})",
817                                 "format": "time_series",
818                                 "intervalFactor": 2,
819                                 "legendFormat": "disk used",
820                                 "refId": "A"
821                             },
822                             {
823                                 "expr": "max by (namespace, pod, device) (node_filesystem_avail_bytes{cluster=\"$cluster\", fstype=~\"ext[234]|btrfs|xfs|zfs\", instance=\"$instance\", job=\"node-exporter\"} / node_filesystem_size_bytes{cluster=\"$cluster\", fstype=~\"ext[234]|btrfs|xfs|zfs\", instance=\"$instance\", job=\"node-exporter\"})",
824                                 "format": "time_series",
825                                 "intervalFactor": 2,
826                                 "legendFormat": "disk free",
827                                 "refId": "B"
828                             }
829                         ],
830                         "thresholds": [
831
832                         ],
833                         "timeFrom": null,
834                         "timeShift": null,
835                         "title": "Disk Space Usage",
836                         "tooltip": {
837                             "shared": false,
838                             "sort": 0,
839                             "value_type": "individual"
840                         },
841                         "type": "graph",
842                         "xaxis": {
843                             "buckets": null,
844                             "mode": "time",
845                             "name": null,
846                             "show": true,
847                             "values": [
848
849                             ]
850                         },
851                         "yaxes": [
852                             {
853                                 "format": "percentunit",
854                                 "label": null,
855                                 "logBase": 1,
856                                 "max": null,
857                                 "min": null,
858                                 "show": true
859                             },
860                             {
861                                 "format": "percentunit",
862                                 "label": null,
863                                 "logBase": 1,
864                                 "max": null,
865                                 "min": null,
866                                 "show": true
867                             }
868                         ]
869                     }
870                 ],
871                 "repeat": null,
872                 "repeatIteration": null,
873                 "repeatRowId": null,
874                 "showTitle": false,
875                 "title": "Dashboard Row",
876                 "titleSize": "h6",
877                 "type": "row"
878             },
879             {
880                 "collapse": false,
881                 "collapsed": false,
882                 "panels": [
883                     {
884                         "aliasColors": {
885
886                         },
887                         "bars": false,
888                         "dashLength": 10,
889                         "dashes": false,
890                         "datasource": "$datasource",
891                         "fill": 1,
892                         "gridPos": {
893
894                         },
895                         "id": 10,
896                         "legend": {
897                             "alignAsTable": false,
898                             "avg": false,
899                             "current": false,
900                             "max": false,
901                             "min": false,
902                             "rightSide": false,
903                             "show": true,
904                             "total": false,
905                             "values": false
906                         },
907                         "lines": true,
908                         "linewidth": 1,
909                         "links": [
910
911                         ],
912                         "nullPointMode": "null",
913                         "percentage": false,
914                         "pointradius": 5,
915                         "points": false,
916                         "renderer": "flot",
917                         "repeat": null,
918                         "seriesOverrides": [
919
920                         ],
921                         "spaceLength": 10,
922                         "span": 6,
923                         "stack": false,
924                         "steppedLine": false,
925                         "targets": [
926                             {
927                                 "expr": "max(rate(node_network_receive_bytes_total{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\", device!~\"lo\"}[5m]))",
928                                 "format": "time_series",
929                                 "intervalFactor": 2,
930                                 "legendFormat": "{{`{{`}}device{{`}}`}}",
931                                 "refId": "A"
932                             }
933                         ],
934                         "thresholds": [
935
936                         ],
937                         "timeFrom": null,
938                         "timeShift": null,
939                         "title": "Network Received",
940                         "tooltip": {
941                             "shared": false,
942                             "sort": 0,
943                             "value_type": "individual"
944                         },
945                         "type": "graph",
946                         "xaxis": {
947                             "buckets": null,
948                             "mode": "time",
949                             "name": null,
950                             "show": true,
951                             "values": [
952
953                             ]
954                         },
955                         "yaxes": [
956                             {
957                                 "format": "bytes",
958                                 "label": null,
959                                 "logBase": 1,
960                                 "max": null,
961                                 "min": null,
962                                 "show": true
963                             },
964                             {
965                                 "format": "bytes",
966                                 "label": null,
967                                 "logBase": 1,
968                                 "max": null,
969                                 "min": null,
970                                 "show": true
971                             }
972                         ]
973                     },
974                     {
975                         "aliasColors": {
976
977                         },
978                         "bars": false,
979                         "dashLength": 10,
980                         "dashes": false,
981                         "datasource": "$datasource",
982                         "fill": 1,
983                         "gridPos": {
984
985                         },
986                         "id": 11,
987                         "legend": {
988                             "alignAsTable": false,
989                             "avg": false,
990                             "current": false,
991                             "max": false,
992                             "min": false,
993                             "rightSide": false,
994                             "show": true,
995                             "total": false,
996                             "values": false
997                         },
998                         "lines": true,
999                         "linewidth": 1,
1000                         "links": [
1001
1002                         ],
1003                         "nullPointMode": "null",
1004                         "percentage": false,
1005                         "pointradius": 5,
1006                         "points": false,
1007                         "renderer": "flot",
1008                         "repeat": null,
1009                         "seriesOverrides": [
1010
1011                         ],
1012                         "spaceLength": 10,
1013                         "span": 6,
1014                         "stack": false,
1015                         "steppedLine": false,
1016                         "targets": [
1017                             {
1018                                 "expr": "max(rate(node_network_transmit_bytes_total{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\", device!~\"lo\"}[5m]))",
1019                                 "format": "time_series",
1020                                 "intervalFactor": 2,
1021                                 "legendFormat": "{{`{{`}}device{{`}}`}}",
1022                                 "refId": "A"
1023                             }
1024                         ],
1025                         "thresholds": [
1026
1027                         ],
1028                         "timeFrom": null,
1029                         "timeShift": null,
1030                         "title": "Network Transmitted",
1031                         "tooltip": {
1032                             "shared": false,
1033                             "sort": 0,
1034                             "value_type": "individual"
1035                         },
1036                         "type": "graph",
1037                         "xaxis": {
1038                             "buckets": null,
1039                             "mode": "time",
1040                             "name": null,
1041                             "show": true,
1042                             "values": [
1043
1044                             ]
1045                         },
1046                         "yaxes": [
1047                             {
1048                                 "format": "bytes",
1049                                 "label": null,
1050                                 "logBase": 1,
1051                                 "max": null,
1052                                 "min": null,
1053                                 "show": true
1054                             },
1055                             {
1056                                 "format": "bytes",
1057                                 "label": null,
1058                                 "logBase": 1,
1059                                 "max": null,
1060                                 "min": null,
1061                                 "show": true
1062                             }
1063                         ]
1064                     }
1065                 ],
1066                 "repeat": null,
1067                 "repeatIteration": null,
1068                 "repeatRowId": null,
1069                 "showTitle": false,
1070                 "title": "Dashboard Row",
1071                 "titleSize": "h6",
1072                 "type": "row"
1073             },
1074             {
1075                 "collapse": false,
1076                 "collapsed": false,
1077                 "panels": [
1078                     {
1079                         "aliasColors": {
1080
1081                         },
1082                         "bars": false,
1083                         "dashLength": 10,
1084                         "dashes": false,
1085                         "datasource": "$datasource",
1086                         "fill": 1,
1087                         "gridPos": {
1088
1089                         },
1090                         "id": 12,
1091                         "legend": {
1092                             "alignAsTable": false,
1093                             "avg": false,
1094                             "current": false,
1095                             "max": false,
1096                             "min": false,
1097                             "rightSide": false,
1098                             "show": true,
1099                             "total": false,
1100                             "values": false
1101                         },
1102                         "lines": true,
1103                         "linewidth": 1,
1104                         "links": [
1105
1106                         ],
1107                         "nullPointMode": "null",
1108                         "percentage": false,
1109                         "pointradius": 5,
1110                         "points": false,
1111                         "renderer": "flot",
1112                         "repeat": null,
1113                         "seriesOverrides": [
1114
1115                         ],
1116                         "spaceLength": 10,
1117                         "span": 9,
1118                         "stack": false,
1119                         "steppedLine": false,
1120                         "targets": [
1121                             {
1122                                 "expr": "max(\n  node_filesystem_files{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n  - node_filesystem_files_free{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n)\n",
1123                                 "format": "time_series",
1124                                 "intervalFactor": 2,
1125                                 "legendFormat": "inodes used",
1126                                 "refId": "A"
1127                             },
1128                             {
1129                                 "expr": "max(node_filesystem_files_free{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"})",
1130                                 "format": "time_series",
1131                                 "intervalFactor": 2,
1132                                 "legendFormat": "inodes free",
1133                                 "refId": "B"
1134                             }
1135                         ],
1136                         "thresholds": [
1137
1138                         ],
1139                         "timeFrom": null,
1140                         "timeShift": null,
1141                         "title": "Inodes Usage",
1142                         "tooltip": {
1143                             "shared": false,
1144                             "sort": 0,
1145                             "value_type": "individual"
1146                         },
1147                         "type": "graph",
1148                         "xaxis": {
1149                             "buckets": null,
1150                             "mode": "time",
1151                             "name": null,
1152                             "show": true,
1153                             "values": [
1154
1155                             ]
1156                         },
1157                         "yaxes": [
1158                             {
1159                                 "format": "short",
1160                                 "label": null,
1161                                 "logBase": 1,
1162                                 "max": null,
1163                                 "min": null,
1164                                 "show": true
1165                             },
1166                             {
1167                                 "format": "short",
1168                                 "label": null,
1169                                 "logBase": 1,
1170                                 "max": null,
1171                                 "min": null,
1172                                 "show": true
1173                             }
1174                         ]
1175                     },
1176                     {
1177                         "cacheTimeout": null,
1178                         "colorBackground": false,
1179                         "colorValue": false,
1180                         "colors": [
1181                             "rgba(50, 172, 45, 0.97)",
1182                             "rgba(237, 129, 40, 0.89)",
1183                             "rgba(245, 54, 54, 0.9)"
1184                         ],
1185                         "datasource": "$datasource",
1186                         "format": "percent",
1187                         "gauge": {
1188                             "maxValue": 100,
1189                             "minValue": 0,
1190                             "show": true,
1191                             "thresholdLabels": false,
1192                             "thresholdMarkers": true
1193                         },
1194                         "gridPos": {
1195
1196                         },
1197                         "id": 13,
1198                         "interval": null,
1199                         "links": [
1200
1201                         ],
1202                         "mappingType": 1,
1203                         "mappingTypes": [
1204                             {
1205                                 "name": "value to text",
1206                                 "value": 1
1207                             },
1208                             {
1209                                 "name": "range to text",
1210                                 "value": 2
1211                             }
1212                         ],
1213                         "maxDataPoints": 100,
1214                         "nullPointMode": "connected",
1215                         "nullText": null,
1216                         "postfix": "",
1217                         "postfixFontSize": "50%",
1218                         "prefix": "",
1219                         "prefixFontSize": "50%",
1220                         "rangeMaps": [
1221                             {
1222                                 "from": "null",
1223                                 "text": "N/A",
1224                                 "to": "null"
1225                             }
1226                         ],
1227                         "span": 3,
1228                         "sparkline": {
1229                             "fillColor": "rgba(31, 118, 189, 0.18)",
1230                             "full": false,
1231                             "lineColor": "rgb(31, 120, 193)",
1232                             "show": false
1233                         },
1234                         "tableColumn": "",
1235                         "targets": [
1236                             {
1237                                 "expr": "max(\n  (\n    (\n      node_filesystem_files{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n    - node_filesystem_files_free{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n    )\n    / node_filesystem_files{cluster=\"$cluster\", job=\"node-exporter\", instance=\"$instance\"}\n  ) * 100)\n",
1238                                 "format": "time_series",
1239                                 "intervalFactor": 2,
1240                                 "legendFormat": "",
1241                                 "refId": "A"
1242                             }
1243                         ],
1244                         "thresholds": "80, 90",
1245                         "title": "Inodes Usage",
1246                         "tooltip": {
1247                             "shared": false
1248                         },
1249                         "type": "singlestat",
1250                         "valueFontSize": "80%",
1251                         "valueMaps": [
1252                             {
1253                                 "op": "=",
1254                                 "text": "N/A",
1255                                 "value": "null"
1256                             }
1257                         ],
1258                         "valueName": "current"
1259                     }
1260                 ],
1261                 "repeat": null,
1262                 "repeatIteration": null,
1263                 "repeatRowId": null,
1264                 "showTitle": false,
1265                 "title": "Dashboard Row",
1266                 "titleSize": "h6",
1267                 "type": "row"
1268             }
1269         ],
1270         "schemaVersion": 14,
1271         "style": "dark",
1272         "tags": [
1273             "kubernetes-mixin"
1274         ],
1275         "templating": {
1276             "list": [
1277                 {
1278                     "current": {
1279                         "text": "Prometheus",
1280                         "value": "Prometheus"
1281                     },
1282                     "hide": 0,
1283                     "label": null,
1284                     "name": "datasource",
1285                     "options": [
1286
1287                     ],
1288                     "query": "prometheus",
1289                     "refresh": 1,
1290                     "regex": "",
1291                     "type": "datasource"
1292                 },
1293                 {
1294                     "allValue": null,
1295                     "current": {
1296
1297                     },
1298                     "datasource": "$datasource",
1299                     "hide": 2,
1300                     "includeAll": false,
1301                     "label": "cluster",
1302                     "multi": false,
1303                     "name": "cluster",
1304                     "options": [
1305
1306                     ],
1307                     "query": "label_values(kube_pod_info, cluster)",
1308                     "refresh": 2,
1309                     "regex": "",
1310                     "sort": 0,
1311                     "tagValuesQuery": "",
1312                     "tags": [
1313
1314                     ],
1315                     "tagsQuery": "",
1316                     "type": "query",
1317                     "useTags": false
1318                 },
1319                 {
1320                     "allValue": null,
1321                     "current": {
1322
1323                     },
1324                     "datasource": "$datasource",
1325                     "hide": 0,
1326                     "includeAll": false,
1327                     "label": null,
1328                     "multi": false,
1329                     "name": "instance",
1330                     "options": [
1331
1332                     ],
1333                     "query": "label_values(node_boot_time_seconds{cluster=\"$cluster\", job=\"node-exporter\"}, instance)",
1334                     "refresh": 2,
1335                     "regex": "",
1336                     "sort": 0,
1337                     "tagValuesQuery": "",
1338                     "tags": [
1339
1340                     ],
1341                     "tagsQuery": "",
1342                     "type": "query",
1343                     "useTags": false
1344                 }
1345             ]
1346         },
1347         "time": {
1348             "from": "now-1h",
1349             "to": "now"
1350         },
1351         "timepicker": {
1352             "refresh_intervals": [
1353                 "5s",
1354                 "10s",
1355                 "30s",
1356                 "1m",
1357                 "5m",
1358                 "15m",
1359                 "30m",
1360                 "1h",
1361                 "2h",
1362                 "1d"
1363             ],
1364             "time_options": [
1365                 "5m",
1366                 "15m",
1367                 "1h",
1368                 "6h",
1369                 "12h",
1370                 "24h",
1371                 "2d",
1372                 "7d",
1373                 "30d"
1374             ]
1375         },
1376         "timezone": "",
1377         "title": "Kubernetes / Nodes",
1378         "uid": "fa49a4706d07a042595b664c87fb33ea",
1379         "version": 0
1380     }
1381 {{- end }}