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

     1  {{- /*
     2  Generated from 'persistentvolumesusage' 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" $) "persistentvolumesusage" | 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    persistentvolumesusage.json: |-
    23      {
    24          "__inputs": [
    25  
    26          ],
    27          "__requires": [
    28  
    29          ],
    30          "annotations": {
    31              "list": [
    32  
    33              ]
    34          },
    35          "editable": false,
    36          "gnetId": null,
    37          "graphTooltip": 0,
    38          "hideControls": false,
    39          "id": null,
    40          "links": [
    41  
    42          ],
    43          "refresh": "10s",
    44          "rows": [
    45              {
    46                  "collapse": false,
    47                  "collapsed": false,
    48                  "panels": [
    49                      {
    50                          "aliasColors": {
    51  
    52                          },
    53                          "bars": false,
    54                          "dashLength": 10,
    55                          "dashes": false,
    56                          "datasource": "$datasource",
    57                          "fill": 1,
    58                          "fillGradient": 0,
    59                          "gridPos": {
    60  
    61                          },
    62                          "id": 2,
    63                          "interval": "1m",
    64                          "legend": {
    65                              "alignAsTable": true,
    66                              "avg": true,
    67                              "current": true,
    68                              "max": true,
    69                              "min": true,
    70                              "rightSide": true,
    71                              "show": true,
    72                              "sideWidth": null,
    73                              "total": false,
    74                              "values": true
    75                          },
    76                          "lines": true,
    77                          "linewidth": 1,
    78                          "links": [
    79  
    80                          ],
    81                          "nullPointMode": "null",
    82                          "percentage": false,
    83                          "pointradius": 5,
    84                          "points": false,
    85                          "renderer": "flot",
    86                          "repeat": null,
    87                          "seriesOverrides": [
    88  
    89                          ],
    90                          "spaceLength": 10,
    91                          "span": 9,
    92                          "stack": true,
    93                          "steppedLine": false,
    94                          "targets": [
    95                              {
    96                                  "expr": "(\n  sum without(instance, node) (topk(1, (kubelet_volume_stats_capacity_bytes{verrazzano_cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n  -\n  sum without(instance, node) (topk(1, (kubelet_volume_stats_available_bytes{verrazzano_cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n)\n",
    97                                  "format": "time_series",
    98                                  "intervalFactor": 1,
    99                                  "legendFormat": "Used Space",
   100                                  "refId": "A"
   101                              },
   102                              {
   103                                  "expr": "sum without(instance, node) (topk(1, (kubelet_volume_stats_available_bytes{verrazzano_cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n",
   104                                  "format": "time_series",
   105                                  "intervalFactor": 1,
   106                                  "legendFormat": "Free Space",
   107                                  "refId": "B"
   108                              }
   109                          ],
   110                          "thresholds": [
   111  
   112                          ],
   113                          "timeFrom": null,
   114                          "timeShift": null,
   115                          "title": "Volume Space Usage",
   116                          "tooltip": {
   117                              "shared": false,
   118                              "sort": 0,
   119                              "value_type": "individual"
   120                          },
   121                          "type": "graph",
   122                          "xaxis": {
   123                              "buckets": null,
   124                              "mode": "time",
   125                              "name": null,
   126                              "show": true,
   127                              "values": [
   128  
   129                              ]
   130                          },
   131                          "yaxes": [
   132                              {
   133                                  "format": "bytes",
   134                                  "label": null,
   135                                  "logBase": 1,
   136                                  "max": null,
   137                                  "min": 0,
   138                                  "show": true
   139                              },
   140                              {
   141                                  "format": "bytes",
   142                                  "label": null,
   143                                  "logBase": 1,
   144                                  "max": null,
   145                                  "min": 0,
   146                                  "show": true
   147                              }
   148                          ]
   149                      },
   150                      {
   151                          "cacheTimeout": null,
   152                          "colorBackground": false,
   153                          "colorValue": false,
   154                          "colors": [
   155                              "rgba(50, 172, 45, 0.97)",
   156                              "rgba(237, 129, 40, 0.89)",
   157                              "rgba(245, 54, 54, 0.9)"
   158                          ],
   159                          "datasource": "$datasource",
   160                          "format": "percent",
   161                          "gauge": {
   162                              "maxValue": 100,
   163                              "minValue": 0,
   164                              "show": true,
   165                              "thresholdLabels": false,
   166                              "thresholdMarkers": true
   167                          },
   168                          "gridPos": {
   169  
   170                          },
   171                          "id": 3,
   172                          "interval": "1m",
   173                          "legend": {
   174                              "alignAsTable": true,
   175                              "rightSide": true
   176                          },
   177                          "links": [
   178  
   179                          ],
   180                          "mappingType": 1,
   181                          "mappingTypes": [
   182                              {
   183                                  "name": "value to text",
   184                                  "value": 1
   185                              },
   186                              {
   187                                  "name": "range to text",
   188                                  "value": 2
   189                              }
   190                          ],
   191                          "maxDataPoints": 100,
   192                          "nullPointMode": "connected",
   193                          "nullText": null,
   194                          "postfix": "",
   195                          "postfixFontSize": "50%",
   196                          "prefix": "",
   197                          "prefixFontSize": "50%",
   198                          "rangeMaps": [
   199                              {
   200                                  "from": "null",
   201                                  "text": "N/A",
   202                                  "to": "null"
   203                              }
   204                          ],
   205                          "span": 3,
   206                          "sparkline": {
   207                              "fillColor": "rgba(31, 118, 189, 0.18)",
   208                              "full": false,
   209                              "lineColor": "rgb(31, 120, 193)",
   210                              "show": false
   211                          },
   212                          "tableColumn": "",
   213                          "targets": [
   214                              {
   215                                  "expr": "max without(instance,node) (\n(\n  topk(1, kubelet_volume_stats_capacity_bytes{verrazzano_cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n  -\n  topk(1, kubelet_volume_stats_available_bytes{verrazzano_cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n)\n/\ntopk(1, kubelet_volume_stats_capacity_bytes{verrazzano_cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n* 100)\n",
   216                                  "format": "time_series",
   217                                  "intervalFactor": 2,
   218                                  "legendFormat": "",
   219                                  "refId": "A"
   220                              }
   221                          ],
   222                          "thresholds": "80, 90",
   223                          "title": "Volume Space Usage",
   224                          "tooltip": {
   225                              "shared": false
   226                          },
   227                          "type": "singlestat",
   228                          "valueFontSize": "80%",
   229                          "valueMaps": [
   230                              {
   231                                  "op": "=",
   232                                  "text": "N/A",
   233                                  "value": "null"
   234                              }
   235                          ],
   236                          "valueName": "current"
   237                      }
   238                  ],
   239                  "repeat": null,
   240                  "repeatIteration": null,
   241                  "repeatRowId": null,
   242                  "showTitle": false,
   243                  "title": "Dashboard Row",
   244                  "titleSize": "h6",
   245                  "type": "row"
   246              },
   247              {
   248                  "collapse": false,
   249                  "collapsed": false,
   250                  "panels": [
   251                      {
   252                          "aliasColors": {
   253  
   254                          },
   255                          "bars": false,
   256                          "dashLength": 10,
   257                          "dashes": false,
   258                          "datasource": "$datasource",
   259                          "fill": 1,
   260                          "fillGradient": 0,
   261                          "gridPos": {
   262  
   263                          },
   264                          "id": 4,
   265                          "interval": "1m",
   266                          "legend": {
   267                              "alignAsTable": true,
   268                              "avg": true,
   269                              "current": true,
   270                              "max": true,
   271                              "min": true,
   272                              "rightSide": true,
   273                              "show": true,
   274                              "sideWidth": null,
   275                              "total": false,
   276                              "values": true
   277                          },
   278                          "lines": true,
   279                          "linewidth": 1,
   280                          "links": [
   281  
   282                          ],
   283                          "nullPointMode": "null",
   284                          "percentage": false,
   285                          "pointradius": 5,
   286                          "points": false,
   287                          "renderer": "flot",
   288                          "repeat": null,
   289                          "seriesOverrides": [
   290  
   291                          ],
   292                          "spaceLength": 10,
   293                          "span": 9,
   294                          "stack": true,
   295                          "steppedLine": false,
   296                          "targets": [
   297                              {
   298                                  "expr": "sum without(instance, node) (topk(1, (kubelet_volume_stats_inodes_used{verrazzano_cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n",
   299                                  "format": "time_series",
   300                                  "intervalFactor": 1,
   301                                  "legendFormat": "Used inodes",
   302                                  "refId": "A"
   303                              },
   304                              {
   305                                  "expr": "(\n  sum without(instance, node) (topk(1, (kubelet_volume_stats_inodes{verrazzano_cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n  -\n  sum without(instance, node) (topk(1, (kubelet_volume_stats_inodes_used{verrazzano_cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n)\n",
   306                                  "format": "time_series",
   307                                  "intervalFactor": 1,
   308                                  "legendFormat": " Free inodes",
   309                                  "refId": "B"
   310                              }
   311                          ],
   312                          "thresholds": [
   313  
   314                          ],
   315                          "timeFrom": null,
   316                          "timeShift": null,
   317                          "title": "Volume inodes Usage",
   318                          "tooltip": {
   319                              "shared": false,
   320                              "sort": 0,
   321                              "value_type": "individual"
   322                          },
   323                          "type": "graph",
   324                          "xaxis": {
   325                              "buckets": null,
   326                              "mode": "time",
   327                              "name": null,
   328                              "show": true,
   329                              "values": [
   330  
   331                              ]
   332                          },
   333                          "yaxes": [
   334                              {
   335                                  "format": "none",
   336                                  "label": null,
   337                                  "logBase": 1,
   338                                  "max": null,
   339                                  "min": 0,
   340                                  "show": true
   341                              },
   342                              {
   343                                  "format": "none",
   344                                  "label": null,
   345                                  "logBase": 1,
   346                                  "max": null,
   347                                  "min": 0,
   348                                  "show": true
   349                              }
   350                          ]
   351                      },
   352                      {
   353                          "cacheTimeout": null,
   354                          "colorBackground": false,
   355                          "colorValue": false,
   356                          "colors": [
   357                              "rgba(50, 172, 45, 0.97)",
   358                              "rgba(237, 129, 40, 0.89)",
   359                              "rgba(245, 54, 54, 0.9)"
   360                          ],
   361                          "datasource": "$datasource",
   362                          "format": "percent",
   363                          "gauge": {
   364                              "maxValue": 100,
   365                              "minValue": 0,
   366                              "show": true,
   367                              "thresholdLabels": false,
   368                              "thresholdMarkers": true
   369                          },
   370                          "gridPos": {
   371  
   372                          },
   373                          "id": 5,
   374                          "interval": "1m",
   375                          "legend": {
   376                              "alignAsTable": true,
   377                              "rightSide": true
   378                          },
   379                          "links": [
   380  
   381                          ],
   382                          "mappingType": 1,
   383                          "mappingTypes": [
   384                              {
   385                                  "name": "value to text",
   386                                  "value": 1
   387                              },
   388                              {
   389                                  "name": "range to text",
   390                                  "value": 2
   391                              }
   392                          ],
   393                          "maxDataPoints": 100,
   394                          "nullPointMode": "connected",
   395                          "nullText": null,
   396                          "postfix": "",
   397                          "postfixFontSize": "50%",
   398                          "prefix": "",
   399                          "prefixFontSize": "50%",
   400                          "rangeMaps": [
   401                              {
   402                                  "from": "null",
   403                                  "text": "N/A",
   404                                  "to": "null"
   405                              }
   406                          ],
   407                          "span": 3,
   408                          "sparkline": {
   409                              "fillColor": "rgba(31, 118, 189, 0.18)",
   410                              "full": false,
   411                              "lineColor": "rgb(31, 120, 193)",
   412                              "show": false
   413                          },
   414                          "tableColumn": "",
   415                          "targets": [
   416                              {
   417                                  "expr": "max without(instance,node) (\ntopk(1, kubelet_volume_stats_inodes_used{verrazzano_cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n/\ntopk(1, kubelet_volume_stats_inodes{verrazzano_cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n* 100)\n",
   418                                  "format": "time_series",
   419                                  "intervalFactor": 2,
   420                                  "legendFormat": "",
   421                                  "refId": "A"
   422                              }
   423                          ],
   424                          "thresholds": "80, 90",
   425                          "title": "Volume inodes Usage",
   426                          "tooltip": {
   427                              "shared": false
   428                          },
   429                          "type": "singlestat",
   430                          "valueFontSize": "80%",
   431                          "valueMaps": [
   432                              {
   433                                  "op": "=",
   434                                  "text": "N/A",
   435                                  "value": "null"
   436                              }
   437                          ],
   438                          "valueName": "current"
   439                      }
   440                  ],
   441                  "repeat": null,
   442                  "repeatIteration": null,
   443                  "repeatRowId": null,
   444                  "showTitle": false,
   445                  "title": "Dashboard Row",
   446                  "titleSize": "h6",
   447                  "type": "row"
   448              }
   449          ],
   450          "schemaVersion": 14,
   451          "style": "dark",
   452          "tags": [
   453              "kubernetes-mixin"
   454          ],
   455          "templating": {
   456              "list": [
   457                  {
   458                      "current": {
   459                          "text": "default",
   460                          "value": "default"
   461                      },
   462                      "hide": 0,
   463                      "label": "Data Source",
   464                      "name": "datasource",
   465                      "options": [
   466  
   467                      ],
   468                      "query": "prometheus",
   469                      "refresh": 1,
   470                      "regex": "",
   471                      "type": "datasource"
   472                  },
   473                  {
   474                      "allValue": null,
   475                      "current": {
   476  
   477                      },
   478                      "datasource": "$datasource",
   479                      "hide": {{ if .Values.grafana.sidecar.dashboards.multicluster.global.enabled }}0{{ else }}2{{ end }},
   480                      "includeAll": false,
   481                      "label": "cluster",
   482                      "multi": false,
   483                      "name": "cluster",
   484                      "options": [
   485  
   486                      ],
   487                      "query": "label_values(kubelet_volume_stats_capacity_bytes{job=\"kubelet\"}, verrazzano_cluster)",
   488                      "refresh": 2,
   489                      "regex": "",
   490                      "sort": 1,
   491                      "tagValuesQuery": "",
   492                      "tags": [
   493  
   494                      ],
   495                      "tagsQuery": "",
   496                      "type": "query",
   497                      "useTags": false
   498                  },
   499                  {
   500                      "allValue": null,
   501                      "current": {
   502  
   503                      },
   504                      "datasource": "$datasource",
   505                      "hide": 0,
   506                      "includeAll": false,
   507                      "label": "Namespace",
   508                      "multi": false,
   509                      "name": "namespace",
   510                      "options": [
   511  
   512                      ],
   513                      "query": "label_values(kubelet_volume_stats_capacity_bytes{verrazzano_cluster=\"$cluster\", job=\"kubelet\"}, namespace)",
   514                      "refresh": 2,
   515                      "regex": "",
   516                      "sort": 1,
   517                      "tagValuesQuery": "",
   518                      "tags": [
   519  
   520                      ],
   521                      "tagsQuery": "",
   522                      "type": "query",
   523                      "useTags": false
   524                  },
   525                  {
   526                      "allValue": null,
   527                      "current": {
   528  
   529                      },
   530                      "datasource": "$datasource",
   531                      "hide": 0,
   532                      "includeAll": false,
   533                      "label": "PersistentVolumeClaim",
   534                      "multi": false,
   535                      "name": "volume",
   536                      "options": [
   537  
   538                      ],
   539                      "query": "label_values(kubelet_volume_stats_capacity_bytes{verrazzano_cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\"}, persistentvolumeclaim)",
   540                      "refresh": 2,
   541                      "regex": "",
   542                      "sort": 1,
   543                      "tagValuesQuery": "",
   544                      "tags": [
   545  
   546                      ],
   547                      "tagsQuery": "",
   548                      "type": "query",
   549                      "useTags": false
   550                  }
   551              ]
   552          },
   553          "time": {
   554              "from": "now-7d",
   555              "to": "now"
   556          },
   557          "timepicker": {
   558              "refresh_intervals": [
   559                  "5s",
   560                  "10s",
   561                  "30s",
   562                  "1m",
   563                  "5m",
   564                  "15m",
   565                  "30m",
   566                  "1h",
   567                  "2h",
   568                  "1d"
   569              ],
   570              "time_options": [
   571                  "5m",
   572                  "15m",
   573                  "1h",
   574                  "6h",
   575                  "12h",
   576                  "24h",
   577                  "2d",
   578                  "7d",
   579                  "30d"
   580              ]
   581          },
   582          "timezone": "{{ .Values.grafana.defaultDashboardsTimezone }}",
   583          "title": "Kubernetes / Persistent Volumes",
   584          "uid": "919b92a8e8041bd567af9edab12c840c",
   585          "version": 0
   586      }
   587  {{- end }}