]> git.proxmox.com Git - ceph.git/blob - ceph/monitoring/grafana/dashboards/pool-overview.json
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / monitoring / grafana / dashboards / pool-overview.json
1 {
2 "__requires": [
3 {
4 "type": "grafana",
5 "id": "grafana",
6 "name": "Grafana",
7 "version": "5.0.0"
8 },
9 {
10 "type": "panel",
11 "id": "graph",
12 "name": "Graph",
13 "version": "5.0.0"
14 },
15 {
16 "type": "panel",
17 "id": "table",
18 "name": "Table",
19 "version": "5.0.0"
20 }
21 ],
22 "annotations": {
23 "list": [
24 {
25 "builtIn": 1,
26 "datasource": "-- Grafana --",
27 "enable": true,
28 "hide": true,
29 "iconColor": "rgba(0, 211, 255, 1)",
30 "name": "Annotations & Alerts",
31 "type": "dashboard"
32 }
33 ]
34 },
35 "editable": false,
36 "gnetId": null,
37 "graphTooltip": 0,
38 "id": null,
39 "iteration": 1534386772937,
40 "links": [],
41 "panels": [
42 {
43 "collapsed": false,
44 "gridPos": {
45 "h": 1,
46 "w": 24,
47 "x": 0,
48 "y": 0
49 },
50 "id": 14,
51 "panels": [],
52 "repeat": null,
53 "title": "Pool Overview",
54 "type": "row"
55 },
56 {
57 "aliasColors": {},
58 "bars": false,
59 "dashLength": 10,
60 "dashes": false,
61 "datasource": "$datasource",
62 "fill": 5,
63 "gridPos": {
64 "h": 7,
65 "w": 12,
66 "x": 0,
67 "y": 1
68 },
69 "id": 1,
70 "legend": {
71 "avg": false,
72 "current": false,
73 "max": false,
74 "min": false,
75 "show": true,
76 "total": false,
77 "values": false
78 },
79 "lines": true,
80 "linewidth": 1,
81 "links": [],
82 "minSpan": 12,
83 "nullPointMode": "null",
84 "percentage": false,
85 "pointradius": 5,
86 "points": false,
87 "renderer": "flot",
88 "seriesOverrides": [],
89 "spaceLength": 10,
90 "stack": true,
91 "steppedLine": false,
92 "targets": [
93 {
94 "expr": "(label_replace((rate(ceph_pool_rd{pool_id=~\"[[pool_id]]\"}[1m]) + rate(ceph_pool_wr{pool_id=~\"[[pool_id]]\"}[1m])),\"id\", \"$1\", \"pool_id\", \"(.*)\") + on(pool_id) group_left(instance,name) ceph_pool_metadata{pool_id=~\"[[pool_id]]\"}) ",
95 "format": "time_series",
96 "hide": false,
97 "intervalFactor": 1,
98 "legendFormat": "{{name}}",
99 "refId": "F"
100 }
101 ],
102 "thresholds": [],
103 "timeFrom": null,
104 "timeShift": null,
105 "title": "Client IOPS by Pool",
106 "tooltip": {
107 "shared": true,
108 "sort": 0,
109 "value_type": "individual"
110 },
111 "type": "graph",
112 "xaxis": {
113 "buckets": null,
114 "mode": "time",
115 "name": null,
116 "show": true,
117 "values": []
118 },
119 "yaxes": [
120 {
121 "format": "none",
122 "label": null,
123 "logBase": 1,
124 "max": null,
125 "min": "0",
126 "show": true
127 },
128 {
129 "format": "short",
130 "label": null,
131 "logBase": 1,
132 "max": null,
133 "min": null,
134 "show": false
135 }
136 ]
137 },
138 {
139 "aliasColors": {},
140 "bars": false,
141 "dashLength": 10,
142 "dashes": false,
143 "datasource": "$datasource",
144 "fill": 5,
145 "gridPos": {
146 "h": 7,
147 "w": 12,
148 "x": 12,
149 "y": 1
150 },
151 "id": 2,
152 "legend": {
153 "avg": false,
154 "current": false,
155 "max": false,
156 "min": false,
157 "show": true,
158 "total": false,
159 "values": false
160 },
161 "lines": true,
162 "linewidth": 1,
163 "links": [],
164 "minSpan": 12,
165 "nullPointMode": "null",
166 "percentage": false,
167 "pointradius": 5,
168 "points": false,
169 "renderer": "flot",
170 "seriesOverrides": [],
171 "spaceLength": 10,
172 "stack": true,
173 "steppedLine": false,
174 "targets": [
175 {
176 "expr": "(label_replace((rate(ceph_pool_rd_bytes{pool_id=~\"[[pool_id]]\"}[1m]) + rate(ceph_pool_wr_bytes{pool_id=~\"[[pool_id]]\"}[1m])),\"id\", \"$1\", \"pool_id\", \"(.*)\") + on(pool_id) group_left(instance,name) ceph_pool_metadata{pool_id=~\"[[pool_id]]\"}) ",
177 "format": "time_series",
178 "intervalFactor": 1,
179 "legendFormat": "{{name}}",
180 "refId": "A",
181 "textEditor": true
182 }
183 ],
184 "thresholds": [],
185 "timeFrom": null,
186 "timeShift": null,
187 "title": "Client Throughput by Pool",
188 "tooltip": {
189 "shared": true,
190 "sort": 0,
191 "value_type": "individual"
192 },
193 "type": "graph",
194 "xaxis": {
195 "buckets": null,
196 "mode": "time",
197 "name": null,
198 "show": true,
199 "values": []
200 },
201 "yaxes": [
202 {
203 "format": "decbytes",
204 "label": null,
205 "logBase": 1,
206 "max": null,
207 "min": "0",
208 "show": true
209 },
210 {
211 "format": "short",
212 "label": null,
213 "logBase": 1,
214 "max": null,
215 "min": null,
216 "show": false
217 }
218 ]
219 },
220 {
221 "collapsed": false,
222 "gridPos": {
223 "h": 1,
224 "w": 24,
225 "x": 0,
226 "y": 8
227 },
228 "id": 15,
229 "panels": [],
230 "repeat": null,
231 "title": "Top 5's",
232 "type": "row"
233 },
234 {
235 "columns": [
236 {
237 "text": "Current",
238 "value": "current"
239 }
240 ],
241 "datasource": "$datasource",
242 "fontSize": "100%",
243 "gridPos": {
244 "h": 7,
245 "w": 8,
246 "x": 0,
247 "y": 9
248 },
249 "id": 3,
250 "links": [],
251 "minSpan": 12,
252 "pageSize": null,
253 "scroll": true,
254 "showHeader": true,
255 "sort": {
256 "col": 6,
257 "desc": true
258 },
259 "styles": [
260 {
261 "alias": "",
262 "colorMode": null,
263 "colors": [
264 "rgba(245, 54, 54, 0.9)",
265 "rgba(237, 129, 40, 0.89)",
266 "rgba(50, 172, 45, 0.97)"
267 ],
268 "dateFormat": "YYYY-MM-DD HH:mm:ss",
269 "decimals": 2,
270 "pattern": "Time",
271 "thresholds": [],
272 "type": "hidden",
273 "unit": "short"
274 },
275 {
276 "alias": "",
277 "colorMode": null,
278 "colors": [
279 "rgba(245, 54, 54, 0.9)",
280 "rgba(237, 129, 40, 0.89)",
281 "rgba(50, 172, 45, 0.97)"
282 ],
283 "dateFormat": "YYYY-MM-DD HH:mm:ss",
284 "decimals": 2,
285 "pattern": "id",
286 "thresholds": [],
287 "type": "hidden",
288 "unit": "short"
289 },
290 {
291 "alias": "",
292 "colorMode": null,
293 "colors": [
294 "rgba(245, 54, 54, 0.9)",
295 "rgba(237, 129, 40, 0.89)",
296 "rgba(50, 172, 45, 0.97)"
297 ],
298 "dateFormat": "YYYY-MM-DD HH:mm:ss",
299 "decimals": 2,
300 "pattern": "instance",
301 "thresholds": [],
302 "type": "hidden",
303 "unit": "short"
304 },
305 {
306 "alias": "",
307 "colorMode": null,
308 "colors": [
309 "rgba(245, 54, 54, 0.9)",
310 "rgba(237, 129, 40, 0.89)",
311 "rgba(50, 172, 45, 0.97)"
312 ],
313 "dateFormat": "YYYY-MM-DD HH:mm:ss",
314 "decimals": 2,
315 "pattern": "job",
316 "thresholds": [],
317 "type": "hidden",
318 "unit": "short"
319 },
320 {
321 "alias": "Pool Name",
322 "colorMode": null,
323 "colors": [
324 "rgba(245, 54, 54, 0.9)",
325 "rgba(237, 129, 40, 0.89)",
326 "rgba(50, 172, 45, 0.97)"
327 ],
328 "dateFormat": "YYYY-MM-DD HH:mm:ss",
329 "decimals": 2,
330 "pattern": "name",
331 "thresholds": [],
332 "type": "number",
333 "unit": "short"
334 },
335 {
336 "alias": "Pool ID",
337 "colorMode": null,
338 "colors": [
339 "rgba(245, 54, 54, 0.9)",
340 "rgba(237, 129, 40, 0.89)",
341 "rgba(50, 172, 45, 0.97)"
342 ],
343 "dateFormat": "YYYY-MM-DD HH:mm:ss",
344 "decimals": 2,
345 "pattern": "pool_id",
346 "thresholds": [],
347 "type": "number",
348 "unit": "short"
349 },
350 {
351 "alias": "IOPS (R+W)",
352 "colorMode": null,
353 "colors": [
354 "rgba(245, 54, 54, 0.9)",
355 "rgba(237, 129, 40, 0.89)",
356 "rgba(50, 172, 45, 0.97)"
357 ],
358 "dateFormat": "YYYY-MM-DD HH:mm:ss",
359 "decimals": 0,
360 "pattern": "Value",
361 "thresholds": [],
362 "type": "number",
363 "unit": "none"
364 }
365 ],
366 "targets": [
367 {
368 "expr": "topk(5,(label_replace((irate(ceph_pool_rd{pool_id=~\"[[pool_id]]\"}[1m]) + irate(ceph_pool_wr{pool_id=~\"[[pool_id]]\"}[1m])),\"id\", \"$1\", \"pool_id\", \"(.*)\") + on(pool_id) group_left(instance,name) ceph_pool_metadata{pool_id=~\"[[pool_id]]\"}) )",
369 "format": "table",
370 "instant": true,
371 "intervalFactor": 2,
372 "refId": "A",
373 "textEditor": true
374 }
375 ],
376 "title": "Top 5 Pools by Client IOPS",
377 "transform": "table",
378 "type": "table"
379 },
380 {
381 "columns": [
382 {
383 "text": "Current",
384 "value": "current"
385 }
386 ],
387 "datasource": "$datasource",
388 "fontSize": "100%",
389 "gridPos": {
390 "h": 7,
391 "w": 8,
392 "x": 8,
393 "y": 9
394 },
395 "id": 4,
396 "links": [],
397 "minSpan": 12,
398 "pageSize": null,
399 "scroll": true,
400 "showHeader": true,
401 "sort": {
402 "col": 6,
403 "desc": true
404 },
405 "styles": [
406 {
407 "alias": "Time",
408 "dateFormat": "YYYY-MM-DD HH:mm:ss",
409 "pattern": "Time",
410 "type": "hidden"
411 },
412 {
413 "alias": "",
414 "colorMode": null,
415 "colors": [
416 "rgba(245, 54, 54, 0.9)",
417 "rgba(237, 129, 40, 0.89)",
418 "rgba(50, 172, 45, 0.97)"
419 ],
420 "dateFormat": "YYYY-MM-DD HH:mm:ss",
421 "decimals": 2,
422 "pattern": "id",
423 "thresholds": [],
424 "type": "hidden",
425 "unit": "short"
426 },
427 {
428 "alias": "",
429 "colorMode": null,
430 "colors": [
431 "rgba(245, 54, 54, 0.9)",
432 "rgba(237, 129, 40, 0.89)",
433 "rgba(50, 172, 45, 0.97)"
434 ],
435 "dateFormat": "YYYY-MM-DD HH:mm:ss",
436 "decimals": 2,
437 "pattern": "instance",
438 "thresholds": [],
439 "type": "hidden",
440 "unit": "short"
441 },
442 {
443 "alias": "",
444 "colorMode": null,
445 "colors": [
446 "rgba(245, 54, 54, 0.9)",
447 "rgba(237, 129, 40, 0.89)",
448 "rgba(50, 172, 45, 0.97)"
449 ],
450 "dateFormat": "YYYY-MM-DD HH:mm:ss",
451 "decimals": 2,
452 "pattern": "job",
453 "thresholds": [],
454 "type": "hidden",
455 "unit": "short"
456 },
457 {
458 "alias": "Pool Name",
459 "colorMode": null,
460 "colors": [
461 "rgba(245, 54, 54, 0.9)",
462 "rgba(237, 129, 40, 0.89)",
463 "rgba(50, 172, 45, 0.97)"
464 ],
465 "dateFormat": "YYYY-MM-DD HH:mm:ss",
466 "decimals": 2,
467 "pattern": "name",
468 "thresholds": [],
469 "type": "number",
470 "unit": "short"
471 },
472 {
473 "alias": "Pool ID",
474 "colorMode": null,
475 "colors": [
476 "rgba(245, 54, 54, 0.9)",
477 "rgba(237, 129, 40, 0.89)",
478 "rgba(50, 172, 45, 0.97)"
479 ],
480 "dateFormat": "YYYY-MM-DD HH:mm:ss",
481 "decimals": 2,
482 "pattern": "pool_id",
483 "thresholds": [],
484 "type": "number",
485 "unit": "short"
486 },
487 {
488 "alias": "Throughput",
489 "colorMode": null,
490 "colors": [
491 "rgba(245, 54, 54, 0.9)",
492 "rgba(237, 129, 40, 0.89)",
493 "rgba(50, 172, 45, 0.97)"
494 ],
495 "dateFormat": "YYYY-MM-DD HH:mm:ss",
496 "decimals": 2,
497 "pattern": "Value",
498 "thresholds": [],
499 "type": "number",
500 "unit": "decbytes"
501 }
502 ],
503 "targets": [
504 {
505 "expr": "(label_replace((irate(ceph_pool_rd_bytes{pool_id=~\"[[pool_id]]\"}[1m]) + irate(ceph_pool_wr_bytes{pool_id=~\"[[pool_id]]\"}[1m])),\"id\", \"$1\", \"pool_id\", \"(.*)\") + on(pool_id) group_left(instance,name) ceph_pool_metadata{pool_id=~\"[[pool_id]]\"}) ",
506 "format": "table",
507 "instant": true,
508 "intervalFactor": 2,
509 "refId": "A",
510 "textEditor": true
511 }
512 ],
513 "title": "Top 5 Pools by Throughput",
514 "transform": "table",
515 "type": "table"
516 },
517 {
518 "columns": [],
519 "datasource": "$datasource",
520 "fontSize": "100%",
521 "gridPos": {
522 "h": 7,
523 "w": 8,
524 "x": 16,
525 "y": 9
526 },
527 "id": 5,
528 "links": [],
529 "minSpan": 8,
530 "pageSize": null,
531 "scroll": true,
532 "showHeader": true,
533 "sort": {
534 "col": 5,
535 "desc": true
536 },
537 "styles": [
538 {
539 "alias": "",
540 "colorMode": null,
541 "colors": [
542 "rgba(245, 54, 54, 0.9)",
543 "rgba(237, 129, 40, 0.89)",
544 "rgba(50, 172, 45, 0.97)"
545 ],
546 "dateFormat": "YYYY-MM-DD HH:mm:ss",
547 "decimals": 2,
548 "pattern": "Time",
549 "thresholds": [],
550 "type": "hidden",
551 "unit": "short"
552 },
553 {
554 "alias": "",
555 "colorMode": null,
556 "colors": [
557 "rgba(245, 54, 54, 0.9)",
558 "rgba(237, 129, 40, 0.89)",
559 "rgba(50, 172, 45, 0.97)"
560 ],
561 "dateFormat": "YYYY-MM-DD HH:mm:ss",
562 "decimals": 2,
563 "pattern": "instance",
564 "thresholds": [],
565 "type": "hidden",
566 "unit": "short"
567 },
568 {
569 "alias": "",
570 "colorMode": null,
571 "colors": [
572 "rgba(245, 54, 54, 0.9)",
573 "rgba(237, 129, 40, 0.89)",
574 "rgba(50, 172, 45, 0.97)"
575 ],
576 "dateFormat": "YYYY-MM-DD HH:mm:ss",
577 "decimals": 2,
578 "pattern": "job",
579 "thresholds": [],
580 "type": "hidden",
581 "unit": "short"
582 },
583 {
584 "alias": "Pool Name",
585 "colorMode": null,
586 "colors": [
587 "rgba(245, 54, 54, 0.9)",
588 "rgba(237, 129, 40, 0.89)",
589 "rgba(50, 172, 45, 0.97)"
590 ],
591 "dateFormat": "YYYY-MM-DD HH:mm:ss",
592 "decimals": 2,
593 "pattern": "name",
594 "thresholds": [],
595 "type": "string",
596 "unit": "short"
597 },
598 {
599 "alias": "Pool ID",
600 "colorMode": null,
601 "colors": [
602 "rgba(245, 54, 54, 0.9)",
603 "rgba(237, 129, 40, 0.89)",
604 "rgba(50, 172, 45, 0.97)"
605 ],
606 "dateFormat": "YYYY-MM-DD HH:mm:ss",
607 "decimals": 2,
608 "pattern": "pool_id",
609 "thresholds": [],
610 "type": "number",
611 "unit": "short"
612 },
613 {
614 "alias": "Capacity Used",
615 "colorMode": "value",
616 "colors": [
617 "rgba(50, 172, 45, 0.97)",
618 "rgba(237, 129, 40, 0.89)",
619 "rgba(245, 54, 54, 0.9)"
620 ],
621 "dateFormat": "YYYY-MM-DD HH:mm:ss",
622 "decimals": 2,
623 "pattern": "Value",
624 "thresholds": [
625 "70",
626 "85"
627 ],
628 "type": "number",
629 "unit": "percentunit"
630 }
631 ],
632 "targets": [
633 {
634 "expr": "topk(5,((ceph_pool_bytes_used / (ceph_pool_bytes_used + ceph_pool_max_avail)) * on(pool_id) group_left(name) ceph_pool_metadata))",
635 "format": "table",
636 "hide": false,
637 "instant": true,
638 "intervalFactor": 1,
639 "legendFormat": "",
640 "refId": "D"
641 }
642 ],
643 "title": "Top 5 Pools By Capacity Used",
644 "transform": "table",
645 "type": "table"
646 }
647 ],
648 "refresh": "15s",
649 "schemaVersion": 16,
650 "style": "dark",
651 "tags": [],
652 "templating": {
653 "list": [
654 {
655 "allValue": null,
656 "current": {},
657 "datasource": "$datasource",
658 "hide": 2,
659 "includeAll": true,
660 "label": null,
661 "multi": false,
662 "name": "pool_id",
663 "options": [],
664 "query": "label_values(ceph_pool_metadata,pool_id)",
665 "refresh": 1,
666 "regex": "",
667 "sort": 1,
668 "tagValuesQuery": "",
669 "tags": [],
670 "tagsQuery": "",
671 "type": "query",
672 "useTags": false
673 },
674 {
675 "allValue": null,
676 "current": {},
677 "datasource": "$datasource",
678 "hide": 2,
679 "includeAll": true,
680 "label": "Pool Name",
681 "multi": false,
682 "name": "pool_name",
683 "options": [],
684 "query": "label_values(ceph_pool_metadata,name)",
685 "refresh": 1,
686 "regex": "",
687 "sort": 1,
688 "tagValuesQuery": "",
689 "tags": [],
690 "tagsQuery": "",
691 "type": "query",
692 "useTags": false
693 },
694 {
695 "current": {
696 "tags": [],
697 "text": "default",
698 "value": "default"
699 },
700 "hide": 0,
701 "label": "Data Source",
702 "name": "datasource",
703 "options": [],
704 "query": "prometheus",
705 "refresh": 1,
706 "regex": "",
707 "type": "datasource"
708 }
709 ]
710 },
711 "time": {
712 "from": "now-1h",
713 "to": "now"
714 },
715 "timepicker": {
716 "refresh_intervals": [
717 "5s",
718 "10s",
719 "15s",
720 "30s",
721 "1m",
722 "5m",
723 "15m",
724 "30m",
725 "1h",
726 "2h",
727 "1d"
728 ],
729 "time_options": [
730 "5m",
731 "15m",
732 "1h",
733 "6h",
734 "12h",
735 "24h",
736 "2d",
737 "7d",
738 "30d"
739 ]
740 },
741 "timezone": "browser",
742 "title": "Ceph Pools Overview",
743 "uid": "z99hzWtmk",
744 "version": 3
745 }