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

     1  {{- /*
     2  Generated from 'k8s-resources-namespace' 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-namespace" | 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-namespace.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": "100px",
    41                  "panels": [
    42                      {
    43                          "aliasColors": {
    44  
    45                          },
    46                          "bars": false,
    47                          "dashLength": 10,
    48                          "dashes": false,
    49                          "datasource": "$datasource",
    50                          "fill": 1,
    51                          "format": "percentunit",
    52                          "id": 1,
    53                          "interval": "1m",
    54                          "legend": {
    55                              "alignAsTable": true,
    56                              "avg": false,
    57                              "current": false,
    58                              "max": false,
    59                              "min": false,
    60                              "rightSide": true,
    61                              "show": true,
    62                              "total": false,
    63                              "values": false
    64                          },
    65                          "lines": true,
    66                          "linewidth": 1,
    67                          "links": [
    68  
    69                          ],
    70                          "nullPointMode": "null as zero",
    71                          "percentage": false,
    72                          "pointradius": 5,
    73                          "points": false,
    74                          "renderer": "flot",
    75                          "seriesOverrides": [
    76  
    77                          ],
    78                          "spaceLength": 10,
    79                          "span": 3,
    80                          "stack": false,
    81                          "steppedLine": false,
    82                          "targets": [
    83                              {
    84                                  "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\"}) / sum(kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\"})",
    85                                  "format": "time_series",
    86                                  "instant": true,
    87                                  "intervalFactor": 2,
    88                                  "refId": "A"
    89                              }
    90                          ],
    91                          "thresholds": "70,80",
    92                          "timeFrom": null,
    93                          "timeShift": null,
    94                          "title": "CPU Utilisation (from requests)",
    95                          "tooltip": {
    96                              "shared": false,
    97                              "sort": 2,
    98                              "value_type": "individual"
    99                          },
   100                          "type": "singlestat",
   101                          "xaxis": {
   102                              "buckets": null,
   103                              "mode": "time",
   104                              "name": null,
   105                              "show": true,
   106                              "values": [
   107  
   108                              ]
   109                          },
   110                          "yaxes": [
   111                              {
   112                                  "format": "short",
   113                                  "label": null,
   114                                  "logBase": 1,
   115                                  "max": null,
   116                                  "min": 0,
   117                                  "show": true
   118                              },
   119                              {
   120                                  "format": "short",
   121                                  "label": null,
   122                                  "logBase": 1,
   123                                  "max": null,
   124                                  "min": null,
   125                                  "show": false
   126                              }
   127                          ]
   128                      },
   129                      {
   130                          "aliasColors": {
   131  
   132                          },
   133                          "bars": false,
   134                          "dashLength": 10,
   135                          "dashes": false,
   136                          "datasource": "$datasource",
   137                          "fill": 1,
   138                          "format": "percentunit",
   139                          "id": 2,
   140                          "interval": "1m",
   141                          "legend": {
   142                              "alignAsTable": true,
   143                              "avg": false,
   144                              "current": false,
   145                              "max": false,
   146                              "min": false,
   147                              "rightSide": true,
   148                              "show": true,
   149                              "total": false,
   150                              "values": false
   151                          },
   152                          "lines": true,
   153                          "linewidth": 1,
   154                          "links": [
   155  
   156                          ],
   157                          "nullPointMode": "null as zero",
   158                          "percentage": false,
   159                          "pointradius": 5,
   160                          "points": false,
   161                          "renderer": "flot",
   162                          "seriesOverrides": [
   163  
   164                          ],
   165                          "spaceLength": 10,
   166                          "span": 3,
   167                          "stack": false,
   168                          "steppedLine": false,
   169                          "targets": [
   170                              {
   171                                  "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\"}) / sum(kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\"})",
   172                                  "format": "time_series",
   173                                  "instant": true,
   174                                  "intervalFactor": 2,
   175                                  "refId": "A"
   176                              }
   177                          ],
   178                          "thresholds": "70,80",
   179                          "timeFrom": null,
   180                          "timeShift": null,
   181                          "title": "CPU Utilisation (from limits)",
   182                          "tooltip": {
   183                              "shared": false,
   184                              "sort": 2,
   185                              "value_type": "individual"
   186                          },
   187                          "type": "singlestat",
   188                          "xaxis": {
   189                              "buckets": null,
   190                              "mode": "time",
   191                              "name": null,
   192                              "show": true,
   193                              "values": [
   194  
   195                              ]
   196                          },
   197                          "yaxes": [
   198                              {
   199                                  "format": "short",
   200                                  "label": null,
   201                                  "logBase": 1,
   202                                  "max": null,
   203                                  "min": 0,
   204                                  "show": true
   205                              },
   206                              {
   207                                  "format": "short",
   208                                  "label": null,
   209                                  "logBase": 1,
   210                                  "max": null,
   211                                  "min": null,
   212                                  "show": false
   213                              }
   214                          ]
   215                      },
   216                      {
   217                          "aliasColors": {
   218  
   219                          },
   220                          "bars": false,
   221                          "dashLength": 10,
   222                          "dashes": false,
   223                          "datasource": "$datasource",
   224                          "fill": 1,
   225                          "format": "percentunit",
   226                          "id": 3,
   227                          "interval": "1m",
   228                          "legend": {
   229                              "alignAsTable": true,
   230                              "avg": false,
   231                              "current": false,
   232                              "max": false,
   233                              "min": false,
   234                              "rightSide": true,
   235                              "show": true,
   236                              "total": false,
   237                              "values": false
   238                          },
   239                          "lines": true,
   240                          "linewidth": 1,
   241                          "links": [
   242  
   243                          ],
   244                          "nullPointMode": "null as zero",
   245                          "percentage": false,
   246                          "pointradius": 5,
   247                          "points": false,
   248                          "renderer": "flot",
   249                          "seriesOverrides": [
   250  
   251                          ],
   252                          "spaceLength": 10,
   253                          "span": 3,
   254                          "stack": false,
   255                          "steppedLine": false,
   256                          "targets": [
   257                              {
   258                                  "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) / sum(kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\"})",
   259                                  "format": "time_series",
   260                                  "instant": true,
   261                                  "intervalFactor": 2,
   262                                  "refId": "A"
   263                              }
   264                          ],
   265                          "thresholds": "70,80",
   266                          "timeFrom": null,
   267                          "timeShift": null,
   268                          "title": "Memory Utilisation (from requests)",
   269                          "tooltip": {
   270                              "shared": false,
   271                              "sort": 2,
   272                              "value_type": "individual"
   273                          },
   274                          "type": "singlestat",
   275                          "xaxis": {
   276                              "buckets": null,
   277                              "mode": "time",
   278                              "name": null,
   279                              "show": true,
   280                              "values": [
   281  
   282                              ]
   283                          },
   284                          "yaxes": [
   285                              {
   286                                  "format": "short",
   287                                  "label": null,
   288                                  "logBase": 1,
   289                                  "max": null,
   290                                  "min": 0,
   291                                  "show": true
   292                              },
   293                              {
   294                                  "format": "short",
   295                                  "label": null,
   296                                  "logBase": 1,
   297                                  "max": null,
   298                                  "min": null,
   299                                  "show": false
   300                              }
   301                          ]
   302                      },
   303                      {
   304                          "aliasColors": {
   305  
   306                          },
   307                          "bars": false,
   308                          "dashLength": 10,
   309                          "dashes": false,
   310                          "datasource": "$datasource",
   311                          "fill": 1,
   312                          "format": "percentunit",
   313                          "id": 4,
   314                          "interval": "1m",
   315                          "legend": {
   316                              "alignAsTable": true,
   317                              "avg": false,
   318                              "current": false,
   319                              "max": false,
   320                              "min": false,
   321                              "rightSide": true,
   322                              "show": true,
   323                              "total": false,
   324                              "values": false
   325                          },
   326                          "lines": true,
   327                          "linewidth": 1,
   328                          "links": [
   329  
   330                          ],
   331                          "nullPointMode": "null as zero",
   332                          "percentage": false,
   333                          "pointradius": 5,
   334                          "points": false,
   335                          "renderer": "flot",
   336                          "seriesOverrides": [
   337  
   338                          ],
   339                          "spaceLength": 10,
   340                          "span": 3,
   341                          "stack": false,
   342                          "steppedLine": false,
   343                          "targets": [
   344                              {
   345                                  "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) / sum(kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\"})",
   346                                  "format": "time_series",
   347                                  "instant": true,
   348                                  "intervalFactor": 2,
   349                                  "refId": "A"
   350                              }
   351                          ],
   352                          "thresholds": "70,80",
   353                          "timeFrom": null,
   354                          "timeShift": null,
   355                          "title": "Memory Utilisation (from limits)",
   356                          "tooltip": {
   357                              "shared": false,
   358                              "sort": 2,
   359                              "value_type": "individual"
   360                          },
   361                          "type": "singlestat",
   362                          "xaxis": {
   363                              "buckets": null,
   364                              "mode": "time",
   365                              "name": null,
   366                              "show": true,
   367                              "values": [
   368  
   369                              ]
   370                          },
   371                          "yaxes": [
   372                              {
   373                                  "format": "short",
   374                                  "label": null,
   375                                  "logBase": 1,
   376                                  "max": null,
   377                                  "min": 0,
   378                                  "show": true
   379                              },
   380                              {
   381                                  "format": "short",
   382                                  "label": null,
   383                                  "logBase": 1,
   384                                  "max": null,
   385                                  "min": null,
   386                                  "show": false
   387                              }
   388                          ]
   389                      }
   390                  ],
   391                  "repeat": null,
   392                  "repeatIteration": null,
   393                  "repeatRowId": null,
   394                  "showTitle": false,
   395                  "title": "Headlines",
   396                  "titleSize": "h6"
   397              },
   398              {
   399                  "collapse": false,
   400                  "height": "250px",
   401                  "panels": [
   402                      {
   403                          "aliasColors": {
   404  
   405                          },
   406                          "bars": false,
   407                          "dashLength": 10,
   408                          "dashes": false,
   409                          "datasource": "$datasource",
   410                          "fill": 10,
   411                          "id": 5,
   412                          "interval": "1m",
   413                          "legend": {
   414                              "alignAsTable": true,
   415                              "avg": false,
   416                              "current": false,
   417                              "max": false,
   418                              "min": false,
   419                              "rightSide": true,
   420                              "show": true,
   421                              "total": false,
   422                              "values": false
   423                          },
   424                          "lines": true,
   425                          "linewidth": 0,
   426                          "links": [
   427  
   428                          ],
   429                          "nullPointMode": "null as zero",
   430                          "percentage": false,
   431                          "pointradius": 5,
   432                          "points": false,
   433                          "renderer": "flot",
   434                          "seriesOverrides": [
   435                              {
   436                                  "alias": "quota - requests",
   437                                  "color": "#F2495C",
   438                                  "dashes": true,
   439                                  "fill": 0,
   440                                  "hiddenSeries": true,
   441                                  "hideTooltip": true,
   442                                  "legend": true,
   443                                  "linewidth": 2,
   444                                  "stack": false
   445                              },
   446                              {
   447                                  "alias": "quota - limits",
   448                                  "color": "#FF9830",
   449                                  "dashes": true,
   450                                  "fill": 0,
   451                                  "hiddenSeries": true,
   452                                  "hideTooltip": true,
   453                                  "legend": true,
   454                                  "linewidth": 2,
   455                                  "stack": false
   456                              }
   457                          ],
   458                          "spaceLength": 10,
   459                          "span": 12,
   460                          "stack": true,
   461                          "steppedLine": false,
   462                          "targets": [
   463                              {
   464                                  "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
   465                                  "format": "time_series",
   466                                  "intervalFactor": 2,
   467                                  "legendFormat": "{{`{{`}}pod{{`}}`}}",
   468                                  "legendLink": null,
   469                                  "step": 10
   470                              },
   471                              {
   472                                  "expr": "scalar(kube_resourcequota{cluster=\"$cluster\", namespace=\"$namespace\", type=\"hard\",resource=\"requests.cpu\"})",
   473                                  "format": "time_series",
   474                                  "intervalFactor": 2,
   475                                  "legendFormat": "quota - requests",
   476                                  "legendLink": null,
   477                                  "step": 10
   478                              },
   479                              {
   480                                  "expr": "scalar(kube_resourcequota{cluster=\"$cluster\", namespace=\"$namespace\", type=\"hard\",resource=\"limits.cpu\"})",
   481                                  "format": "time_series",
   482                                  "intervalFactor": 2,
   483                                  "legendFormat": "quota - limits",
   484                                  "legendLink": null,
   485                                  "step": 10
   486                              }
   487                          ],
   488                          "thresholds": [
   489  
   490                          ],
   491                          "timeFrom": null,
   492                          "timeShift": null,
   493                          "title": "CPU Usage",
   494                          "tooltip": {
   495                              "shared": false,
   496                              "sort": 2,
   497                              "value_type": "individual"
   498                          },
   499                          "type": "graph",
   500                          "xaxis": {
   501                              "buckets": null,
   502                              "mode": "time",
   503                              "name": null,
   504                              "show": true,
   505                              "values": [
   506  
   507                              ]
   508                          },
   509                          "yaxes": [
   510                              {
   511                                  "format": "short",
   512                                  "label": null,
   513                                  "logBase": 1,
   514                                  "max": null,
   515                                  "min": 0,
   516                                  "show": true
   517                              },
   518                              {
   519                                  "format": "short",
   520                                  "label": null,
   521                                  "logBase": 1,
   522                                  "max": null,
   523                                  "min": null,
   524                                  "show": false
   525                              }
   526                          ]
   527                      }
   528                  ],
   529                  "repeat": null,
   530                  "repeatIteration": null,
   531                  "repeatRowId": null,
   532                  "showTitle": true,
   533                  "title": "CPU Usage",
   534                  "titleSize": "h6"
   535              },
   536              {
   537                  "collapse": false,
   538                  "height": "250px",
   539                  "panels": [
   540                      {
   541                          "aliasColors": {
   542  
   543                          },
   544                          "bars": false,
   545                          "dashLength": 10,
   546                          "dashes": false,
   547                          "datasource": "$datasource",
   548                          "fill": 1,
   549                          "id": 6,
   550                          "interval": "1m",
   551                          "legend": {
   552                              "alignAsTable": true,
   553                              "avg": false,
   554                              "current": false,
   555                              "max": false,
   556                              "min": false,
   557                              "rightSide": true,
   558                              "show": true,
   559                              "total": false,
   560                              "values": false
   561                          },
   562                          "lines": true,
   563                          "linewidth": 1,
   564                          "links": [
   565  
   566                          ],
   567                          "nullPointMode": "null as zero",
   568                          "percentage": false,
   569                          "pointradius": 5,
   570                          "points": false,
   571                          "renderer": "flot",
   572                          "seriesOverrides": [
   573  
   574                          ],
   575                          "spaceLength": 10,
   576                          "span": 12,
   577                          "stack": false,
   578                          "steppedLine": false,
   579                          "styles": [
   580                              {
   581                                  "alias": "Time",
   582                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
   583                                  "pattern": "Time",
   584                                  "type": "hidden"
   585                              },
   586                              {
   587                                  "alias": "CPU Usage",
   588                                  "colorMode": null,
   589                                  "colors": [
   590  
   591                                  ],
   592                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
   593                                  "decimals": 2,
   594                                  "link": false,
   595                                  "linkTargetBlank": false,
   596                                  "linkTooltip": "Drill down",
   597                                  "linkUrl": "",
   598                                  "pattern": "Value #A",
   599                                  "thresholds": [
   600  
   601                                  ],
   602                                  "type": "number",
   603                                  "unit": "short"
   604                              },
   605                              {
   606                                  "alias": "CPU Requests",
   607                                  "colorMode": null,
   608                                  "colors": [
   609  
   610                                  ],
   611                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
   612                                  "decimals": 2,
   613                                  "link": false,
   614                                  "linkTargetBlank": false,
   615                                  "linkTooltip": "Drill down",
   616                                  "linkUrl": "",
   617                                  "pattern": "Value #B",
   618                                  "thresholds": [
   619  
   620                                  ],
   621                                  "type": "number",
   622                                  "unit": "short"
   623                              },
   624                              {
   625                                  "alias": "CPU Requests %",
   626                                  "colorMode": null,
   627                                  "colors": [
   628  
   629                                  ],
   630                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
   631                                  "decimals": 2,
   632                                  "link": false,
   633                                  "linkTargetBlank": false,
   634                                  "linkTooltip": "Drill down",
   635                                  "linkUrl": "",
   636                                  "pattern": "Value #C",
   637                                  "thresholds": [
   638  
   639                                  ],
   640                                  "type": "number",
   641                                  "unit": "percentunit"
   642                              },
   643                              {
   644                                  "alias": "CPU Limits",
   645                                  "colorMode": null,
   646                                  "colors": [
   647  
   648                                  ],
   649                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
   650                                  "decimals": 2,
   651                                  "link": false,
   652                                  "linkTargetBlank": false,
   653                                  "linkTooltip": "Drill down",
   654                                  "linkUrl": "",
   655                                  "pattern": "Value #D",
   656                                  "thresholds": [
   657  
   658                                  ],
   659                                  "type": "number",
   660                                  "unit": "short"
   661                              },
   662                              {
   663                                  "alias": "CPU Limits %",
   664                                  "colorMode": null,
   665                                  "colors": [
   666  
   667                                  ],
   668                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
   669                                  "decimals": 2,
   670                                  "link": false,
   671                                  "linkTargetBlank": false,
   672                                  "linkTooltip": "Drill down",
   673                                  "linkUrl": "",
   674                                  "pattern": "Value #E",
   675                                  "thresholds": [
   676  
   677                                  ],
   678                                  "type": "number",
   679                                  "unit": "percentunit"
   680                              },
   681                              {
   682                                  "alias": "Pod",
   683                                  "colorMode": null,
   684                                  "colors": [
   685  
   686                                  ],
   687                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
   688                                  "decimals": 2,
   689                                  "link": true,
   690                                  "linkTargetBlank": false,
   691                                  "linkTooltip": "Drill down",
   692                                  "linkUrl": "/d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell",
   693                                  "pattern": "pod",
   694                                  "thresholds": [
   695  
   696                                  ],
   697                                  "type": "number",
   698                                  "unit": "short"
   699                              },
   700                              {
   701                                  "alias": "",
   702                                  "colorMode": null,
   703                                  "colors": [
   704  
   705                                  ],
   706                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
   707                                  "decimals": 2,
   708                                  "pattern": "/.*/",
   709                                  "thresholds": [
   710  
   711                                  ],
   712                                  "type": "string",
   713                                  "unit": "short"
   714                              }
   715                          ],
   716                          "targets": [
   717                              {
   718                                  "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
   719                                  "format": "table",
   720                                  "instant": true,
   721                                  "intervalFactor": 2,
   722                                  "legendFormat": "",
   723                                  "refId": "A",
   724                                  "step": 10
   725                              },
   726                              {
   727                                  "expr": "sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
   728                                  "format": "table",
   729                                  "instant": true,
   730                                  "intervalFactor": 2,
   731                                  "legendFormat": "",
   732                                  "refId": "B",
   733                                  "step": 10
   734                              },
   735                              {
   736                                  "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
   737                                  "format": "table",
   738                                  "instant": true,
   739                                  "intervalFactor": 2,
   740                                  "legendFormat": "",
   741                                  "refId": "C",
   742                                  "step": 10
   743                              },
   744                              {
   745                                  "expr": "sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
   746                                  "format": "table",
   747                                  "instant": true,
   748                                  "intervalFactor": 2,
   749                                  "legendFormat": "",
   750                                  "refId": "D",
   751                                  "step": 10
   752                              },
   753                              {
   754                                  "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
   755                                  "format": "table",
   756                                  "instant": true,
   757                                  "intervalFactor": 2,
   758                                  "legendFormat": "",
   759                                  "refId": "E",
   760                                  "step": 10
   761                              }
   762                          ],
   763                          "thresholds": [
   764  
   765                          ],
   766                          "timeFrom": null,
   767                          "timeShift": null,
   768                          "title": "CPU Quota",
   769                          "tooltip": {
   770                              "shared": false,
   771                              "sort": 2,
   772                              "value_type": "individual"
   773                          },
   774                          "transform": "table",
   775                          "type": "table",
   776                          "xaxis": {
   777                              "buckets": null,
   778                              "mode": "time",
   779                              "name": null,
   780                              "show": true,
   781                              "values": [
   782  
   783                              ]
   784                          },
   785                          "yaxes": [
   786                              {
   787                                  "format": "short",
   788                                  "label": null,
   789                                  "logBase": 1,
   790                                  "max": null,
   791                                  "min": 0,
   792                                  "show": true
   793                              },
   794                              {
   795                                  "format": "short",
   796                                  "label": null,
   797                                  "logBase": 1,
   798                                  "max": null,
   799                                  "min": null,
   800                                  "show": false
   801                              }
   802                          ]
   803                      }
   804                  ],
   805                  "repeat": null,
   806                  "repeatIteration": null,
   807                  "repeatRowId": null,
   808                  "showTitle": true,
   809                  "title": "CPU Quota",
   810                  "titleSize": "h6"
   811              },
   812              {
   813                  "collapse": false,
   814                  "height": "250px",
   815                  "panels": [
   816                      {
   817                          "aliasColors": {
   818  
   819                          },
   820                          "bars": false,
   821                          "dashLength": 10,
   822                          "dashes": false,
   823                          "datasource": "$datasource",
   824                          "fill": 10,
   825                          "id": 7,
   826                          "interval": "1m",
   827                          "legend": {
   828                              "alignAsTable": true,
   829                              "avg": false,
   830                              "current": false,
   831                              "max": false,
   832                              "min": false,
   833                              "rightSide": true,
   834                              "show": true,
   835                              "total": false,
   836                              "values": false
   837                          },
   838                          "lines": true,
   839                          "linewidth": 0,
   840                          "links": [
   841  
   842                          ],
   843                          "nullPointMode": "null as zero",
   844                          "percentage": false,
   845                          "pointradius": 5,
   846                          "points": false,
   847                          "renderer": "flot",
   848                          "seriesOverrides": [
   849                              {
   850                                  "alias": "quota - requests",
   851                                  "color": "#F2495C",
   852                                  "dashes": true,
   853                                  "fill": 0,
   854                                  "hiddenSeries": true,
   855                                  "hideTooltip": true,
   856                                  "legend": true,
   857                                  "linewidth": 2,
   858                                  "stack": false
   859                              },
   860                              {
   861                                  "alias": "quota - limits",
   862                                  "color": "#FF9830",
   863                                  "dashes": true,
   864                                  "fill": 0,
   865                                  "hiddenSeries": true,
   866                                  "hideTooltip": true,
   867                                  "legend": true,
   868                                  "linewidth": 2,
   869                                  "stack": false
   870                              }
   871                          ],
   872                          "spaceLength": 10,
   873                          "span": 12,
   874                          "stack": true,
   875                          "steppedLine": false,
   876                          "targets": [
   877                              {
   878                                  "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\", image!=\"\"}) by (pod)",
   879                                  "format": "time_series",
   880                                  "intervalFactor": 2,
   881                                  "legendFormat": "{{`{{`}}pod{{`}}`}}",
   882                                  "legendLink": null,
   883                                  "step": 10
   884                              },
   885                              {
   886                                  "expr": "scalar(kube_resourcequota{cluster=\"$cluster\", namespace=\"$namespace\", type=\"hard\",resource=\"requests.memory\"})",
   887                                  "format": "time_series",
   888                                  "intervalFactor": 2,
   889                                  "legendFormat": "quota - requests",
   890                                  "legendLink": null,
   891                                  "step": 10
   892                              },
   893                              {
   894                                  "expr": "scalar(kube_resourcequota{cluster=\"$cluster\", namespace=\"$namespace\", type=\"hard\",resource=\"limits.memory\"})",
   895                                  "format": "time_series",
   896                                  "intervalFactor": 2,
   897                                  "legendFormat": "quota - limits",
   898                                  "legendLink": null,
   899                                  "step": 10
   900                              }
   901                          ],
   902                          "thresholds": [
   903  
   904                          ],
   905                          "timeFrom": null,
   906                          "timeShift": null,
   907                          "title": "Memory Usage (w/o cache)",
   908                          "tooltip": {
   909                              "shared": false,
   910                              "sort": 2,
   911                              "value_type": "individual"
   912                          },
   913                          "type": "graph",
   914                          "xaxis": {
   915                              "buckets": null,
   916                              "mode": "time",
   917                              "name": null,
   918                              "show": true,
   919                              "values": [
   920  
   921                              ]
   922                          },
   923                          "yaxes": [
   924                              {
   925                                  "format": "bytes",
   926                                  "label": null,
   927                                  "logBase": 1,
   928                                  "max": null,
   929                                  "min": 0,
   930                                  "show": true
   931                              },
   932                              {
   933                                  "format": "short",
   934                                  "label": null,
   935                                  "logBase": 1,
   936                                  "max": null,
   937                                  "min": null,
   938                                  "show": false
   939                              }
   940                          ]
   941                      }
   942                  ],
   943                  "repeat": null,
   944                  "repeatIteration": null,
   945                  "repeatRowId": null,
   946                  "showTitle": true,
   947                  "title": "Memory Usage",
   948                  "titleSize": "h6"
   949              },
   950              {
   951                  "collapse": false,
   952                  "height": "250px",
   953                  "panels": [
   954                      {
   955                          "aliasColors": {
   956  
   957                          },
   958                          "bars": false,
   959                          "dashLength": 10,
   960                          "dashes": false,
   961                          "datasource": "$datasource",
   962                          "fill": 1,
   963                          "id": 8,
   964                          "interval": "1m",
   965                          "legend": {
   966                              "alignAsTable": true,
   967                              "avg": false,
   968                              "current": false,
   969                              "max": false,
   970                              "min": false,
   971                              "rightSide": true,
   972                              "show": true,
   973                              "total": false,
   974                              "values": false
   975                          },
   976                          "lines": true,
   977                          "linewidth": 1,
   978                          "links": [
   979  
   980                          ],
   981                          "nullPointMode": "null as zero",
   982                          "percentage": false,
   983                          "pointradius": 5,
   984                          "points": false,
   985                          "renderer": "flot",
   986                          "seriesOverrides": [
   987  
   988                          ],
   989                          "spaceLength": 10,
   990                          "span": 12,
   991                          "stack": false,
   992                          "steppedLine": false,
   993                          "styles": [
   994                              {
   995                                  "alias": "Time",
   996                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
   997                                  "pattern": "Time",
   998                                  "type": "hidden"
   999                              },
  1000                              {
  1001                                  "alias": "Memory Usage",
  1002                                  "colorMode": null,
  1003                                  "colors": [
  1004  
  1005                                  ],
  1006                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1007                                  "decimals": 2,
  1008                                  "link": false,
  1009                                  "linkTargetBlank": false,
  1010                                  "linkTooltip": "Drill down",
  1011                                  "linkUrl": "",
  1012                                  "pattern": "Value #A",
  1013                                  "thresholds": [
  1014  
  1015                                  ],
  1016                                  "type": "number",
  1017                                  "unit": "bytes"
  1018                              },
  1019                              {
  1020                                  "alias": "Memory Requests",
  1021                                  "colorMode": null,
  1022                                  "colors": [
  1023  
  1024                                  ],
  1025                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1026                                  "decimals": 2,
  1027                                  "link": false,
  1028                                  "linkTargetBlank": false,
  1029                                  "linkTooltip": "Drill down",
  1030                                  "linkUrl": "",
  1031                                  "pattern": "Value #B",
  1032                                  "thresholds": [
  1033  
  1034                                  ],
  1035                                  "type": "number",
  1036                                  "unit": "bytes"
  1037                              },
  1038                              {
  1039                                  "alias": "Memory Requests %",
  1040                                  "colorMode": null,
  1041                                  "colors": [
  1042  
  1043                                  ],
  1044                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1045                                  "decimals": 2,
  1046                                  "link": false,
  1047                                  "linkTargetBlank": false,
  1048                                  "linkTooltip": "Drill down",
  1049                                  "linkUrl": "",
  1050                                  "pattern": "Value #C",
  1051                                  "thresholds": [
  1052  
  1053                                  ],
  1054                                  "type": "number",
  1055                                  "unit": "percentunit"
  1056                              },
  1057                              {
  1058                                  "alias": "Memory Limits",
  1059                                  "colorMode": null,
  1060                                  "colors": [
  1061  
  1062                                  ],
  1063                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1064                                  "decimals": 2,
  1065                                  "link": false,
  1066                                  "linkTargetBlank": false,
  1067                                  "linkTooltip": "Drill down",
  1068                                  "linkUrl": "",
  1069                                  "pattern": "Value #D",
  1070                                  "thresholds": [
  1071  
  1072                                  ],
  1073                                  "type": "number",
  1074                                  "unit": "bytes"
  1075                              },
  1076                              {
  1077                                  "alias": "Memory Limits %",
  1078                                  "colorMode": null,
  1079                                  "colors": [
  1080  
  1081                                  ],
  1082                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1083                                  "decimals": 2,
  1084                                  "link": false,
  1085                                  "linkTargetBlank": false,
  1086                                  "linkTooltip": "Drill down",
  1087                                  "linkUrl": "",
  1088                                  "pattern": "Value #E",
  1089                                  "thresholds": [
  1090  
  1091                                  ],
  1092                                  "type": "number",
  1093                                  "unit": "percentunit"
  1094                              },
  1095                              {
  1096                                  "alias": "Memory Usage (RSS)",
  1097                                  "colorMode": null,
  1098                                  "colors": [
  1099  
  1100                                  ],
  1101                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1102                                  "decimals": 2,
  1103                                  "link": false,
  1104                                  "linkTargetBlank": false,
  1105                                  "linkTooltip": "Drill down",
  1106                                  "linkUrl": "",
  1107                                  "pattern": "Value #F",
  1108                                  "thresholds": [
  1109  
  1110                                  ],
  1111                                  "type": "number",
  1112                                  "unit": "bytes"
  1113                              },
  1114                              {
  1115                                  "alias": "Memory Usage (Cache)",
  1116                                  "colorMode": null,
  1117                                  "colors": [
  1118  
  1119                                  ],
  1120                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1121                                  "decimals": 2,
  1122                                  "link": false,
  1123                                  "linkTargetBlank": false,
  1124                                  "linkTooltip": "Drill down",
  1125                                  "linkUrl": "",
  1126                                  "pattern": "Value #G",
  1127                                  "thresholds": [
  1128  
  1129                                  ],
  1130                                  "type": "number",
  1131                                  "unit": "bytes"
  1132                              },
  1133                              {
  1134                                  "alias": "Memory Usage (Swap)",
  1135                                  "colorMode": null,
  1136                                  "colors": [
  1137  
  1138                                  ],
  1139                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1140                                  "decimals": 2,
  1141                                  "link": false,
  1142                                  "linkTargetBlank": false,
  1143                                  "linkTooltip": "Drill down",
  1144                                  "linkUrl": "",
  1145                                  "pattern": "Value #H",
  1146                                  "thresholds": [
  1147  
  1148                                  ],
  1149                                  "type": "number",
  1150                                  "unit": "bytes"
  1151                              },
  1152                              {
  1153                                  "alias": "Pod",
  1154                                  "colorMode": null,
  1155                                  "colors": [
  1156  
  1157                                  ],
  1158                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1159                                  "decimals": 2,
  1160                                  "link": true,
  1161                                  "linkTargetBlank": false,
  1162                                  "linkTooltip": "Drill down",
  1163                                  "linkUrl": "/d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell",
  1164                                  "pattern": "pod",
  1165                                  "thresholds": [
  1166  
  1167                                  ],
  1168                                  "type": "number",
  1169                                  "unit": "short"
  1170                              },
  1171                              {
  1172                                  "alias": "",
  1173                                  "colorMode": null,
  1174                                  "colors": [
  1175  
  1176                                  ],
  1177                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1178                                  "decimals": 2,
  1179                                  "pattern": "/.*/",
  1180                                  "thresholds": [
  1181  
  1182                                  ],
  1183                                  "type": "string",
  1184                                  "unit": "short"
  1185                              }
  1186                          ],
  1187                          "targets": [
  1188                              {
  1189                                  "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) by (pod)",
  1190                                  "format": "table",
  1191                                  "instant": true,
  1192                                  "intervalFactor": 2,
  1193                                  "legendFormat": "",
  1194                                  "refId": "A",
  1195                                  "step": 10
  1196                              },
  1197                              {
  1198                                  "expr": "sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
  1199                                  "format": "table",
  1200                                  "instant": true,
  1201                                  "intervalFactor": 2,
  1202                                  "legendFormat": "",
  1203                                  "refId": "B",
  1204                                  "step": 10
  1205                              },
  1206                              {
  1207                                  "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) by (pod) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
  1208                                  "format": "table",
  1209                                  "instant": true,
  1210                                  "intervalFactor": 2,
  1211                                  "legendFormat": "",
  1212                                  "refId": "C",
  1213                                  "step": 10
  1214                              },
  1215                              {
  1216                                  "expr": "sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
  1217                                  "format": "table",
  1218                                  "instant": true,
  1219                                  "intervalFactor": 2,
  1220                                  "legendFormat": "",
  1221                                  "refId": "D",
  1222                                  "step": 10
  1223                              },
  1224                              {
  1225                                  "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) by (pod) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
  1226                                  "format": "table",
  1227                                  "instant": true,
  1228                                  "intervalFactor": 2,
  1229                                  "legendFormat": "",
  1230                                  "refId": "E",
  1231                                  "step": 10
  1232                              },
  1233                              {
  1234                                  "expr": "sum(container_memory_rss{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)",
  1235                                  "format": "table",
  1236                                  "instant": true,
  1237                                  "intervalFactor": 2,
  1238                                  "legendFormat": "",
  1239                                  "refId": "F",
  1240                                  "step": 10
  1241                              },
  1242                              {
  1243                                  "expr": "sum(container_memory_cache{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)",
  1244                                  "format": "table",
  1245                                  "instant": true,
  1246                                  "intervalFactor": 2,
  1247                                  "legendFormat": "",
  1248                                  "refId": "G",
  1249                                  "step": 10
  1250                              },
  1251                              {
  1252                                  "expr": "sum(container_memory_swap{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)",
  1253                                  "format": "table",
  1254                                  "instant": true,
  1255                                  "intervalFactor": 2,
  1256                                  "legendFormat": "",
  1257                                  "refId": "H",
  1258                                  "step": 10
  1259                              }
  1260                          ],
  1261                          "thresholds": [
  1262  
  1263                          ],
  1264                          "timeFrom": null,
  1265                          "timeShift": null,
  1266                          "title": "Memory Quota",
  1267                          "tooltip": {
  1268                              "shared": false,
  1269                              "sort": 2,
  1270                              "value_type": "individual"
  1271                          },
  1272                          "transform": "table",
  1273                          "type": "table",
  1274                          "xaxis": {
  1275                              "buckets": null,
  1276                              "mode": "time",
  1277                              "name": null,
  1278                              "show": true,
  1279                              "values": [
  1280  
  1281                              ]
  1282                          },
  1283                          "yaxes": [
  1284                              {
  1285                                  "format": "short",
  1286                                  "label": null,
  1287                                  "logBase": 1,
  1288                                  "max": null,
  1289                                  "min": 0,
  1290                                  "show": true
  1291                              },
  1292                              {
  1293                                  "format": "short",
  1294                                  "label": null,
  1295                                  "logBase": 1,
  1296                                  "max": null,
  1297                                  "min": null,
  1298                                  "show": false
  1299                              }
  1300                          ]
  1301                      }
  1302                  ],
  1303                  "repeat": null,
  1304                  "repeatIteration": null,
  1305                  "repeatRowId": null,
  1306                  "showTitle": true,
  1307                  "title": "Memory Quota",
  1308                  "titleSize": "h6"
  1309              },
  1310              {
  1311                  "collapse": false,
  1312                  "height": "250px",
  1313                  "panels": [
  1314                      {
  1315                          "aliasColors": {
  1316  
  1317                          },
  1318                          "bars": false,
  1319                          "dashLength": 10,
  1320                          "dashes": false,
  1321                          "datasource": "$datasource",
  1322                          "fill": 1,
  1323                          "id": 9,
  1324                          "interval": "1m",
  1325                          "legend": {
  1326                              "alignAsTable": true,
  1327                              "avg": false,
  1328                              "current": false,
  1329                              "max": false,
  1330                              "min": false,
  1331                              "rightSide": true,
  1332                              "show": true,
  1333                              "total": false,
  1334                              "values": false
  1335                          },
  1336                          "lines": true,
  1337                          "linewidth": 1,
  1338                          "links": [
  1339  
  1340                          ],
  1341                          "nullPointMode": "null as zero",
  1342                          "percentage": false,
  1343                          "pointradius": 5,
  1344                          "points": false,
  1345                          "renderer": "flot",
  1346                          "seriesOverrides": [
  1347  
  1348                          ],
  1349                          "spaceLength": 10,
  1350                          "span": 12,
  1351                          "stack": false,
  1352                          "steppedLine": false,
  1353                          "styles": [
  1354                              {
  1355                                  "alias": "Time",
  1356                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1357                                  "pattern": "Time",
  1358                                  "type": "hidden"
  1359                              },
  1360                              {
  1361                                  "alias": "Current Receive Bandwidth",
  1362                                  "colorMode": null,
  1363                                  "colors": [
  1364  
  1365                                  ],
  1366                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1367                                  "decimals": 2,
  1368                                  "link": false,
  1369                                  "linkTargetBlank": false,
  1370                                  "linkTooltip": "Drill down",
  1371                                  "linkUrl": "",
  1372                                  "pattern": "Value #A",
  1373                                  "thresholds": [
  1374  
  1375                                  ],
  1376                                  "type": "number",
  1377                                  "unit": "Bps"
  1378                              },
  1379                              {
  1380                                  "alias": "Current Transmit Bandwidth",
  1381                                  "colorMode": null,
  1382                                  "colors": [
  1383  
  1384                                  ],
  1385                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1386                                  "decimals": 2,
  1387                                  "link": false,
  1388                                  "linkTargetBlank": false,
  1389                                  "linkTooltip": "Drill down",
  1390                                  "linkUrl": "",
  1391                                  "pattern": "Value #B",
  1392                                  "thresholds": [
  1393  
  1394                                  ],
  1395                                  "type": "number",
  1396                                  "unit": "Bps"
  1397                              },
  1398                              {
  1399                                  "alias": "Rate of Received Packets",
  1400                                  "colorMode": null,
  1401                                  "colors": [
  1402  
  1403                                  ],
  1404                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1405                                  "decimals": 2,
  1406                                  "link": false,
  1407                                  "linkTargetBlank": false,
  1408                                  "linkTooltip": "Drill down",
  1409                                  "linkUrl": "",
  1410                                  "pattern": "Value #C",
  1411                                  "thresholds": [
  1412  
  1413                                  ],
  1414                                  "type": "number",
  1415                                  "unit": "pps"
  1416                              },
  1417                              {
  1418                                  "alias": "Rate of Transmitted Packets",
  1419                                  "colorMode": null,
  1420                                  "colors": [
  1421  
  1422                                  ],
  1423                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1424                                  "decimals": 2,
  1425                                  "link": false,
  1426                                  "linkTargetBlank": false,
  1427                                  "linkTooltip": "Drill down",
  1428                                  "linkUrl": "",
  1429                                  "pattern": "Value #D",
  1430                                  "thresholds": [
  1431  
  1432                                  ],
  1433                                  "type": "number",
  1434                                  "unit": "pps"
  1435                              },
  1436                              {
  1437                                  "alias": "Rate of Received Packets Dropped",
  1438                                  "colorMode": null,
  1439                                  "colors": [
  1440  
  1441                                  ],
  1442                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1443                                  "decimals": 2,
  1444                                  "link": false,
  1445                                  "linkTargetBlank": false,
  1446                                  "linkTooltip": "Drill down",
  1447                                  "linkUrl": "",
  1448                                  "pattern": "Value #E",
  1449                                  "thresholds": [
  1450  
  1451                                  ],
  1452                                  "type": "number",
  1453                                  "unit": "pps"
  1454                              },
  1455                              {
  1456                                  "alias": "Rate of Transmitted Packets Dropped",
  1457                                  "colorMode": null,
  1458                                  "colors": [
  1459  
  1460                                  ],
  1461                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1462                                  "decimals": 2,
  1463                                  "link": false,
  1464                                  "linkTargetBlank": false,
  1465                                  "linkTooltip": "Drill down",
  1466                                  "linkUrl": "",
  1467                                  "pattern": "Value #F",
  1468                                  "thresholds": [
  1469  
  1470                                  ],
  1471                                  "type": "number",
  1472                                  "unit": "pps"
  1473                              },
  1474                              {
  1475                                  "alias": "Pod",
  1476                                  "colorMode": null,
  1477                                  "colors": [
  1478  
  1479                                  ],
  1480                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1481                                  "decimals": 2,
  1482                                  "link": true,
  1483                                  "linkTargetBlank": false,
  1484                                  "linkTooltip": "Drill down to pods",
  1485                                  "linkUrl": "/d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell",
  1486                                  "pattern": "pod",
  1487                                  "thresholds": [
  1488  
  1489                                  ],
  1490                                  "type": "number",
  1491                                  "unit": "short"
  1492                              },
  1493                              {
  1494                                  "alias": "",
  1495                                  "colorMode": null,
  1496                                  "colors": [
  1497  
  1498                                  ],
  1499                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1500                                  "decimals": 2,
  1501                                  "pattern": "/.*/",
  1502                                  "thresholds": [
  1503  
  1504                                  ],
  1505                                  "type": "string",
  1506                                  "unit": "short"
  1507                              }
  1508                          ],
  1509                          "targets": [
  1510                              {
  1511                                  "expr": "sum(irate(container_network_receive_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)",
  1512                                  "format": "table",
  1513                                  "instant": true,
  1514                                  "intervalFactor": 2,
  1515                                  "legendFormat": "",
  1516                                  "refId": "A",
  1517                                  "step": 10
  1518                              },
  1519                              {
  1520                                  "expr": "sum(irate(container_network_transmit_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)",
  1521                                  "format": "table",
  1522                                  "instant": true,
  1523                                  "intervalFactor": 2,
  1524                                  "legendFormat": "",
  1525                                  "refId": "B",
  1526                                  "step": 10
  1527                              },
  1528                              {
  1529                                  "expr": "sum(irate(container_network_receive_packets_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)",
  1530                                  "format": "table",
  1531                                  "instant": true,
  1532                                  "intervalFactor": 2,
  1533                                  "legendFormat": "",
  1534                                  "refId": "C",
  1535                                  "step": 10
  1536                              },
  1537                              {
  1538                                  "expr": "sum(irate(container_network_transmit_packets_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)",
  1539                                  "format": "table",
  1540                                  "instant": true,
  1541                                  "intervalFactor": 2,
  1542                                  "legendFormat": "",
  1543                                  "refId": "D",
  1544                                  "step": 10
  1545                              },
  1546                              {
  1547                                  "expr": "sum(irate(container_network_receive_packets_dropped_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)",
  1548                                  "format": "table",
  1549                                  "instant": true,
  1550                                  "intervalFactor": 2,
  1551                                  "legendFormat": "",
  1552                                  "refId": "E",
  1553                                  "step": 10
  1554                              },
  1555                              {
  1556                                  "expr": "sum(irate(container_network_transmit_packets_dropped_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)",
  1557                                  "format": "table",
  1558                                  "instant": true,
  1559                                  "intervalFactor": 2,
  1560                                  "legendFormat": "",
  1561                                  "refId": "F",
  1562                                  "step": 10
  1563                              }
  1564                          ],
  1565                          "thresholds": [
  1566  
  1567                          ],
  1568                          "timeFrom": null,
  1569                          "timeShift": null,
  1570                          "title": "Current Network Usage",
  1571                          "tooltip": {
  1572                              "shared": false,
  1573                              "sort": 2,
  1574                              "value_type": "individual"
  1575                          },
  1576                          "transform": "table",
  1577                          "type": "table",
  1578                          "xaxis": {
  1579                              "buckets": null,
  1580                              "mode": "time",
  1581                              "name": null,
  1582                              "show": true,
  1583                              "values": [
  1584  
  1585                              ]
  1586                          },
  1587                          "yaxes": [
  1588                              {
  1589                                  "format": "short",
  1590                                  "label": null,
  1591                                  "logBase": 1,
  1592                                  "max": null,
  1593                                  "min": 0,
  1594                                  "show": true
  1595                              },
  1596                              {
  1597                                  "format": "short",
  1598                                  "label": null,
  1599                                  "logBase": 1,
  1600                                  "max": null,
  1601                                  "min": null,
  1602                                  "show": false
  1603                              }
  1604                          ]
  1605                      }
  1606                  ],
  1607                  "repeat": null,
  1608                  "repeatIteration": null,
  1609                  "repeatRowId": null,
  1610                  "showTitle": true,
  1611                  "title": "Current Network Usage",
  1612                  "titleSize": "h6"
  1613              },
  1614              {
  1615                  "collapse": false,
  1616                  "height": "250px",
  1617                  "panels": [
  1618                      {
  1619                          "aliasColors": {
  1620  
  1621                          },
  1622                          "bars": false,
  1623                          "dashLength": 10,
  1624                          "dashes": false,
  1625                          "datasource": "$datasource",
  1626                          "fill": 10,
  1627                          "id": 10,
  1628                          "interval": "1m",
  1629                          "legend": {
  1630                              "alignAsTable": true,
  1631                              "avg": false,
  1632                              "current": false,
  1633                              "max": false,
  1634                              "min": false,
  1635                              "rightSide": true,
  1636                              "show": true,
  1637                              "total": false,
  1638                              "values": false
  1639                          },
  1640                          "lines": true,
  1641                          "linewidth": 0,
  1642                          "links": [
  1643  
  1644                          ],
  1645                          "nullPointMode": "null as zero",
  1646                          "percentage": false,
  1647                          "pointradius": 5,
  1648                          "points": false,
  1649                          "renderer": "flot",
  1650                          "seriesOverrides": [
  1651  
  1652                          ],
  1653                          "spaceLength": 10,
  1654                          "span": 6,
  1655                          "stack": true,
  1656                          "steppedLine": false,
  1657                          "targets": [
  1658                              {
  1659                                  "expr": "sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)",
  1660                                  "format": "time_series",
  1661                                  "intervalFactor": 2,
  1662                                  "legendFormat": "{{`{{`}}pod{{`}}`}}",
  1663                                  "legendLink": null,
  1664                                  "step": 10
  1665                              }
  1666                          ],
  1667                          "thresholds": [
  1668  
  1669                          ],
  1670                          "timeFrom": null,
  1671                          "timeShift": null,
  1672                          "title": "Receive Bandwidth",
  1673                          "tooltip": {
  1674                              "shared": false,
  1675                              "sort": 2,
  1676                              "value_type": "individual"
  1677                          },
  1678                          "type": "graph",
  1679                          "xaxis": {
  1680                              "buckets": null,
  1681                              "mode": "time",
  1682                              "name": null,
  1683                              "show": true,
  1684                              "values": [
  1685  
  1686                              ]
  1687                          },
  1688                          "yaxes": [
  1689                              {
  1690                                  "format": "Bps",
  1691                                  "label": null,
  1692                                  "logBase": 1,
  1693                                  "max": null,
  1694                                  "min": 0,
  1695                                  "show": true
  1696                              },
  1697                              {
  1698                                  "format": "short",
  1699                                  "label": null,
  1700                                  "logBase": 1,
  1701                                  "max": null,
  1702                                  "min": null,
  1703                                  "show": false
  1704                              }
  1705                          ]
  1706                      },
  1707                      {
  1708                          "aliasColors": {
  1709  
  1710                          },
  1711                          "bars": false,
  1712                          "dashLength": 10,
  1713                          "dashes": false,
  1714                          "datasource": "$datasource",
  1715                          "fill": 10,
  1716                          "id": 11,
  1717                          "interval": "1m",
  1718                          "legend": {
  1719                              "alignAsTable": true,
  1720                              "avg": false,
  1721                              "current": false,
  1722                              "max": false,
  1723                              "min": false,
  1724                              "rightSide": true,
  1725                              "show": true,
  1726                              "total": false,
  1727                              "values": false
  1728                          },
  1729                          "lines": true,
  1730                          "linewidth": 0,
  1731                          "links": [
  1732  
  1733                          ],
  1734                          "nullPointMode": "null as zero",
  1735                          "percentage": false,
  1736                          "pointradius": 5,
  1737                          "points": false,
  1738                          "renderer": "flot",
  1739                          "seriesOverrides": [
  1740  
  1741                          ],
  1742                          "spaceLength": 10,
  1743                          "span": 6,
  1744                          "stack": true,
  1745                          "steppedLine": false,
  1746                          "targets": [
  1747                              {
  1748                                  "expr": "sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)",
  1749                                  "format": "time_series",
  1750                                  "intervalFactor": 2,
  1751                                  "legendFormat": "{{`{{`}}pod{{`}}`}}",
  1752                                  "legendLink": null,
  1753                                  "step": 10
  1754                              }
  1755                          ],
  1756                          "thresholds": [
  1757  
  1758                          ],
  1759                          "timeFrom": null,
  1760                          "timeShift": null,
  1761                          "title": "Transmit Bandwidth",
  1762                          "tooltip": {
  1763                              "shared": false,
  1764                              "sort": 2,
  1765                              "value_type": "individual"
  1766                          },
  1767                          "type": "graph",
  1768                          "xaxis": {
  1769                              "buckets": null,
  1770                              "mode": "time",
  1771                              "name": null,
  1772                              "show": true,
  1773                              "values": [
  1774  
  1775                              ]
  1776                          },
  1777                          "yaxes": [
  1778                              {
  1779                                  "format": "Bps",
  1780                                  "label": null,
  1781                                  "logBase": 1,
  1782                                  "max": null,
  1783                                  "min": 0,
  1784                                  "show": true
  1785                              },
  1786                              {
  1787                                  "format": "short",
  1788                                  "label": null,
  1789                                  "logBase": 1,
  1790                                  "max": null,
  1791                                  "min": null,
  1792                                  "show": false
  1793                              }
  1794                          ]
  1795                      }
  1796                  ],
  1797                  "repeat": null,
  1798                  "repeatIteration": null,
  1799                  "repeatRowId": null,
  1800                  "showTitle": true,
  1801                  "title": "Bandwidth",
  1802                  "titleSize": "h6"
  1803              },
  1804              {
  1805                  "collapse": false,
  1806                  "height": "250px",
  1807                  "panels": [
  1808                      {
  1809                          "aliasColors": {
  1810  
  1811                          },
  1812                          "bars": false,
  1813                          "dashLength": 10,
  1814                          "dashes": false,
  1815                          "datasource": "$datasource",
  1816                          "fill": 10,
  1817                          "id": 12,
  1818                          "interval": "1m",
  1819                          "legend": {
  1820                              "alignAsTable": true,
  1821                              "avg": false,
  1822                              "current": false,
  1823                              "max": false,
  1824                              "min": false,
  1825                              "rightSide": true,
  1826                              "show": true,
  1827                              "total": false,
  1828                              "values": false
  1829                          },
  1830                          "lines": true,
  1831                          "linewidth": 0,
  1832                          "links": [
  1833  
  1834                          ],
  1835                          "nullPointMode": "null as zero",
  1836                          "percentage": false,
  1837                          "pointradius": 5,
  1838                          "points": false,
  1839                          "renderer": "flot",
  1840                          "seriesOverrides": [
  1841  
  1842                          ],
  1843                          "spaceLength": 10,
  1844                          "span": 6,
  1845                          "stack": true,
  1846                          "steppedLine": false,
  1847                          "targets": [
  1848                              {
  1849                                  "expr": "sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)",
  1850                                  "format": "time_series",
  1851                                  "intervalFactor": 2,
  1852                                  "legendFormat": "{{`{{`}}pod{{`}}`}}",
  1853                                  "legendLink": null,
  1854                                  "step": 10
  1855                              }
  1856                          ],
  1857                          "thresholds": [
  1858  
  1859                          ],
  1860                          "timeFrom": null,
  1861                          "timeShift": null,
  1862                          "title": "Rate of Received Packets",
  1863                          "tooltip": {
  1864                              "shared": false,
  1865                              "sort": 2,
  1866                              "value_type": "individual"
  1867                          },
  1868                          "type": "graph",
  1869                          "xaxis": {
  1870                              "buckets": null,
  1871                              "mode": "time",
  1872                              "name": null,
  1873                              "show": true,
  1874                              "values": [
  1875  
  1876                              ]
  1877                          },
  1878                          "yaxes": [
  1879                              {
  1880                                  "format": "pps",
  1881                                  "label": null,
  1882                                  "logBase": 1,
  1883                                  "max": null,
  1884                                  "min": 0,
  1885                                  "show": true
  1886                              },
  1887                              {
  1888                                  "format": "short",
  1889                                  "label": null,
  1890                                  "logBase": 1,
  1891                                  "max": null,
  1892                                  "min": null,
  1893                                  "show": false
  1894                              }
  1895                          ]
  1896                      },
  1897                      {
  1898                          "aliasColors": {
  1899  
  1900                          },
  1901                          "bars": false,
  1902                          "dashLength": 10,
  1903                          "dashes": false,
  1904                          "datasource": "$datasource",
  1905                          "fill": 10,
  1906                          "id": 13,
  1907                          "interval": "1m",
  1908                          "legend": {
  1909                              "alignAsTable": true,
  1910                              "avg": false,
  1911                              "current": false,
  1912                              "max": false,
  1913                              "min": false,
  1914                              "rightSide": true,
  1915                              "show": true,
  1916                              "total": false,
  1917                              "values": false
  1918                          },
  1919                          "lines": true,
  1920                          "linewidth": 0,
  1921                          "links": [
  1922  
  1923                          ],
  1924                          "nullPointMode": "null as zero",
  1925                          "percentage": false,
  1926                          "pointradius": 5,
  1927                          "points": false,
  1928                          "renderer": "flot",
  1929                          "seriesOverrides": [
  1930  
  1931                          ],
  1932                          "spaceLength": 10,
  1933                          "span": 6,
  1934                          "stack": true,
  1935                          "steppedLine": false,
  1936                          "targets": [
  1937                              {
  1938                                  "expr": "sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)",
  1939                                  "format": "time_series",
  1940                                  "intervalFactor": 2,
  1941                                  "legendFormat": "{{`{{`}}pod{{`}}`}}",
  1942                                  "legendLink": null,
  1943                                  "step": 10
  1944                              }
  1945                          ],
  1946                          "thresholds": [
  1947  
  1948                          ],
  1949                          "timeFrom": null,
  1950                          "timeShift": null,
  1951                          "title": "Rate of Transmitted Packets",
  1952                          "tooltip": {
  1953                              "shared": false,
  1954                              "sort": 2,
  1955                              "value_type": "individual"
  1956                          },
  1957                          "type": "graph",
  1958                          "xaxis": {
  1959                              "buckets": null,
  1960                              "mode": "time",
  1961                              "name": null,
  1962                              "show": true,
  1963                              "values": [
  1964  
  1965                              ]
  1966                          },
  1967                          "yaxes": [
  1968                              {
  1969                                  "format": "pps",
  1970                                  "label": null,
  1971                                  "logBase": 1,
  1972                                  "max": null,
  1973                                  "min": 0,
  1974                                  "show": true
  1975                              },
  1976                              {
  1977                                  "format": "short",
  1978                                  "label": null,
  1979                                  "logBase": 1,
  1980                                  "max": null,
  1981                                  "min": null,
  1982                                  "show": false
  1983                              }
  1984                          ]
  1985                      }
  1986                  ],
  1987                  "repeat": null,
  1988                  "repeatIteration": null,
  1989                  "repeatRowId": null,
  1990                  "showTitle": true,
  1991                  "title": "Rate of Packets",
  1992                  "titleSize": "h6"
  1993              },
  1994              {
  1995                  "collapse": false,
  1996                  "height": "250px",
  1997                  "panels": [
  1998                      {
  1999                          "aliasColors": {
  2000  
  2001                          },
  2002                          "bars": false,
  2003                          "dashLength": 10,
  2004                          "dashes": false,
  2005                          "datasource": "$datasource",
  2006                          "fill": 10,
  2007                          "id": 14,
  2008                          "interval": "1m",
  2009                          "legend": {
  2010                              "alignAsTable": true,
  2011                              "avg": false,
  2012                              "current": false,
  2013                              "max": false,
  2014                              "min": false,
  2015                              "rightSide": true,
  2016                              "show": true,
  2017                              "total": false,
  2018                              "values": false
  2019                          },
  2020                          "lines": true,
  2021                          "linewidth": 0,
  2022                          "links": [
  2023  
  2024                          ],
  2025                          "nullPointMode": "null as zero",
  2026                          "percentage": false,
  2027                          "pointradius": 5,
  2028                          "points": false,
  2029                          "renderer": "flot",
  2030                          "seriesOverrides": [
  2031  
  2032                          ],
  2033                          "spaceLength": 10,
  2034                          "span": 6,
  2035                          "stack": true,
  2036                          "steppedLine": false,
  2037                          "targets": [
  2038                              {
  2039                                  "expr": "sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)",
  2040                                  "format": "time_series",
  2041                                  "intervalFactor": 2,
  2042                                  "legendFormat": "{{`{{`}}pod{{`}}`}}",
  2043                                  "legendLink": null,
  2044                                  "step": 10
  2045                              }
  2046                          ],
  2047                          "thresholds": [
  2048  
  2049                          ],
  2050                          "timeFrom": null,
  2051                          "timeShift": null,
  2052                          "title": "Rate of Received Packets Dropped",
  2053                          "tooltip": {
  2054                              "shared": false,
  2055                              "sort": 2,
  2056                              "value_type": "individual"
  2057                          },
  2058                          "type": "graph",
  2059                          "xaxis": {
  2060                              "buckets": null,
  2061                              "mode": "time",
  2062                              "name": null,
  2063                              "show": true,
  2064                              "values": [
  2065  
  2066                              ]
  2067                          },
  2068                          "yaxes": [
  2069                              {
  2070                                  "format": "pps",
  2071                                  "label": null,
  2072                                  "logBase": 1,
  2073                                  "max": null,
  2074                                  "min": 0,
  2075                                  "show": true
  2076                              },
  2077                              {
  2078                                  "format": "short",
  2079                                  "label": null,
  2080                                  "logBase": 1,
  2081                                  "max": null,
  2082                                  "min": null,
  2083                                  "show": false
  2084                              }
  2085                          ]
  2086                      },
  2087                      {
  2088                          "aliasColors": {
  2089  
  2090                          },
  2091                          "bars": false,
  2092                          "dashLength": 10,
  2093                          "dashes": false,
  2094                          "datasource": "$datasource",
  2095                          "fill": 10,
  2096                          "id": 15,
  2097                          "interval": "1m",
  2098                          "legend": {
  2099                              "alignAsTable": true,
  2100                              "avg": false,
  2101                              "current": false,
  2102                              "max": false,
  2103                              "min": false,
  2104                              "rightSide": true,
  2105                              "show": true,
  2106                              "total": false,
  2107                              "values": false
  2108                          },
  2109                          "lines": true,
  2110                          "linewidth": 0,
  2111                          "links": [
  2112  
  2113                          ],
  2114                          "nullPointMode": "null as zero",
  2115                          "percentage": false,
  2116                          "pointradius": 5,
  2117                          "points": false,
  2118                          "renderer": "flot",
  2119                          "seriesOverrides": [
  2120  
  2121                          ],
  2122                          "spaceLength": 10,
  2123                          "span": 6,
  2124                          "stack": true,
  2125                          "steppedLine": false,
  2126                          "targets": [
  2127                              {
  2128                                  "expr": "sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)",
  2129                                  "format": "time_series",
  2130                                  "intervalFactor": 2,
  2131                                  "legendFormat": "{{`{{`}}pod{{`}}`}}",
  2132                                  "legendLink": null,
  2133                                  "step": 10
  2134                              }
  2135                          ],
  2136                          "thresholds": [
  2137  
  2138                          ],
  2139                          "timeFrom": null,
  2140                          "timeShift": null,
  2141                          "title": "Rate of Transmitted Packets Dropped",
  2142                          "tooltip": {
  2143                              "shared": false,
  2144                              "sort": 2,
  2145                              "value_type": "individual"
  2146                          },
  2147                          "type": "graph",
  2148                          "xaxis": {
  2149                              "buckets": null,
  2150                              "mode": "time",
  2151                              "name": null,
  2152                              "show": true,
  2153                              "values": [
  2154  
  2155                              ]
  2156                          },
  2157                          "yaxes": [
  2158                              {
  2159                                  "format": "pps",
  2160                                  "label": null,
  2161                                  "logBase": 1,
  2162                                  "max": null,
  2163                                  "min": 0,
  2164                                  "show": true
  2165                              },
  2166                              {
  2167                                  "format": "short",
  2168                                  "label": null,
  2169                                  "logBase": 1,
  2170                                  "max": null,
  2171                                  "min": null,
  2172                                  "show": false
  2173                              }
  2174                          ]
  2175                      }
  2176                  ],
  2177                  "repeat": null,
  2178                  "repeatIteration": null,
  2179                  "repeatRowId": null,
  2180                  "showTitle": true,
  2181                  "title": "Rate of Packets Dropped",
  2182                  "titleSize": "h6"
  2183              },
  2184              {
  2185                  "collapse": false,
  2186                  "height": "250px",
  2187                  "panels": [
  2188                      {
  2189                          "aliasColors": {
  2190  
  2191                          },
  2192                          "bars": false,
  2193                          "dashLength": 10,
  2194                          "dashes": false,
  2195                          "datasource": "$datasource",
  2196                          "decimals": -1,
  2197                          "fill": 10,
  2198                          "id": 16,
  2199                          "interval": "1m",
  2200                          "legend": {
  2201                              "alignAsTable": true,
  2202                              "avg": false,
  2203                              "current": false,
  2204                              "max": false,
  2205                              "min": false,
  2206                              "rightSide": true,
  2207                              "show": true,
  2208                              "total": false,
  2209                              "values": false
  2210                          },
  2211                          "lines": true,
  2212                          "linewidth": 0,
  2213                          "links": [
  2214  
  2215                          ],
  2216                          "nullPointMode": "null as zero",
  2217                          "percentage": false,
  2218                          "pointradius": 5,
  2219                          "points": false,
  2220                          "renderer": "flot",
  2221                          "seriesOverrides": [
  2222  
  2223                          ],
  2224                          "spaceLength": 10,
  2225                          "span": 6,
  2226                          "stack": true,
  2227                          "steppedLine": false,
  2228                          "targets": [
  2229                              {
  2230                                  "expr": "ceil(sum by(pod) (rate(container_fs_reads_total{container!=\"\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]) + rate(container_fs_writes_total{container!=\"\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])))",
  2231                                  "format": "time_series",
  2232                                  "intervalFactor": 2,
  2233                                  "legendFormat": "{{`{{`}}pod{{`}}`}}",
  2234                                  "legendLink": null,
  2235                                  "step": 10
  2236                              }
  2237                          ],
  2238                          "thresholds": [
  2239  
  2240                          ],
  2241                          "timeFrom": null,
  2242                          "timeShift": null,
  2243                          "title": "IOPS(Reads+Writes)",
  2244                          "tooltip": {
  2245                              "shared": false,
  2246                              "sort": 2,
  2247                              "value_type": "individual"
  2248                          },
  2249                          "type": "graph",
  2250                          "xaxis": {
  2251                              "buckets": null,
  2252                              "mode": "time",
  2253                              "name": null,
  2254                              "show": true,
  2255                              "values": [
  2256  
  2257                              ]
  2258                          },
  2259                          "yaxes": [
  2260                              {
  2261                                  "format": "short",
  2262                                  "label": null,
  2263                                  "logBase": 1,
  2264                                  "max": null,
  2265                                  "min": 0,
  2266                                  "show": true
  2267                              },
  2268                              {
  2269                                  "format": "short",
  2270                                  "label": null,
  2271                                  "logBase": 1,
  2272                                  "max": null,
  2273                                  "min": null,
  2274                                  "show": false
  2275                              }
  2276                          ]
  2277                      },
  2278                      {
  2279                          "aliasColors": {
  2280  
  2281                          },
  2282                          "bars": false,
  2283                          "dashLength": 10,
  2284                          "dashes": false,
  2285                          "datasource": "$datasource",
  2286                          "fill": 10,
  2287                          "id": 17,
  2288                          "interval": "1m",
  2289                          "legend": {
  2290                              "alignAsTable": true,
  2291                              "avg": false,
  2292                              "current": false,
  2293                              "max": false,
  2294                              "min": false,
  2295                              "rightSide": true,
  2296                              "show": true,
  2297                              "total": false,
  2298                              "values": false
  2299                          },
  2300                          "lines": true,
  2301                          "linewidth": 0,
  2302                          "links": [
  2303  
  2304                          ],
  2305                          "nullPointMode": "null as zero",
  2306                          "percentage": false,
  2307                          "pointradius": 5,
  2308                          "points": false,
  2309                          "renderer": "flot",
  2310                          "seriesOverrides": [
  2311  
  2312                          ],
  2313                          "spaceLength": 10,
  2314                          "span": 6,
  2315                          "stack": true,
  2316                          "steppedLine": false,
  2317                          "targets": [
  2318                              {
  2319                                  "expr": "sum by(pod) (rate(container_fs_reads_bytes_total{container!=\"\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]) + rate(container_fs_writes_bytes_total{container!=\"\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))",
  2320                                  "format": "time_series",
  2321                                  "intervalFactor": 2,
  2322                                  "legendFormat": "{{`{{`}}pod{{`}}`}}",
  2323                                  "legendLink": null,
  2324                                  "step": 10
  2325                              }
  2326                          ],
  2327                          "thresholds": [
  2328  
  2329                          ],
  2330                          "timeFrom": null,
  2331                          "timeShift": null,
  2332                          "title": "ThroughPut(Read+Write)",
  2333                          "tooltip": {
  2334                              "shared": false,
  2335                              "sort": 2,
  2336                              "value_type": "individual"
  2337                          },
  2338                          "type": "graph",
  2339                          "xaxis": {
  2340                              "buckets": null,
  2341                              "mode": "time",
  2342                              "name": null,
  2343                              "show": true,
  2344                              "values": [
  2345  
  2346                              ]
  2347                          },
  2348                          "yaxes": [
  2349                              {
  2350                                  "format": "Bps",
  2351                                  "label": null,
  2352                                  "logBase": 1,
  2353                                  "max": null,
  2354                                  "min": 0,
  2355                                  "show": true
  2356                              },
  2357                              {
  2358                                  "format": "short",
  2359                                  "label": null,
  2360                                  "logBase": 1,
  2361                                  "max": null,
  2362                                  "min": null,
  2363                                  "show": false
  2364                              }
  2365                          ]
  2366                      }
  2367                  ],
  2368                  "repeat": null,
  2369                  "repeatIteration": null,
  2370                  "repeatRowId": null,
  2371                  "showTitle": true,
  2372                  "title": "Storage IO",
  2373                  "titleSize": "h6"
  2374              },
  2375              {
  2376                  "collapse": false,
  2377                  "height": "250px",
  2378                  "panels": [
  2379                      {
  2380                          "aliasColors": {
  2381  
  2382                          },
  2383                          "bars": false,
  2384                          "dashLength": 10,
  2385                          "dashes": false,
  2386                          "datasource": "$datasource",
  2387                          "fill": 1,
  2388                          "id": 18,
  2389                          "interval": "1m",
  2390                          "legend": {
  2391                              "alignAsTable": true,
  2392                              "avg": false,
  2393                              "current": false,
  2394                              "max": false,
  2395                              "min": false,
  2396                              "rightSide": true,
  2397                              "show": true,
  2398                              "total": false,
  2399                              "values": false
  2400                          },
  2401                          "lines": true,
  2402                          "linewidth": 1,
  2403                          "links": [
  2404  
  2405                          ],
  2406                          "nullPointMode": "null as zero",
  2407                          "percentage": false,
  2408                          "pointradius": 5,
  2409                          "points": false,
  2410                          "renderer": "flot",
  2411                          "seriesOverrides": [
  2412  
  2413                          ],
  2414                          "sort": {
  2415                              "col": 4,
  2416                              "desc": true
  2417                          },
  2418                          "spaceLength": 10,
  2419                          "span": 12,
  2420                          "stack": false,
  2421                          "steppedLine": false,
  2422                          "styles": [
  2423                              {
  2424                                  "alias": "Time",
  2425                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  2426                                  "pattern": "Time",
  2427                                  "type": "hidden"
  2428                              },
  2429                              {
  2430                                  "alias": "IOPS(Reads)",
  2431                                  "colorMode": null,
  2432                                  "colors": [
  2433  
  2434                                  ],
  2435                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  2436                                  "decimals": -1,
  2437                                  "link": false,
  2438                                  "linkTargetBlank": false,
  2439                                  "linkTooltip": "Drill down",
  2440                                  "linkUrl": "",
  2441                                  "pattern": "Value #A",
  2442                                  "thresholds": [
  2443  
  2444                                  ],
  2445                                  "type": "number",
  2446                                  "unit": "short"
  2447                              },
  2448                              {
  2449                                  "alias": "IOPS(Writes)",
  2450                                  "colorMode": null,
  2451                                  "colors": [
  2452  
  2453                                  ],
  2454                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  2455                                  "decimals": -1,
  2456                                  "link": false,
  2457                                  "linkTargetBlank": false,
  2458                                  "linkTooltip": "Drill down",
  2459                                  "linkUrl": "",
  2460                                  "pattern": "Value #B",
  2461                                  "thresholds": [
  2462  
  2463                                  ],
  2464                                  "type": "number",
  2465                                  "unit": "short"
  2466                              },
  2467                              {
  2468                                  "alias": "IOPS(Reads + Writes)",
  2469                                  "colorMode": null,
  2470                                  "colors": [
  2471  
  2472                                  ],
  2473                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  2474                                  "decimals": -1,
  2475                                  "link": false,
  2476                                  "linkTargetBlank": false,
  2477                                  "linkTooltip": "Drill down",
  2478                                  "linkUrl": "",
  2479                                  "pattern": "Value #C",
  2480                                  "thresholds": [
  2481  
  2482                                  ],
  2483                                  "type": "number",
  2484                                  "unit": "short"
  2485                              },
  2486                              {
  2487                                  "alias": "Throughput(Read)",
  2488                                  "colorMode": null,
  2489                                  "colors": [
  2490  
  2491                                  ],
  2492                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  2493                                  "decimals": 2,
  2494                                  "link": false,
  2495                                  "linkTargetBlank": false,
  2496                                  "linkTooltip": "Drill down",
  2497                                  "linkUrl": "",
  2498                                  "pattern": "Value #D",
  2499                                  "thresholds": [
  2500  
  2501                                  ],
  2502                                  "type": "number",
  2503                                  "unit": "Bps"
  2504                              },
  2505                              {
  2506                                  "alias": "Throughput(Write)",
  2507                                  "colorMode": null,
  2508                                  "colors": [
  2509  
  2510                                  ],
  2511                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  2512                                  "decimals": 2,
  2513                                  "link": false,
  2514                                  "linkTargetBlank": false,
  2515                                  "linkTooltip": "Drill down",
  2516                                  "linkUrl": "",
  2517                                  "pattern": "Value #E",
  2518                                  "thresholds": [
  2519  
  2520                                  ],
  2521                                  "type": "number",
  2522                                  "unit": "Bps"
  2523                              },
  2524                              {
  2525                                  "alias": "Throughput(Read + Write)",
  2526                                  "colorMode": null,
  2527                                  "colors": [
  2528  
  2529                                  ],
  2530                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  2531                                  "decimals": 2,
  2532                                  "link": false,
  2533                                  "linkTargetBlank": false,
  2534                                  "linkTooltip": "Drill down",
  2535                                  "linkUrl": "",
  2536                                  "pattern": "Value #F",
  2537                                  "thresholds": [
  2538  
  2539                                  ],
  2540                                  "type": "number",
  2541                                  "unit": "Bps"
  2542                              },
  2543                              {
  2544                                  "alias": "Pod",
  2545                                  "colorMode": null,
  2546                                  "colors": [
  2547  
  2548                                  ],
  2549                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  2550                                  "decimals": 2,
  2551                                  "link": true,
  2552                                  "linkTargetBlank": false,
  2553                                  "linkTooltip": "Drill down to pods",
  2554                                  "linkUrl": "/d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell",
  2555                                  "pattern": "pod",
  2556                                  "thresholds": [
  2557  
  2558                                  ],
  2559                                  "type": "number",
  2560                                  "unit": "short"
  2561                              },
  2562                              {
  2563                                  "alias": "",
  2564                                  "colorMode": null,
  2565                                  "colors": [
  2566  
  2567                                  ],
  2568                                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  2569                                  "decimals": 2,
  2570                                  "pattern": "/.*/",
  2571                                  "thresholds": [
  2572  
  2573                                  ],
  2574                                  "type": "string",
  2575                                  "unit": "short"
  2576                              }
  2577                          ],
  2578                          "targets": [
  2579                              {
  2580                                  "expr": "sum by(pod) (rate(container_fs_reads_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))",
  2581                                  "format": "table",
  2582                                  "instant": true,
  2583                                  "intervalFactor": 2,
  2584                                  "legendFormat": "",
  2585                                  "refId": "A",
  2586                                  "step": 10
  2587                              },
  2588                              {
  2589                                  "expr": "sum by(pod) (rate(container_fs_writes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))",
  2590                                  "format": "table",
  2591                                  "instant": true,
  2592                                  "intervalFactor": 2,
  2593                                  "legendFormat": "",
  2594                                  "refId": "B",
  2595                                  "step": 10
  2596                              },
  2597                              {
  2598                                  "expr": "sum by(pod) (rate(container_fs_reads_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]) + rate(container_fs_writes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))",
  2599                                  "format": "table",
  2600                                  "instant": true,
  2601                                  "intervalFactor": 2,
  2602                                  "legendFormat": "",
  2603                                  "refId": "C",
  2604                                  "step": 10
  2605                              },
  2606                              {
  2607                                  "expr": "sum by(pod) (rate(container_fs_reads_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))",
  2608                                  "format": "table",
  2609                                  "instant": true,
  2610                                  "intervalFactor": 2,
  2611                                  "legendFormat": "",
  2612                                  "refId": "D",
  2613                                  "step": 10
  2614                              },
  2615                              {
  2616                                  "expr": "sum by(pod) (rate(container_fs_writes_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))",
  2617                                  "format": "table",
  2618                                  "instant": true,
  2619                                  "intervalFactor": 2,
  2620                                  "legendFormat": "",
  2621                                  "refId": "E",
  2622                                  "step": 10
  2623                              },
  2624                              {
  2625                                  "expr": "sum by(pod) (rate(container_fs_reads_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]) + rate(container_fs_writes_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))",
  2626                                  "format": "table",
  2627                                  "instant": true,
  2628                                  "intervalFactor": 2,
  2629                                  "legendFormat": "",
  2630                                  "refId": "F",
  2631                                  "step": 10
  2632                              }
  2633                          ],
  2634                          "thresholds": [
  2635  
  2636                          ],
  2637                          "timeFrom": null,
  2638                          "timeShift": null,
  2639                          "title": "Current Storage IO",
  2640                          "tooltip": {
  2641                              "shared": false,
  2642                              "sort": 2,
  2643                              "value_type": "individual"
  2644                          },
  2645                          "transform": "table",
  2646                          "type": "table",
  2647                          "xaxis": {
  2648                              "buckets": null,
  2649                              "mode": "time",
  2650                              "name": null,
  2651                              "show": true,
  2652                              "values": [
  2653  
  2654                              ]
  2655                          },
  2656                          "yaxes": [
  2657                              {
  2658                                  "format": "short",
  2659                                  "label": null,
  2660                                  "logBase": 1,
  2661                                  "max": null,
  2662                                  "min": 0,
  2663                                  "show": true
  2664                              },
  2665                              {
  2666                                  "format": "short",
  2667                                  "label": null,
  2668                                  "logBase": 1,
  2669                                  "max": null,
  2670                                  "min": null,
  2671                                  "show": false
  2672                              }
  2673                          ]
  2674                      }
  2675                  ],
  2676                  "repeat": null,
  2677                  "repeatIteration": null,
  2678                  "repeatRowId": null,
  2679                  "showTitle": true,
  2680                  "title": "Storage IO - Distribution",
  2681                  "titleSize": "h6"
  2682              }
  2683          ],
  2684          "schemaVersion": 14,
  2685          "style": "dark",
  2686          "tags": [
  2687              "kubernetes-mixin"
  2688          ],
  2689          "templating": {
  2690              "list": [
  2691                  {
  2692                      "current": {
  2693                          "text": "default",
  2694                          "value": "default"
  2695                      },
  2696                      "hide": 0,
  2697                      "label": "Data Source",
  2698                      "name": "datasource",
  2699                      "options": [
  2700  
  2701                      ],
  2702                      "query": "prometheus",
  2703                      "refresh": 1,
  2704                      "regex": "",
  2705                      "type": "datasource"
  2706                  },
  2707                  {
  2708                      "allValue": null,
  2709                      "current": {
  2710                          "text": "",
  2711                          "value": ""
  2712                      },
  2713                      "datasource": "$datasource",
  2714                      "hide": {{ if .Values.grafana.sidecar.dashboards.multicluster.global.enabled }}0{{ else }}2{{ end }},
  2715                      "includeAll": false,
  2716                      "label": null,
  2717                      "multi": false,
  2718                      "name": "cluster",
  2719                      "options": [
  2720  
  2721                      ],
  2722                      "query": "label_values(up{job=\"kube-state-metrics\"}, cluster)",
  2723                      "refresh": 2,
  2724                      "regex": "",
  2725                      "sort": 1,
  2726                      "tagValuesQuery": "",
  2727                      "tags": [
  2728  
  2729                      ],
  2730                      "tagsQuery": "",
  2731                      "type": "query",
  2732                      "useTags": false
  2733                  },
  2734                  {
  2735                      "allValue": null,
  2736                      "current": {
  2737                          "text": "",
  2738                          "value": ""
  2739                      },
  2740                      "datasource": "$datasource",
  2741                      "hide": 0,
  2742                      "includeAll": false,
  2743                      "label": null,
  2744                      "multi": false,
  2745                      "name": "namespace",
  2746                      "options": [
  2747  
  2748                      ],
  2749                      "query": "label_values(kube_namespace_status_phase{job=\"kube-state-metrics\", cluster=\"$cluster\"}, namespace)",
  2750                      "refresh": 2,
  2751                      "regex": "",
  2752                      "sort": 1,
  2753                      "tagValuesQuery": "",
  2754                      "tags": [
  2755  
  2756                      ],
  2757                      "tagsQuery": "",
  2758                      "type": "query",
  2759                      "useTags": false
  2760                  }
  2761              ]
  2762          },
  2763          "time": {
  2764              "from": "now-1h",
  2765              "to": "now"
  2766          },
  2767          "timepicker": {
  2768              "refresh_intervals": [
  2769                  "5s",
  2770                  "10s",
  2771                  "30s",
  2772                  "1m",
  2773                  "5m",
  2774                  "15m",
  2775                  "30m",
  2776                  "1h",
  2777                  "2h",
  2778                  "1d"
  2779              ],
  2780              "time_options": [
  2781                  "5m",
  2782                  "15m",
  2783                  "1h",
  2784                  "6h",
  2785                  "12h",
  2786                  "24h",
  2787                  "2d",
  2788                  "7d",
  2789                  "30d"
  2790              ]
  2791          },
  2792          "timezone": "{{ .Values.grafana.defaultDashboardsTimezone }}",
  2793          "title": "Kubernetes / Compute Resources / Namespace (Pods)",
  2794          "uid": "85a562078cdf77779eaa1add43ccec1e",
  2795          "version": 0
  2796      }
  2797  {{- end }}