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