Refactor Distributed Analytics project structure
[demo.git] / vnfs / DAaaS / deploy / operator / charts / prometheus-operator / templates / grafana / dashboards / persistentvolumesusage.yaml
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 }}
5 apiVersion: v1
6 kind: ConfigMap
7 metadata:
8   name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "persistentvolumesusage" | trunc 63 | trimSuffix "-" }}
9   labels:
10     {{- if $.Values.grafana.sidecar.dashboards.label }}
11     {{ $.Values.grafana.sidecar.dashboards.label }}: "1"
12     {{- end }}
13     app: {{ template "prometheus-operator.name" $ }}-grafana
14 {{ include "prometheus-operator.labels" $ | indent 4 }}
15 data:
16   persistentvolumesusage.json: |-
17     {
18         "__inputs": [
19
20         ],
21         "__requires": [
22
23         ],
24         "annotations": {
25             "list": [
26
27             ]
28         },
29         "editable": false,
30         "gnetId": null,
31         "graphTooltip": 0,
32         "hideControls": false,
33         "id": null,
34         "links": [
35
36         ],
37         "refresh": "",
38         "rows": [
39             {
40                 "collapse": false,
41                 "collapsed": false,
42                 "panels": [
43                     {
44                         "aliasColors": {
45
46                         },
47                         "bars": false,
48                         "dashLength": 10,
49                         "dashes": false,
50                         "datasource": "$datasource",
51                         "fill": 1,
52                         "gridPos": {
53
54                         },
55                         "id": 2,
56                         "legend": {
57                             "alignAsTable": false,
58                             "avg": true,
59                             "current": true,
60                             "max": true,
61                             "min": true,
62                             "rightSide": false,
63                             "show": true,
64                             "total": false,
65                             "values": true
66                         },
67                         "lines": true,
68                         "linewidth": 1,
69                         "links": [
70
71                         ],
72                         "nullPointMode": "null",
73                         "percentage": false,
74                         "pointradius": 5,
75                         "points": false,
76                         "renderer": "flot",
77                         "repeat": null,
78                         "seriesOverrides": [
79
80                         ],
81                         "spaceLength": 10,
82                         "span": 12,
83                         "stack": false,
84                         "steppedLine": false,
85                         "targets": [
86                             {
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",
89                                 "intervalFactor": 1,
90                                 "legendFormat": "{{`{{ Usage }}`}}",
91                                 "refId": "A"
92                             }
93                         ],
94                         "thresholds": [
95
96                         ],
97                         "timeFrom": null,
98                         "timeShift": null,
99                         "title": "Volume Space Usage",
100                         "tooltip": {
101                             "shared": true,
102                             "sort": 0,
103                             "value_type": "individual"
104                         },
105                         "type": "graph",
106                         "xaxis": {
107                             "buckets": null,
108                             "mode": "time",
109                             "name": null,
110                             "show": true,
111                             "values": [
112
113                             ]
114                         },
115                         "yaxes": [
116                             {
117                                 "format": "percent",
118                                 "label": null,
119                                 "logBase": 1,
120                                 "max": 100,
121                                 "min": 0,
122                                 "show": true
123                             },
124                             {
125                                 "format": "percent",
126                                 "label": null,
127                                 "logBase": 1,
128                                 "max": 100,
129                                 "min": 0,
130                                 "show": true
131                             }
132                         ]
133                     }
134                 ],
135                 "repeat": null,
136                 "repeatIteration": null,
137                 "repeatRowId": null,
138                 "showTitle": false,
139                 "title": "Dashboard Row",
140                 "titleSize": "h6",
141                 "type": "row"
142             },
143             {
144                 "collapse": false,
145                 "collapsed": false,
146                 "panels": [
147                     {
148                         "aliasColors": {
149
150                         },
151                         "bars": false,
152                         "dashLength": 10,
153                         "dashes": false,
154                         "datasource": "$datasource",
155                         "fill": 1,
156                         "gridPos": {
157
158                         },
159                         "id": 3,
160                         "legend": {
161                             "alignAsTable": false,
162                             "avg": true,
163                             "current": true,
164                             "max": true,
165                             "min": true,
166                             "rightSide": false,
167                             "show": true,
168                             "total": false,
169                             "values": true
170                         },
171                         "lines": true,
172                         "linewidth": 1,
173                         "links": [
174
175                         ],
176                         "nullPointMode": "null",
177                         "percentage": false,
178                         "pointradius": 5,
179                         "points": false,
180                         "renderer": "flot",
181                         "repeat": null,
182                         "seriesOverrides": [
183
184                         ],
185                         "spaceLength": 10,
186                         "span": 12,
187                         "stack": false,
188                         "steppedLine": false,
189                         "targets": [
190                             {
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",
193                                 "intervalFactor": 1,
194                                 "legendFormat": "{{`{{ Usage }}`}}",
195                                 "refId": "A"
196                             }
197                         ],
198                         "thresholds": [
199
200                         ],
201                         "timeFrom": null,
202                         "timeShift": null,
203                         "title": "Volume inodes Usage",
204                         "tooltip": {
205                             "shared": true,
206                             "sort": 0,
207                             "value_type": "individual"
208                         },
209                         "type": "graph",
210                         "xaxis": {
211                             "buckets": null,
212                             "mode": "time",
213                             "name": null,
214                             "show": true,
215                             "values": [
216
217                             ]
218                         },
219                         "yaxes": [
220                             {
221                                 "format": "percent",
222                                 "label": null,
223                                 "logBase": 1,
224                                 "max": 100,
225                                 "min": 0,
226                                 "show": true
227                             },
228                             {
229                                 "format": "percent",
230                                 "label": null,
231                                 "logBase": 1,
232                                 "max": 100,
233                                 "min": 0,
234                                 "show": true
235                             }
236                         ]
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         "schemaVersion": 14,
249         "style": "dark",
250         "tags": [
251             "kubernetes-mixin"
252         ],
253         "templating": {
254             "list": [
255                 {
256                     "current": {
257                         "text": "Prometheus",
258                         "value": "Prometheus"
259                     },
260                     "hide": 0,
261                     "label": null,
262                     "name": "datasource",
263                     "options": [
264
265                     ],
266                     "query": "prometheus",
267                     "refresh": 1,
268                     "regex": "",
269                     "type": "datasource"
270                 },
271                 {
272                     "allValue": null,
273                     "current": {
274
275                     },
276                     "datasource": "$datasource",
277                     "hide": 0,
278                     "includeAll": false,
279                     "label": "Namespace",
280                     "multi": false,
281                     "name": "namespace",
282                     "options": [
283
284                     ],
285                     "query": "label_values(kubelet_volume_stats_capacity_bytes{job=\"kubelet\"}, exported_namespace)",
286                     "refresh": 2,
287                     "regex": "",
288                     "sort": 0,
289                     "tagValuesQuery": "",
290                     "tags": [
291
292                     ],
293                     "tagsQuery": "",
294                     "type": "query",
295                     "useTags": false
296                 },
297                 {
298                     "allValue": null,
299                     "current": {
300
301                     },
302                     "datasource": "$datasource",
303                     "hide": 0,
304                     "includeAll": false,
305                     "label": "PersistentVolumeClaim",
306                     "multi": false,
307                     "name": "volume",
308                     "options": [
309
310                     ],
311                     "query": "label_values(kubelet_volume_stats_capacity_bytes{job=\"kubelet\", exported_namespace=\"$namespace\"}, persistentvolumeclaim)",
312                     "refresh": 2,
313                     "regex": "",
314                     "sort": 0,
315                     "tagValuesQuery": "",
316                     "tags": [
317
318                     ],
319                     "tagsQuery": "",
320                     "type": "query",
321                     "useTags": false
322                 }
323             ]
324         },
325         "time": {
326             "from": "now-7d",
327             "to": "now"
328         },
329         "timepicker": {
330             "refresh_intervals": [
331                 "5s",
332                 "10s",
333                 "30s",
334                 "1m",
335                 "5m",
336                 "15m",
337                 "30m",
338                 "1h",
339                 "2h",
340                 "1d"
341             ],
342             "time_options": [
343                 "5m",
344                 "15m",
345                 "1h",
346                 "6h",
347                 "12h",
348                 "24h",
349                 "2d",
350                 "7d",
351                 "30d"
352             ]
353         },
354         "timezone": "",
355         "title": "Kubernetes / Persistent Volumes",
356         "uid": "919b92a8e8041bd567af9edab12c840c",
357         "version": 0
358     }
359 {{- end }}