Fix spacing issues in YAML files in vnfs
[demo.git] / vnfs / DAaaS / deploy / operator / charts / prometheus-operator / templates / grafana / dashboards / k8s-cluster-rsrc-use.yaml
1 # Generated from 'k8s-cluster-rsrc-use' from https://raw.githubusercontent.com/coreos/prometheus-operator/master/contrib/kube-prometheus/manifests/grafana-dashboardDefinitions.yaml
2 # Do not change in-place! In order to change this file first read following link:
3 # https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
4 {{- if and .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }}
5 apiVersion: v1
6 kind: ConfigMap
7 metadata:
8   name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-cluster-rsrc-use" | trunc 63 | trimSuffix "-" }}
9   labels:
10     {{- if $.Values.grafana.sidecar.dashboards.label }}
11     {{ $.Values.grafana.sidecar.dashboards.label }}: "1"
12     {{- end }}
13     app: {{ template "prometheus-operator.name" $ }}-grafana
14 {{ include "prometheus-operator.labels" $ | indent 4 }}
15 data:
16   k8s-cluster-rsrc-use.json: |-
17     {
18         "annotations": {
19             "list": [
20
21             ]
22         },
23         "editable": true,
24         "gnetId": null,
25         "graphTooltip": 0,
26         "hideControls": false,
27         "links": [
28
29         ],
30         "refresh": "10s",
31         "rows": [
32             {
33                 "collapse": false,
34                 "height": "250px",
35                 "panels": [
36                     {
37                         "aliasColors": {
38
39                         },
40                         "bars": false,
41                         "dashLength": 10,
42                         "dashes": false,
43                         "datasource": "$datasource",
44                         "fill": 10,
45                         "id": 1,
46                         "legend": {
47                             "avg": false,
48                             "current": false,
49                             "max": false,
50                             "min": false,
51                             "show": true,
52                             "total": false,
53                             "values": false
54                         },
55                         "lines": true,
56                         "linewidth": 0,
57                         "links": [
58
59                         ],
60                         "nullPointMode": "null as zero",
61                         "percentage": false,
62                         "pointradius": 5,
63                         "points": false,
64                         "renderer": "flot",
65                         "seriesOverrides": [
66
67                         ],
68                         "spaceLength": 10,
69                         "span": 6,
70                         "stack": true,
71                         "steppedLine": false,
72                         "targets": [
73                             {
74                                 "expr": "node:cluster_cpu_utilisation:ratio",
75                                 "format": "time_series",
76                                 "intervalFactor": 2,
77                                 "legendFormat": "{{`{{node}}`}}",
78                                 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
79                                 "step": 10
80                             }
81                         ],
82                         "thresholds": [
83
84                         ],
85                         "timeFrom": null,
86                         "timeShift": null,
87                         "title": "CPU Utilisation",
88                         "tooltip": {
89                             "shared": true,
90                             "sort": 0,
91                             "value_type": "individual"
92                         },
93                         "type": "graph",
94                         "xaxis": {
95                             "buckets": null,
96                             "mode": "time",
97                             "name": null,
98                             "show": true,
99                             "values": [
100
101                             ]
102                         },
103                         "yaxes": [
104                             {
105                                 "format": "percentunit",
106                                 "label": null,
107                                 "logBase": 1,
108                                 "max": 1,
109                                 "min": 0,
110                                 "show": true
111                             },
112                             {
113                                 "format": "short",
114                                 "label": null,
115                                 "logBase": 1,
116                                 "max": null,
117                                 "min": null,
118                                 "show": false
119                             }
120                         ]
121                     },
122                     {
123                         "aliasColors": {
124
125                         },
126                         "bars": false,
127                         "dashLength": 10,
128                         "dashes": false,
129                         "datasource": "$datasource",
130                         "fill": 10,
131                         "id": 2,
132                         "legend": {
133                             "avg": false,
134                             "current": false,
135                             "max": false,
136                             "min": false,
137                             "show": true,
138                             "total": false,
139                             "values": false
140                         },
141                         "lines": true,
142                         "linewidth": 0,
143                         "links": [
144
145                         ],
146                         "nullPointMode": "null as zero",
147                         "percentage": false,
148                         "pointradius": 5,
149                         "points": false,
150                         "renderer": "flot",
151                         "seriesOverrides": [
152
153                         ],
154                         "spaceLength": 10,
155                         "span": 6,
156                         "stack": true,
157                         "steppedLine": false,
158                         "targets": [
159                             {
160                                 "expr": "node:node_cpu_saturation_load1: / scalar(sum(min(kube_pod_info) by (node)))",
161                                 "format": "time_series",
162                                 "intervalFactor": 2,
163                                 "legendFormat": "{{`{{node}}`}}",
164                                 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
165                                 "step": 10
166                             }
167                         ],
168                         "thresholds": [
169
170                         ],
171                         "timeFrom": null,
172                         "timeShift": null,
173                         "title": "CPU Saturation (Load1)",
174                         "tooltip": {
175                             "shared": true,
176                             "sort": 0,
177                             "value_type": "individual"
178                         },
179                         "type": "graph",
180                         "xaxis": {
181                             "buckets": null,
182                             "mode": "time",
183                             "name": null,
184                             "show": true,
185                             "values": [
186
187                             ]
188                         },
189                         "yaxes": [
190                             {
191                                 "format": "percentunit",
192                                 "label": null,
193                                 "logBase": 1,
194                                 "max": 1,
195                                 "min": 0,
196                                 "show": true
197                             },
198                             {
199                                 "format": "short",
200                                 "label": null,
201                                 "logBase": 1,
202                                 "max": null,
203                                 "min": null,
204                                 "show": false
205                             }
206                         ]
207                     }
208                 ],
209                 "repeat": null,
210                 "repeatIteration": null,
211                 "repeatRowId": null,
212                 "showTitle": true,
213                 "title": "CPU",
214                 "titleSize": "h6"
215             },
216             {
217                 "collapse": false,
218                 "height": "250px",
219                 "panels": [
220                     {
221                         "aliasColors": {
222
223                         },
224                         "bars": false,
225                         "dashLength": 10,
226                         "dashes": false,
227                         "datasource": "$datasource",
228                         "fill": 10,
229                         "id": 3,
230                         "legend": {
231                             "avg": false,
232                             "current": false,
233                             "max": false,
234                             "min": false,
235                             "show": true,
236                             "total": false,
237                             "values": false
238                         },
239                         "lines": true,
240                         "linewidth": 0,
241                         "links": [
242
243                         ],
244                         "nullPointMode": "null as zero",
245                         "percentage": false,
246                         "pointradius": 5,
247                         "points": false,
248                         "renderer": "flot",
249                         "seriesOverrides": [
250
251                         ],
252                         "spaceLength": 10,
253                         "span": 6,
254                         "stack": true,
255                         "steppedLine": false,
256                         "targets": [
257                             {
258                                 "expr": "node:cluster_memory_utilisation:ratio",
259                                 "format": "time_series",
260                                 "intervalFactor": 2,
261                                 "legendFormat": "{{`{{node}}`}}",
262                                 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
263                                 "step": 10
264                             }
265                         ],
266                         "thresholds": [
267
268                         ],
269                         "timeFrom": null,
270                         "timeShift": null,
271                         "title": "Memory Utilisation",
272                         "tooltip": {
273                             "shared": true,
274                             "sort": 0,
275                             "value_type": "individual"
276                         },
277                         "type": "graph",
278                         "xaxis": {
279                             "buckets": null,
280                             "mode": "time",
281                             "name": null,
282                             "show": true,
283                             "values": [
284
285                             ]
286                         },
287                         "yaxes": [
288                             {
289                                 "format": "percentunit",
290                                 "label": null,
291                                 "logBase": 1,
292                                 "max": 1,
293                                 "min": 0,
294                                 "show": true
295                             },
296                             {
297                                 "format": "short",
298                                 "label": null,
299                                 "logBase": 1,
300                                 "max": null,
301                                 "min": null,
302                                 "show": false
303                             }
304                         ]
305                     },
306                     {
307                         "aliasColors": {
308
309                         },
310                         "bars": false,
311                         "dashLength": 10,
312                         "dashes": false,
313                         "datasource": "$datasource",
314                         "fill": 10,
315                         "id": 4,
316                         "legend": {
317                             "avg": false,
318                             "current": false,
319                             "max": false,
320                             "min": false,
321                             "show": true,
322                             "total": false,
323                             "values": false
324                         },
325                         "lines": true,
326                         "linewidth": 0,
327                         "links": [
328
329                         ],
330                         "nullPointMode": "null as zero",
331                         "percentage": false,
332                         "pointradius": 5,
333                         "points": false,
334                         "renderer": "flot",
335                         "seriesOverrides": [
336
337                         ],
338                         "spaceLength": 10,
339                         "span": 6,
340                         "stack": true,
341                         "steppedLine": false,
342                         "targets": [
343                             {
344                                 "expr": "node:node_memory_swap_io_bytes:sum_rate",
345                                 "format": "time_series",
346                                 "intervalFactor": 2,
347                                 "legendFormat": "{{`{{node}}`}}",
348                                 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
349                                 "step": 10
350                             }
351                         ],
352                         "thresholds": [
353
354                         ],
355                         "timeFrom": null,
356                         "timeShift": null,
357                         "title": "Memory Saturation (Swap I/O)",
358                         "tooltip": {
359                             "shared": true,
360                             "sort": 0,
361                             "value_type": "individual"
362                         },
363                         "type": "graph",
364                         "xaxis": {
365                             "buckets": null,
366                             "mode": "time",
367                             "name": null,
368                             "show": true,
369                             "values": [
370
371                             ]
372                         },
373                         "yaxes": [
374                             {
375                                 "format": "Bps",
376                                 "label": null,
377                                 "logBase": 1,
378                                 "max": null,
379                                 "min": 0,
380                                 "show": true
381                             },
382                             {
383                                 "format": "short",
384                                 "label": null,
385                                 "logBase": 1,
386                                 "max": null,
387                                 "min": null,
388                                 "show": false
389                             }
390                         ]
391                     }
392                 ],
393                 "repeat": null,
394                 "repeatIteration": null,
395                 "repeatRowId": null,
396                 "showTitle": true,
397                 "title": "Memory",
398                 "titleSize": "h6"
399             },
400             {
401                 "collapse": false,
402                 "height": "250px",
403                 "panels": [
404                     {
405                         "aliasColors": {
406
407                         },
408                         "bars": false,
409                         "dashLength": 10,
410                         "dashes": false,
411                         "datasource": "$datasource",
412                         "fill": 10,
413                         "id": 5,
414                         "legend": {
415                             "avg": false,
416                             "current": false,
417                             "max": false,
418                             "min": false,
419                             "show": true,
420                             "total": false,
421                             "values": false
422                         },
423                         "lines": true,
424                         "linewidth": 0,
425                         "links": [
426
427                         ],
428                         "nullPointMode": "null as zero",
429                         "percentage": false,
430                         "pointradius": 5,
431                         "points": false,
432                         "renderer": "flot",
433                         "seriesOverrides": [
434
435                         ],
436                         "spaceLength": 10,
437                         "span": 6,
438                         "stack": true,
439                         "steppedLine": false,
440                         "targets": [
441                             {
442                                 "expr": "node:node_disk_utilisation:avg_irate / scalar(:kube_pod_info_node_count:)",
443                                 "format": "time_series",
444                                 "intervalFactor": 2,
445                                 "legendFormat": "{{`{{node}}`}}",
446                                 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
447                                 "step": 10
448                             }
449                         ],
450                         "thresholds": [
451
452                         ],
453                         "timeFrom": null,
454                         "timeShift": null,
455                         "title": "Disk IO Utilisation",
456                         "tooltip": {
457                             "shared": true,
458                             "sort": 0,
459                             "value_type": "individual"
460                         },
461                         "type": "graph",
462                         "xaxis": {
463                             "buckets": null,
464                             "mode": "time",
465                             "name": null,
466                             "show": true,
467                             "values": [
468
469                             ]
470                         },
471                         "yaxes": [
472                             {
473                                 "format": "percentunit",
474                                 "label": null,
475                                 "logBase": 1,
476                                 "max": 1,
477                                 "min": 0,
478                                 "show": true
479                             },
480                             {
481                                 "format": "short",
482                                 "label": null,
483                                 "logBase": 1,
484                                 "max": null,
485                                 "min": null,
486                                 "show": false
487                             }
488                         ]
489                     },
490                     {
491                         "aliasColors": {
492
493                         },
494                         "bars": false,
495                         "dashLength": 10,
496                         "dashes": false,
497                         "datasource": "$datasource",
498                         "fill": 10,
499                         "id": 6,
500                         "legend": {
501                             "avg": false,
502                             "current": false,
503                             "max": false,
504                             "min": false,
505                             "show": true,
506                             "total": false,
507                             "values": false
508                         },
509                         "lines": true,
510                         "linewidth": 0,
511                         "links": [
512
513                         ],
514                         "nullPointMode": "null as zero",
515                         "percentage": false,
516                         "pointradius": 5,
517                         "points": false,
518                         "renderer": "flot",
519                         "seriesOverrides": [
520
521                         ],
522                         "spaceLength": 10,
523                         "span": 6,
524                         "stack": true,
525                         "steppedLine": false,
526                         "targets": [
527                             {
528                                 "expr": "node:node_disk_saturation:avg_irate / scalar(:kube_pod_info_node_count:)",
529                                 "format": "time_series",
530                                 "intervalFactor": 2,
531                                 "legendFormat": "{{`{{node}}`}}",
532                                 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
533                                 "step": 10
534                             }
535                         ],
536                         "thresholds": [
537
538                         ],
539                         "timeFrom": null,
540                         "timeShift": null,
541                         "title": "Disk IO Saturation",
542                         "tooltip": {
543                             "shared": true,
544                             "sort": 0,
545                             "value_type": "individual"
546                         },
547                         "type": "graph",
548                         "xaxis": {
549                             "buckets": null,
550                             "mode": "time",
551                             "name": null,
552                             "show": true,
553                             "values": [
554
555                             ]
556                         },
557                         "yaxes": [
558                             {
559                                 "format": "percentunit",
560                                 "label": null,
561                                 "logBase": 1,
562                                 "max": 1,
563                                 "min": 0,
564                                 "show": true
565                             },
566                             {
567                                 "format": "short",
568                                 "label": null,
569                                 "logBase": 1,
570                                 "max": null,
571                                 "min": null,
572                                 "show": false
573                             }
574                         ]
575                     }
576                 ],
577                 "repeat": null,
578                 "repeatIteration": null,
579                 "repeatRowId": null,
580                 "showTitle": true,
581                 "title": "Disk",
582                 "titleSize": "h6"
583             },
584             {
585                 "collapse": false,
586                 "height": "250px",
587                 "panels": [
588                     {
589                         "aliasColors": {
590
591                         },
592                         "bars": false,
593                         "dashLength": 10,
594                         "dashes": false,
595                         "datasource": "$datasource",
596                         "fill": 10,
597                         "id": 7,
598                         "legend": {
599                             "avg": false,
600                             "current": false,
601                             "max": false,
602                             "min": false,
603                             "show": true,
604                             "total": false,
605                             "values": false
606                         },
607                         "lines": true,
608                         "linewidth": 0,
609                         "links": [
610
611                         ],
612                         "nullPointMode": "null as zero",
613                         "percentage": false,
614                         "pointradius": 5,
615                         "points": false,
616                         "renderer": "flot",
617                         "seriesOverrides": [
618
619                         ],
620                         "spaceLength": 10,
621                         "span": 6,
622                         "stack": true,
623                         "steppedLine": false,
624                         "targets": [
625                             {
626                                 "expr": "node:node_net_utilisation:sum_irate",
627                                 "format": "time_series",
628                                 "intervalFactor": 2,
629                                 "legendFormat": "{{`{{node}}`}}",
630                                 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
631                                 "step": 10
632                             }
633                         ],
634                         "thresholds": [
635
636                         ],
637                         "timeFrom": null,
638                         "timeShift": null,
639                         "title": "Net Utilisation (Transmitted)",
640                         "tooltip": {
641                             "shared": true,
642                             "sort": 0,
643                             "value_type": "individual"
644                         },
645                         "type": "graph",
646                         "xaxis": {
647                             "buckets": null,
648                             "mode": "time",
649                             "name": null,
650                             "show": true,
651                             "values": [
652
653                             ]
654                         },
655                         "yaxes": [
656                             {
657                                 "format": "Bps",
658                                 "label": null,
659                                 "logBase": 1,
660                                 "max": null,
661                                 "min": 0,
662                                 "show": true
663                             },
664                             {
665                                 "format": "short",
666                                 "label": null,
667                                 "logBase": 1,
668                                 "max": null,
669                                 "min": null,
670                                 "show": false
671                             }
672                         ]
673                     },
674                     {
675                         "aliasColors": {
676
677                         },
678                         "bars": false,
679                         "dashLength": 10,
680                         "dashes": false,
681                         "datasource": "$datasource",
682                         "fill": 10,
683                         "id": 8,
684                         "legend": {
685                             "avg": false,
686                             "current": false,
687                             "max": false,
688                             "min": false,
689                             "show": true,
690                             "total": false,
691                             "values": false
692                         },
693                         "lines": true,
694                         "linewidth": 0,
695                         "links": [
696
697                         ],
698                         "nullPointMode": "null as zero",
699                         "percentage": false,
700                         "pointradius": 5,
701                         "points": false,
702                         "renderer": "flot",
703                         "seriesOverrides": [
704
705                         ],
706                         "spaceLength": 10,
707                         "span": 6,
708                         "stack": true,
709                         "steppedLine": false,
710                         "targets": [
711                             {
712                                 "expr": "node:node_net_saturation:sum_irate",
713                                 "format": "time_series",
714                                 "intervalFactor": 2,
715                                 "legendFormat": "{{`{{node}}`}}",
716                                 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
717                                 "step": 10
718                             }
719                         ],
720                         "thresholds": [
721
722                         ],
723                         "timeFrom": null,
724                         "timeShift": null,
725                         "title": "Net Saturation (Dropped)",
726                         "tooltip": {
727                             "shared": true,
728                             "sort": 0,
729                             "value_type": "individual"
730                         },
731                         "type": "graph",
732                         "xaxis": {
733                             "buckets": null,
734                             "mode": "time",
735                             "name": null,
736                             "show": true,
737                             "values": [
738
739                             ]
740                         },
741                         "yaxes": [
742                             {
743                                 "format": "Bps",
744                                 "label": null,
745                                 "logBase": 1,
746                                 "max": null,
747                                 "min": 0,
748                                 "show": true
749                             },
750                             {
751                                 "format": "short",
752                                 "label": null,
753                                 "logBase": 1,
754                                 "max": null,
755                                 "min": null,
756                                 "show": false
757                             }
758                         ]
759                     }
760                 ],
761                 "repeat": null,
762                 "repeatIteration": null,
763                 "repeatRowId": null,
764                 "showTitle": true,
765                 "title": "Network",
766                 "titleSize": "h6"
767             },
768             {
769                 "collapse": false,
770                 "height": "250px",
771                 "panels": [
772                     {
773                         "aliasColors": {
774
775                         },
776                         "bars": false,
777                         "dashLength": 10,
778                         "dashes": false,
779                         "datasource": "$datasource",
780                         "fill": 10,
781                         "id": 9,
782                         "legend": {
783                             "avg": false,
784                             "current": false,
785                             "max": false,
786                             "min": false,
787                             "show": true,
788                             "total": false,
789                             "values": false
790                         },
791                         "lines": true,
792                         "linewidth": 0,
793                         "links": [
794
795                         ],
796                         "nullPointMode": "null as zero",
797                         "percentage": false,
798                         "pointradius": 5,
799                         "points": false,
800                         "renderer": "flot",
801                         "seriesOverrides": [
802
803                         ],
804                         "spaceLength": 10,
805                         "span": 12,
806                         "stack": true,
807                         "steppedLine": false,
808                         "targets": [
809                             {
810                                 "expr": "sum(max(node_filesystem_size_bytes{fstype=\u007e\"ext[234]|btrfs|xfs|zfs\"} - node_filesystem_avail_bytes{fstype=\u007e\"ext[234]|btrfs|xfs|zfs\"}) by (device,pod,namespace)) by (pod,namespace)\n/ scalar(sum(max(node_filesystem_size_bytes{fstype=\u007e\"ext[234]|btrfs|xfs|zfs\"}) by (device,pod,namespace)))\n* on (namespace, pod) group_left (node) node_namespace_pod:kube_pod_info:\n",
811                                 "format": "time_series",
812                                 "intervalFactor": 2,
813                                 "legendFormat": "{{`{{node}}`}}",
814                                 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
815                                 "step": 10
816                             }
817                         ],
818                         "thresholds": [
819
820                         ],
821                         "timeFrom": null,
822                         "timeShift": null,
823                         "title": "Disk Capacity",
824                         "tooltip": {
825                             "shared": true,
826                             "sort": 0,
827                             "value_type": "individual"
828                         },
829                         "type": "graph",
830                         "xaxis": {
831                             "buckets": null,
832                             "mode": "time",
833                             "name": null,
834                             "show": true,
835                             "values": [
836
837                             ]
838                         },
839                         "yaxes": [
840                             {
841                                 "format": "percentunit",
842                                 "label": null,
843                                 "logBase": 1,
844                                 "max": 1,
845                                 "min": 0,
846                                 "show": true
847                             },
848                             {
849                                 "format": "short",
850                                 "label": null,
851                                 "logBase": 1,
852                                 "max": null,
853                                 "min": null,
854                                 "show": false
855                             }
856                         ]
857                     }
858                 ],
859                 "repeat": null,
860                 "repeatIteration": null,
861                 "repeatRowId": null,
862                 "showTitle": true,
863                 "title": "Storage",
864                 "titleSize": "h6"
865             }
866         ],
867         "schemaVersion": 14,
868         "style": "dark",
869         "tags": [
870             "kubernetes-mixin"
871         ],
872         "templating": {
873             "list": [
874                 {
875                     "current": {
876                         "text": "Prometheus",
877                         "value": "Prometheus"
878                     },
879                     "hide": 0,
880                     "label": null,
881                     "name": "datasource",
882                     "options": [
883
884                     ],
885                     "query": "prometheus",
886                     "refresh": 1,
887                     "regex": "",
888                     "type": "datasource"
889                 }
890             ]
891         },
892         "time": {
893             "from": "now-1h",
894             "to": "now"
895         },
896         "timepicker": {
897             "refresh_intervals": [
898                 "5s",
899                 "10s",
900                 "30s",
901                 "1m",
902                 "5m",
903                 "15m",
904                 "30m",
905                 "1h",
906                 "2h",
907                 "1d"
908             ],
909             "time_options": [
910                 "5m",
911                 "15m",
912                 "1h",
913                 "6h",
914                 "12h",
915                 "24h",
916                 "2d",
917                 "7d",
918                 "30d"
919             ]
920         },
921         "timezone": "",
922         "title": "Kubernetes / USE Method / Cluster",
923         "uid": "a6e7d1362e1ddbb79db21d5bb40d7137",
924         "version": 0
925     }
926 {{- end }}