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