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