github.com/verrazzano/verrazzano@v1.7.1/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/grafana/dashboards-1.14/k8s-resources-node.yaml (about)

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