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