1 # Generated from 'persistentvolumesusage' from https://raw.githubusercontent.com/coreos/prometheus-operator/master/contrib/kube-prometheus/manifests/grafana-dashboardDefinitions.yaml
2 # Do not change in-place! In order to change this file first read following link:
3 # https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
4 {{- if and .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }}
8 name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "persistentvolumesusage" | trunc 63 | trimSuffix "-" }}
10 {{- if $.Values.grafana.sidecar.dashboards.label }}
11 {{ $.Values.grafana.sidecar.dashboards.label }}: "1"
13 app: {{ template "prometheus-operator.name" $ }}-grafana
14 {{ include "prometheus-operator.labels" $ | indent 4 }}
16 persistentvolumesusage.json: |-
32 "hideControls": false,
50 "datasource": "$datasource",
57 "alignAsTable": false,
72 "nullPointMode": "null",
87 "expr": "(kubelet_volume_stats_capacity_bytes{job=\"kubelet\", persistentvolumeclaim=\"$volume\"} - kubelet_volume_stats_available_bytes{job=\"kubelet\", persistentvolumeclaim=\"$volume\"}) / kubelet_volume_stats_capacity_bytes{job=\"kubelet\", persistentvolumeclaim=\"$volume\"} * 100\n",
88 "format": "time_series",
90 "legendFormat": "{{`{{ Usage }}`}}",
99 "title": "Volume Space Usage",
103 "value_type": "individual"
136 "repeatIteration": null,
139 "title": "Dashboard Row",
154 "datasource": "$datasource",
161 "alignAsTable": false,
176 "nullPointMode": "null",
188 "steppedLine": false,
191 "expr": "kubelet_volume_stats_inodes_used{job=\"kubelet\", persistentvolumeclaim=\"$volume\"} / kubelet_volume_stats_inodes{job=\"kubelet\", persistentvolumeclaim=\"$volume\"} * 100\n",
192 "format": "time_series",
194 "legendFormat": "{{`{{ Usage }}`}}",
203 "title": "Volume inodes Usage",
207 "value_type": "individual"
240 "repeatIteration": null,
243 "title": "Dashboard Row",
257 "text": "Prometheus",
258 "value": "Prometheus"
262 "name": "datasource",
266 "query": "prometheus",
276 "datasource": "$datasource",
279 "label": "Namespace",
285 "query": "label_values(kubelet_volume_stats_capacity_bytes{job=\"kubelet\"}, exported_namespace)",
289 "tagValuesQuery": "",
302 "datasource": "$datasource",
305 "label": "PersistentVolumeClaim",
311 "query": "label_values(kubelet_volume_stats_capacity_bytes{job=\"kubelet\", exported_namespace=\"$namespace\"}, persistentvolumeclaim)",
315 "tagValuesQuery": "",
330 "refresh_intervals": [
355 "title": "Kubernetes / Persistent Volumes",
356 "uid": "919b92a8e8041bd567af9edab12c840c",