]> git.proxmox.com Git - ceph.git/blob - ceph/monitoring/grafana/dashboards/pool-detail.json
buildsys: switch source download to quincy
[ceph.git] / ceph / monitoring / grafana / dashboards / pool-detail.json
1 {
2 "__inputs": [ ],
3 "__requires": [
4 {
5 "id": "grafana",
6 "name": "Grafana",
7 "type": "grafana",
8 "version": "5.3.2"
9 },
10 {
11 "id": "graph",
12 "name": "Graph",
13 "type": "panel",
14 "version": "5.0.0"
15 },
16 {
17 "id": "singlestat",
18 "name": "Singlestat",
19 "type": "panel",
20 "version": "5.0.0"
21 }
22 ],
23 "annotations": {
24 "list": [
25 {
26 "builtIn": 1,
27 "datasource": "-- Grafana --",
28 "enable": true,
29 "hide": true,
30 "iconColor": "rgba(0, 211, 255, 1)",
31 "name": "Annotations & Alerts",
32 "showIn": 0,
33 "tags": [ ],
34 "type": "dashboard"
35 }
36 ]
37 },
38 "description": "",
39 "editable": false,
40 "gnetId": null,
41 "graphTooltip": 0,
42 "hideControls": false,
43 "id": null,
44 "links": [ ],
45 "panels": [
46 {
47 "cacheTimeout": null,
48 "colorBackground": false,
49 "colorValue": true,
50 "colors": [
51 "#299c46",
52 "rgba(237, 129, 40, 0.89)",
53 "#d44a3a"
54 ],
55 "datasource": "$datasource",
56 "format": "percentunit",
57 "gauge": {
58 "maxValue": 1,
59 "minValue": 0,
60 "show": true,
61 "thresholdLabels": false,
62 "thresholdMarkers": true
63 },
64 "gridPos": {
65 "h": 7,
66 "w": 7,
67 "x": 0,
68 "y": 0
69 },
70 "id": 2,
71 "interval": null,
72 "links": [ ],
73 "mappingType": 1,
74 "mappingTypes": [
75 {
76 "name": "value to text",
77 "value": 1
78 },
79 {
80 "name": "range to text",
81 "value": 2
82 }
83 ],
84 "maxDataPoints": 100,
85 "nullPointMode": "connected",
86 "nullText": null,
87 "postfix": "",
88 "postfixFontSize": "50%",
89 "prefix": "",
90 "prefixFontSize": "50%",
91 "rangeMaps": [
92 {
93 "from": "null",
94 "text": "N/A",
95 "to": "null"
96 }
97 ],
98 "sparkline": {
99 "fillColor": "rgba(31, 118, 189, 0.18)",
100 "full": false,
101 "lineColor": "rgb(31, 120, 193)",
102 "show": true
103 },
104 "tableColumn": "",
105 "targets": [
106 {
107 "expr": "(ceph_pool_stored / (ceph_pool_stored + ceph_pool_max_avail)) * on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~\"$pool_name\"}",
108 "format": "time_series",
109 "intervalFactor": 1,
110 "legendFormat": "",
111 "refId": "A"
112 }
113 ],
114 "thresholds": ".7,.8",
115 "title": "Capacity used",
116 "type": "singlestat",
117 "valueFontSize": "80%",
118 "valueMaps": [
119 {
120 "op": "=",
121 "text": "N/A",
122 "value": "null"
123 }
124 ],
125 "valueName": "current"
126 },
127 {
128 "cacheTimeout": null,
129 "colorBackground": false,
130 "colorValue": 100,
131 "colors": [
132 "#299c46",
133 "rgba(237, 129, 40, 0.89)",
134 "#d44a3a"
135 ],
136 "datasource": "$datasource",
137 "description": "Time till pool is full assuming the average fill rate of the last 6 hours",
138 "format": "s",
139 "gauge": {
140 "maxValue": false,
141 "minValue": 0,
142 "show": false,
143 "thresholdLabels": false,
144 "thresholdMarkers": true
145 },
146 "gridPos": {
147 "h": 7,
148 "w": 5,
149 "x": 7,
150 "y": 0
151 },
152 "id": 3,
153 "interval": null,
154 "links": [ ],
155 "mappingType": 1,
156 "mappingTypes": [
157 {
158 "name": "value to text",
159 "value": 1
160 },
161 {
162 "name": "range to text",
163 "value": 2
164 }
165 ],
166 "maxDataPoints": 100,
167 "nullPointMode": "connected",
168 "nullText": null,
169 "postfix": "",
170 "postfixFontSize": "50%",
171 "prefix": "",
172 "prefixFontSize": "50%",
173 "rangeMaps": [
174 {
175 "from": "null",
176 "text": "N/A",
177 "to": "null"
178 }
179 ],
180 "sparkline": {
181 "fillColor": "rgba(31, 118, 189, 0.18)",
182 "full": false,
183 "lineColor": "rgb(31, 120, 193)",
184 "show": ""
185 },
186 "tableColumn": "",
187 "targets": [
188 {
189 "expr": "(ceph_pool_max_avail / deriv(ceph_pool_stored[6h])) * on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~\"$pool_name\"} > 0",
190 "format": "time_series",
191 "intervalFactor": 1,
192 "legendFormat": "",
193 "refId": "A"
194 }
195 ],
196 "thresholds": "current",
197 "title": "Time till full",
198 "type": "singlestat",
199 "valueFontSize": "80%",
200 "valueMaps": [
201 {
202 "op": "=",
203 "text": "N/A",
204 "value": "null"
205 }
206 ],
207 "valueName": false
208 },
209 {
210 "aliasColors": {
211 "read_op_per_sec": "#3F6833",
212 "write_op_per_sec": "#E5AC0E"
213 },
214 "bars": false,
215 "dashLength": 10,
216 "dashes": false,
217 "datasource": "$datasource",
218 "description": "",
219 "fill": 1,
220 "gridPos": {
221 "h": 7,
222 "w": 12,
223 "x": 12,
224 "y": 0
225 },
226 "id": 4,
227 "legend": {
228 "alignAsTable": false,
229 "avg": false,
230 "current": false,
231 "max": false,
232 "min": false,
233 "rightSide": false,
234 "show": true,
235 "sideWidth": null,
236 "total": false,
237 "values": false
238 },
239 "lines": true,
240 "linewidth": 1,
241 "links": [ ],
242 "nullPointMode": "null as zero",
243 "percentage": false,
244 "pointradius": 5,
245 "points": false,
246 "renderer": "flot",
247 "repeat": null,
248 "seriesOverrides": [ ],
249 "spaceLength": 10,
250 "stack": false,
251 "steppedLine": false,
252 "targets": [
253 {
254 "expr": "deriv(ceph_pool_objects[1m]) * on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~\"$pool_name\"}",
255 "format": "time_series",
256 "intervalFactor": 1,
257 "legendFormat": "Objects per second",
258 "refId": "A"
259 }
260 ],
261 "thresholds": [ ],
262 "timeFrom": null,
263 "timeShift": null,
264 "title": "$pool_name Object Ingress/Egress",
265 "tooltip": {
266 "shared": true,
267 "sort": 0,
268 "value_type": "individual"
269 },
270 "type": "graph",
271 "xaxis": {
272 "buckets": null,
273 "mode": "time",
274 "name": null,
275 "show": true,
276 "values": [ ]
277 },
278 "yaxes": [
279 {
280 "format": "ops",
281 "label": "Objects out(-) / in(+) ",
282 "logBase": 1,
283 "max": null,
284 "min": null,
285 "show": true
286 },
287 {
288 "format": "short",
289 "label": null,
290 "logBase": 1,
291 "max": null,
292 "min": null,
293 "show": true
294 }
295 ]
296 },
297 {
298 "aliasColors": {
299 "read_op_per_sec": "#3F6833",
300 "write_op_per_sec": "#E5AC0E"
301 },
302 "bars": false,
303 "dashLength": 10,
304 "dashes": false,
305 "datasource": "$datasource",
306 "description": "",
307 "fill": 1,
308 "gridPos": {
309 "h": 7,
310 "w": 12,
311 "x": 0,
312 "y": 7
313 },
314 "id": 5,
315 "legend": {
316 "alignAsTable": false,
317 "avg": false,
318 "current": false,
319 "max": false,
320 "min": false,
321 "rightSide": false,
322 "show": true,
323 "sideWidth": null,
324 "total": false,
325 "values": false
326 },
327 "lines": true,
328 "linewidth": 1,
329 "links": [ ],
330 "nullPointMode": "null as zero",
331 "percentage": false,
332 "pointradius": 5,
333 "points": false,
334 "renderer": "flot",
335 "repeat": null,
336 "seriesOverrides": [
337 {
338 "alias": "reads",
339 "transform": "negative-Y"
340 }
341 ],
342 "spaceLength": 10,
343 "stack": false,
344 "steppedLine": false,
345 "targets": [
346 {
347 "expr": "irate(ceph_pool_rd[1m]) * on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~\"$pool_name\"}",
348 "format": "time_series",
349 "intervalFactor": 1,
350 "legendFormat": "reads",
351 "refId": "A"
352 },
353 {
354 "expr": "irate(ceph_pool_wr[1m]) * on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~\"$pool_name\"}",
355 "format": "time_series",
356 "intervalFactor": 1,
357 "legendFormat": "writes",
358 "refId": "B"
359 }
360 ],
361 "thresholds": [ ],
362 "timeFrom": null,
363 "timeShift": null,
364 "title": "$pool_name Client IOPS",
365 "tooltip": {
366 "shared": true,
367 "sort": 0,
368 "value_type": "individual"
369 },
370 "type": "graph",
371 "xaxis": {
372 "buckets": null,
373 "mode": "time",
374 "name": null,
375 "show": true,
376 "values": [ ]
377 },
378 "yaxes": [
379 {
380 "format": "iops",
381 "label": "Read (-) / Write (+)",
382 "logBase": 1,
383 "max": null,
384 "min": null,
385 "show": true
386 },
387 {
388 "format": "short",
389 "label": null,
390 "logBase": 1,
391 "max": null,
392 "min": null,
393 "show": true
394 }
395 ]
396 },
397 {
398 "aliasColors": {
399 "read_op_per_sec": "#3F6833",
400 "write_op_per_sec": "#E5AC0E"
401 },
402 "bars": false,
403 "dashLength": 10,
404 "dashes": false,
405 "datasource": "$datasource",
406 "description": "",
407 "fill": 1,
408 "gridPos": {
409 "h": 7,
410 "w": 12,
411 "x": 12,
412 "y": 7
413 },
414 "id": 6,
415 "legend": {
416 "alignAsTable": false,
417 "avg": false,
418 "current": false,
419 "max": false,
420 "min": false,
421 "rightSide": false,
422 "show": true,
423 "sideWidth": null,
424 "total": false,
425 "values": false
426 },
427 "lines": true,
428 "linewidth": 1,
429 "links": [ ],
430 "nullPointMode": "null as zero",
431 "percentage": false,
432 "pointradius": 5,
433 "points": false,
434 "renderer": "flot",
435 "repeat": null,
436 "seriesOverrides": [
437 {
438 "alias": "reads",
439 "transform": "negative-Y"
440 }
441 ],
442 "spaceLength": 10,
443 "stack": false,
444 "steppedLine": false,
445 "targets": [
446 {
447 "expr": "irate(ceph_pool_rd_bytes[1m]) + on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~\"$pool_name\"}",
448 "format": "time_series",
449 "intervalFactor": 1,
450 "legendFormat": "reads",
451 "refId": "A"
452 },
453 {
454 "expr": "irate(ceph_pool_wr_bytes[1m]) + on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~\"$pool_name\"}",
455 "format": "time_series",
456 "intervalFactor": 1,
457 "legendFormat": "writes",
458 "refId": "B"
459 }
460 ],
461 "thresholds": [ ],
462 "timeFrom": null,
463 "timeShift": null,
464 "title": "$pool_name Client Throughput",
465 "tooltip": {
466 "shared": true,
467 "sort": 0,
468 "value_type": "individual"
469 },
470 "type": "graph",
471 "xaxis": {
472 "buckets": null,
473 "mode": "time",
474 "name": null,
475 "show": true,
476 "values": [ ]
477 },
478 "yaxes": [
479 {
480 "format": "Bps",
481 "label": "Read (-) / Write (+)",
482 "logBase": 1,
483 "max": null,
484 "min": null,
485 "show": true
486 },
487 {
488 "format": "short",
489 "label": null,
490 "logBase": 1,
491 "max": null,
492 "min": null,
493 "show": true
494 }
495 ]
496 },
497 {
498 "aliasColors": {
499 "read_op_per_sec": "#3F6833",
500 "write_op_per_sec": "#E5AC0E"
501 },
502 "bars": false,
503 "dashLength": 10,
504 "dashes": false,
505 "datasource": "$datasource",
506 "description": "",
507 "fill": 1,
508 "gridPos": {
509 "h": 7,
510 "w": 12,
511 "x": 0,
512 "y": 14
513 },
514 "id": 7,
515 "legend": {
516 "alignAsTable": false,
517 "avg": false,
518 "current": false,
519 "max": false,
520 "min": false,
521 "rightSide": false,
522 "show": true,
523 "sideWidth": null,
524 "total": false,
525 "values": false
526 },
527 "lines": true,
528 "linewidth": 1,
529 "links": [ ],
530 "nullPointMode": "null as zero",
531 "percentage": false,
532 "pointradius": 5,
533 "points": false,
534 "renderer": "flot",
535 "repeat": null,
536 "seriesOverrides": [ ],
537 "spaceLength": 10,
538 "stack": false,
539 "steppedLine": false,
540 "targets": [
541 {
542 "expr": "ceph_pool_objects * on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~\"$pool_name\"}",
543 "format": "time_series",
544 "intervalFactor": 1,
545 "legendFormat": "Number of Objects",
546 "refId": "A"
547 }
548 ],
549 "thresholds": [ ],
550 "timeFrom": null,
551 "timeShift": null,
552 "title": "$pool_name Objects",
553 "tooltip": {
554 "shared": true,
555 "sort": 0,
556 "value_type": "individual"
557 },
558 "type": "graph",
559 "xaxis": {
560 "buckets": null,
561 "mode": "time",
562 "name": null,
563 "show": true,
564 "values": [ ]
565 },
566 "yaxes": [
567 {
568 "format": "short",
569 "label": "Objects",
570 "logBase": 1,
571 "max": null,
572 "min": null,
573 "show": true
574 },
575 {
576 "format": "short",
577 "label": null,
578 "logBase": 1,
579 "max": null,
580 "min": null,
581 "show": true
582 }
583 ]
584 }
585 ],
586 "refresh": "15s",
587 "rows": [ ],
588 "schemaVersion": 22,
589 "style": "dark",
590 "tags": [ ],
591 "templating": {
592 "list": [
593 {
594 "current": {
595 "text": "Prometheus admin.virt1.home.fajerski.name:9090",
596 "value": "Prometheus admin.virt1.home.fajerski.name:9090"
597 },
598 "hide": 0,
599 "label": "Data Source",
600 "name": "datasource",
601 "options": [ ],
602 "query": "prometheus",
603 "refresh": 1,
604 "regex": "",
605 "type": "datasource"
606 },
607 {
608 "allValue": null,
609 "current": { },
610 "datasource": "$datasource",
611 "hide": 0,
612 "includeAll": false,
613 "label": "Pool Name",
614 "multi": false,
615 "name": "pool_name",
616 "options": [ ],
617 "query": "label_values(ceph_pool_metadata,name)",
618 "refresh": 1,
619 "regex": "",
620 "sort": 1,
621 "tagValuesQuery": "",
622 "tags": [ ],
623 "tagsQuery": "",
624 "type": "query",
625 "useTags": false
626 }
627 ]
628 },
629 "time": {
630 "from": "now-1h",
631 "to": "now"
632 },
633 "timepicker": {
634 "refresh_intervals": [
635 "5s",
636 "10s",
637 "15s",
638 "30s",
639 "1m",
640 "5m",
641 "15m",
642 "30m",
643 "1h",
644 "2h",
645 "1d"
646 ],
647 "time_options": [
648 "5m",
649 "15m",
650 "1h",
651 "6h",
652 "12h",
653 "24h",
654 "2d",
655 "7d",
656 "30d"
657 ]
658 },
659 "timezone": "",
660 "title": "Ceph Pool Details",
661 "uid": "-xyV8KCiz",
662 "version": 0
663 }