github.com/caos/orbos@v1.5.14-0.20221103111702-e6cd0cea7ad4/dashboards/persistentvolumesusage/json/persistentvolumesusage.json (about)

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