]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Add grafana chart for rbd image details
authorEnno Gotthold <egotthold@suse.de>
Wed, 18 Mar 2020 12:30:18 +0000 (13:30 +0100)
committerErnesto Puerta <epuertat@redhat.com>
Tue, 26 May 2020 17:58:50 +0000 (19:58 +0200)
Fixes: https://tracker.ceph.com/issues/44623
Signed-off-by: Enno Gotthold <egotthold@suse.de>
This dashboard will per default be empty as the already existing
dashboard with the summary for all rbd images.

(cherry picked from commit 9707cb30cbbfc0f7c669e19fb9d2482ea422993c)

monitoring/grafana/dashboards/rbd-details.json [new file with mode: 0644]

diff --git a/monitoring/grafana/dashboards/rbd-details.json b/monitoring/grafana/dashboards/rbd-details.json
new file mode 100644 (file)
index 0000000..4180795
--- /dev/null
@@ -0,0 +1,409 @@
+{\r
+  "__inputs": [],\r
+  "__requires": [\r
+    {\r
+      "type": "grafana",\r
+      "id": "grafana",\r
+      "name": "Grafana",\r
+      "version": "5.3.3"\r
+    },\r
+    {\r
+      "type": "panel",\r
+      "id": "graph",\r
+      "name": "Graph",\r
+      "version": "5.0.0"\r
+    }\r
+  ],\r
+  "annotations": {\r
+    "list": [\r
+      {\r
+        "builtIn": 1,\r
+        "datasource": "-- Grafana --",\r
+        "enable": true,\r
+        "hide": true,\r
+        "iconColor": "rgba(0, 211, 255, 1)",\r
+        "name": "Annotations & Alerts",\r
+        "type": "dashboard"\r
+      }\r
+    ]\r
+  },\r
+  "description": "Detailed Performance of RBD Images (IOPS/Latency)",\r
+  "editable": false,\r
+  "gnetId": null,\r
+  "graphTooltip": 0,\r
+  "id": null,\r
+  "iteration": 1584428820779,\r
+  "links": [],\r
+  "panels": [\r
+    {\r
+      "aliasColors": {},\r
+      "bars": false,\r
+      "dashLength": 10,\r
+      "dashes": false,\r
+      "datasource": "$Datasource",\r
+      "fill": 1,\r
+      "gridPos": {\r
+        "h": 9,\r
+        "w": 8,\r
+        "x": 0,\r
+        "y": 0\r
+      },\r
+      "id": 6,\r
+      "legend": {\r
+        "avg": false,\r
+        "current": false,\r
+        "hideEmpty": false,\r
+        "hideZero": false,\r
+        "max": false,\r
+        "min": false,\r
+        "show": true,\r
+        "total": false,\r
+        "values": false\r
+      },\r
+      "lines": true,\r
+      "linewidth": 1,\r
+      "links": [],\r
+      "nullPointMode": "null as zero",\r
+      "percentage": false,\r
+      "pointradius": 5,\r
+      "points": false,\r
+      "renderer": "flot",\r
+      "seriesOverrides": [],\r
+      "spaceLength": 10,\r
+      "stack": false,\r
+      "steppedLine": false,\r
+      "targets": [\r
+        {\r
+          "expr": "irate(ceph_rbd_write_ops{pool=\"$Pool\", image=\"$Image\"}[30s])",\r
+          "format": "time_series",\r
+          "intervalFactor": 1,\r
+          "legendFormat": "Write {{instance}}",\r
+          "refId": "A"\r
+        },\r
+        {\r
+          "expr": "irate(ceph_rbd_read_ops{pool=\"$Pool\", image=\"$Image\"}[30s])",\r
+          "format": "time_series",\r
+          "intervalFactor": 1,\r
+          "legendFormat": "Read {{instance}}",\r
+          "refId": "B"\r
+        }\r
+      ],\r
+      "thresholds": [],\r
+      "timeFrom": null,\r
+      "timeShift": null,\r
+      "title": "IOPS Count",\r
+      "tooltip": {\r
+        "shared": true,\r
+        "sort": 0,\r
+        "value_type": "individual"\r
+      },\r
+      "type": "graph",\r
+      "xaxis": {\r
+        "buckets": null,\r
+        "mode": "time",\r
+        "name": null,\r
+        "show": true,\r
+        "values": []\r
+      },\r
+      "yaxes": [\r
+        {\r
+          "format": "iops",\r
+          "label": null,\r
+          "logBase": 1,\r
+          "max": null,\r
+          "min": "0",\r
+          "show": true\r
+        },\r
+        {\r
+          "format": "iops",\r
+          "label": null,\r
+          "logBase": 1,\r
+          "max": null,\r
+          "min": null,\r
+          "show": true\r
+        }\r
+      ],\r
+      "yaxis": {\r
+        "align": true,\r
+        "alignLevel": null\r
+      }\r
+    },\r
+    {\r
+      "aliasColors": {},\r
+      "bars": false,\r
+      "dashLength": 10,\r
+      "dashes": false,\r
+      "datasource": "$Datasource",\r
+      "fill": 1,\r
+      "gridPos": {\r
+        "h": 9,\r
+        "w": 8,\r
+        "x": 8,\r
+        "y": 0\r
+      },\r
+      "id": 4,\r
+      "legend": {\r
+        "avg": false,\r
+        "current": false,\r
+        "max": false,\r
+        "min": false,\r
+        "show": true,\r
+        "total": false,\r
+        "values": false\r
+      },\r
+      "lines": true,\r
+      "linewidth": 1,\r
+      "links": [],\r
+      "nullPointMode": "null as zero",\r
+      "percentage": false,\r
+      "pointradius": 5,\r
+      "points": false,\r
+      "renderer": "flot",\r
+      "seriesOverrides": [],\r
+      "spaceLength": 10,\r
+      "stack": false,\r
+      "steppedLine": false,\r
+      "targets": [\r
+        {\r
+          "expr": "irate(ceph_rbd_write_bytes{pool=\"$Pool\", image=\"$Image\"}[30s])",\r
+          "format": "time_series",\r
+          "intervalFactor": 1,\r
+          "legendFormat": "Read {{instance}}",\r
+          "refId": "A"\r
+        },\r
+        {\r
+          "expr": "irate(ceph_rbd_read_bytes{pool=\"$Pool\", image=\"$Image\"}[30s])",\r
+          "format": "time_series",\r
+          "intervalFactor": 1,\r
+          "legendFormat": "Write {{instance}}",\r
+          "refId": "B"\r
+        }\r
+      ],\r
+      "thresholds": [],\r
+      "timeFrom": null,\r
+      "timeShift": null,\r
+      "title": "IO Bytes per Second",\r
+      "tooltip": {\r
+        "shared": true,\r
+        "sort": 0,\r
+        "value_type": "individual"\r
+      },\r
+      "type": "graph",\r
+      "xaxis": {\r
+        "buckets": null,\r
+        "mode": "time",\r
+        "name": null,\r
+        "show": true,\r
+        "values": []\r
+      },\r
+      "yaxes": [\r
+        {\r
+          "format": "Bps",\r
+          "label": null,\r
+          "logBase": 1,\r
+          "max": null,\r
+          "min": "0",\r
+          "show": true\r
+        },\r
+        {\r
+          "format": "Bps",\r
+          "label": null,\r
+          "logBase": 1,\r
+          "max": null,\r
+          "min": null,\r
+          "show": true\r
+        }\r
+      ],\r
+      "yaxis": {\r
+        "align": true,\r
+        "alignLevel": null\r
+      }\r
+    },\r
+    {\r
+      "aliasColors": {},\r
+      "bars": false,\r
+      "dashLength": 10,\r
+      "dashes": false,\r
+      "datasource": "$Datasource",\r
+      "fill": 1,\r
+      "gridPos": {\r
+        "h": 9,\r
+        "w": 8,\r
+        "x": 16,\r
+        "y": 0\r
+      },\r
+      "id": 2,\r
+      "legend": {\r
+        "avg": false,\r
+        "current": false,\r
+        "max": false,\r
+        "min": false,\r
+        "show": true,\r
+        "total": false,\r
+        "values": false\r
+      },\r
+      "lines": true,\r
+      "linewidth": 1,\r
+      "links": [],\r
+      "nullPointMode": "null as zero",\r
+      "percentage": false,\r
+      "pointradius": 5,\r
+      "points": false,\r
+      "renderer": "flot",\r
+      "seriesOverrides": [],\r
+      "spaceLength": 10,\r
+      "stack": false,\r
+      "steppedLine": false,\r
+      "targets": [\r
+        {\r
+          "expr": "round(sum(irate(ceph_rbd_write_latency_sum{pool=\"$Pool\", image=\"$Image\"}[30s])) / sum(irate(ceph_rbd_write_latency_count{pool=\"$Pool\", image=\"$Image\"}[30s])))",\r
+          "format": "time_series",\r
+          "intervalFactor": 1,\r
+          "legendFormat": "Write Latency Sum",\r
+          "refId": "A"\r
+        },\r
+        {\r
+          "expr": "round(sum(irate(ceph_rbd_read_latency_sum{pool=\"$Pool\", image=\"$Image\"}[30s])) / sum(irate(ceph_rbd_read_latency_count{pool=\"$Pool\", image=\"$Image\"}[30s])))",\r
+          "format": "time_series",\r
+          "intervalFactor": 1,\r
+          "legendFormat": "Read Latency Sum",\r
+          "refId": "B"\r
+        }\r
+      ],\r
+      "thresholds": [],\r
+      "timeFrom": null,\r
+      "timeShift": null,\r
+      "title": "Averange Latency",\r
+      "tooltip": {\r
+        "shared": true,\r
+        "sort": 0,\r
+        "value_type": "individual"\r
+      },\r
+      "type": "graph",\r
+      "xaxis": {\r
+        "buckets": null,\r
+        "mode": "time",\r
+        "name": null,\r
+        "show": true,\r
+        "values": []\r
+      },\r
+      "yaxes": [\r
+        {\r
+          "format": "ns",\r
+          "label": null,\r
+          "logBase": 1,\r
+          "max": null,\r
+          "min": "0",\r
+          "show": true\r
+        },\r
+        {\r
+          "format": "ns",\r
+          "label": null,\r
+          "logBase": 1,\r
+          "max": null,\r
+          "min": null,\r
+          "show": true\r
+        }\r
+      ],\r
+      "yaxis": {\r
+        "align": true,\r
+        "alignLevel": null\r
+      }\r
+    }\r
+  ],\r
+  "refresh": false,\r
+  "schemaVersion": 16,\r
+  "style": "dark",\r
+  "tags": [],\r
+  "templating": {\r
+    "list": [\r
+      {\r
+        "current": {},\r
+        "hide": 0,\r
+        "label": null,\r
+        "name": "Datasource",\r
+        "options": [],\r
+        "query": "prometheus",\r
+        "refresh": 1,\r
+        "regex": "",\r
+        "skipUrlSync": false,\r
+        "type": "datasource"\r
+      },\r
+      {\r
+        "allValue": null,\r
+        "current": {},\r
+        "datasource": "$Datasource",\r
+        "hide": 0,\r
+        "includeAll": false,\r
+        "label": null,\r
+        "multi": false,\r
+        "name": "Pool",\r
+        "options": [],\r
+        "query": "label_values(pool)",\r
+        "refresh": 1,\r
+        "regex": "",\r
+        "skipUrlSync": false,\r
+        "sort": 0,\r
+        "tagValuesQuery": "",\r
+        "tags": [],\r
+        "tagsQuery": "",\r
+        "type": "query",\r
+        "useTags": false\r
+      },\r
+      {\r
+        "allValue": null,\r
+        "current": {},\r
+        "datasource": "$Datasource",\r
+        "hide": 0,\r
+        "includeAll": false,\r
+        "label": null,\r
+        "multi": false,\r
+        "name": "Image",\r
+        "options": [],\r
+        "query": "label_values(image)",\r
+        "refresh": 1,\r
+        "regex": "",\r
+        "skipUrlSync": false,\r
+        "sort": 0,\r
+        "tagValuesQuery": "",\r
+        "tags": [],\r
+        "tagsQuery": "",\r
+        "type": "query",\r
+        "useTags": false\r
+      }\r
+    ]\r
+  },\r
+  "time": {\r
+    "from": "now-1h",\r
+    "to": "now"\r
+  },\r
+  "timepicker": {\r
+    "refresh_intervals": [\r
+      "5s",\r
+      "10s",\r
+      "30s",\r
+      "1m",\r
+      "5m",\r
+      "15m",\r
+      "30m",\r
+      "1h",\r
+      "2h",\r
+      "1d"\r
+    ],\r
+    "time_options": [\r
+      "5m",\r
+      "15m",\r
+      "1h",\r
+      "6h",\r
+      "12h",\r
+      "24h",\r
+      "2d",\r
+      "7d",\r
+      "30d"\r
+    ]\r
+  },\r
+  "timezone": "",\r
+  "title": "RBD Details",\r
+  "uid": "YhCYGcuZz",\r
+  "version": 7\r
+}
\ No newline at end of file