Grafana dashboard: Diskstat
Description: Dashboard of disk usage

DiskStat Dashboard host or guest machine.

Show metrics:
* Read/write device per second
* IO bandwidth utilization
* The number (after merges) of requests completed
* The average time for requests
* Average Queue size (sectors)
* Queue utilization
* I/Os currently in progress

grafana->graphite->collectd

{
  "__inputs": [
    {
      "name": "DS_RCO",
      "label": "Graphite",
      "description": "graphite datasource",
      "type": "datasource",
      "pluginId": "graphite",
      "pluginName": "Graphite"
    },
    {
      "name": "VAR_PREFIX",
      "type": "constant",
      "label": "prefix",
      "value": "og.collectd",
      "description": "prefix of collectd write_graphite plugin"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.1.3"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "graphite",
      "name": "Graphite",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "Dashboard of disk usage",
  "editable": true,
  "gnetId": 12804,
  "graphTooltip": 1,
  "id": null,
  "iteration": 1597068831215,
  "links": [
    {
      "asDropdown": true,
      "icon": "external link",
      "includeVars": true,
      "keepTime": true,
      "tags": [
        "og",
        "menu"
      ],
      "title": "main",
      "type": "dashboards"
    }
  ],
  "panels": [
    {
      "aliasColors": {
        "nonNegativeDerivative(rco.collectd.623-reserve.diskstat.gauge-vda__wr_ticks)": "#f9934e",
        "wr_ticks": "#f9934e"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_RCO}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 8,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": true,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "sort": "current",
        "sortDesc": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "paceLength": 10,
      "percentage": false,
      "pluginVersion": "7.1.3",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "refCount": 0,
          "refId": "A",
          "target": "alias(scaleToSeconds(scale(nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__rd_sect), 0.5), 1), 'read')",
          "textEditor": true
        },
        {
          "hide": false,
          "refCount": 0,
          "refId": "B",
          "target": "alias(scaleToSeconds(scale(nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__wr_sect), 0.5), 1), 'write')",
          "textEditor": true
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Read/write device per second",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:85",
          "decimals": 0,
          "format": "KBs",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:86",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "nonNegativeDerivative(rco.collectd.623-reserve.diskstat.gauge-vda__wr_ticks)": "#f9934e",
        "tot_util": "#806eb7",
        "util": "#ba43a9",
        "wr_ticks": "#f9934e"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_RCO}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 4,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": true,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "sort": "current",
        "sortDesc": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "paceLength": 10,
      "percentage": false,
      "pluginVersion": "7.1.3",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "hide": false,
          "refCount": 0,
          "refId": "A",
          "target": "alias(scaleToSeconds(nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__tot_ticks), 0.1), 'util')",
          "textEditor": true
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "IO bandwidth utilization",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1481",
          "decimals": null,
          "format": "percent",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:1482",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "nonNegativeDerivative(rco.collectd.623-reserve.diskstat.gauge-vda__wr_ticks)": "#f9934e",
        "read": "#629e51",
        "wr_ticks": "#f9934e",
        "write": "#f9934e"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_RCO}",
      "description": "calculated",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 7
      },
      "hiddenSeries": false,
      "id": 13,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": true,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "sort": "current",
        "sortDesc": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "paceLength": 10,
      "percentage": false,
      "pluginVersion": "7.1.3",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "refCount": 0,
          "refId": "A",
          "target": "alias(scaleToSeconds(nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__rd_ios), 1), 'read')",
          "textEditor": false
        },
        {
          "hide": false,
          "refCount": 0,
          "refId": "B",
          "target": "alias(scaleToSeconds(nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__wr_ios), 1), 'write')",
          "textEditor": false
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "The number (after merges) of requests completed",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:219",
          "decimals": 0,
          "format": "iops",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:220",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "nonNegativeDerivative(rco.collectd.623-reserve.diskstat.gauge-vda__wr_ticks)": "#f9934e",
        "rd_await": "#7eb26d",
        "w_await": "#f9934e",
        "wr_ticks": "#f9934e",
        "write": "#f9934e"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_RCO}",
      "description": "calculated",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 7
      },
      "hiddenSeries": false,
      "id": 2,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": true,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "sort": "current",
        "sortDesc": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "paceLength": 10,
      "percentage": false,
      "pluginVersion": "7.1.3",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "hide": true,
          "refCount": 2,
          "refId": "A",
          "target": "nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__rd_ticks)",
          "textEditor": true
        },
        {
          "hide": true,
          "refCount": 2,
          "refId": "B",
          "target": "nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__rd_ios)",
          "textEditor": true
        },
        {
          "refCount": 1,
          "refId": "C",
          "target": "alias(divideSeries(#A, #B), 'read')",
          "targetFull": "alias(divideSeries(nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__rd_ticks), nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__rd_ios)), 'read')",
          "textEditor": true
        },
        {
          "hide": true,
          "refCount": 2,
          "refId": "D",
          "target": "nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__wr_ticks)",
          "textEditor": true
        },
        {
          "hide": true,
          "refCount": 2,
          "refId": "E",
          "target": "nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__wr_ios)",
          "textEditor": true
        },
        {
          "refCount": 1,
          "refId": "F",
          "target": "alias(divideSeries(#D, #E), 'write')",
          "targetFull": "alias(divideSeries(nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__wr_ticks), nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__wr_ios)), 'write')",
          "textEditor": true
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "The average time for requests",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:738",
          "decimals": null,
          "format": "ms",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:739",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "nonNegativeDerivative(rco.collectd.623-reserve.diskstat.gauge-vda__wr_ticks)": "#f9934e",
        "tot_util": "#806eb7",
        "wr_ticks": "#f9934e"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_RCO}",
      "decimals": 0,
      "description": "Read/Write Sectors per I/O ops",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 0,
        "y": 14
      },
      "hiddenSeries": false,
      "id": 17,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": true,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "sort": "current",
        "sortDesc": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "paceLength": 10,
      "percentage": false,
      "pluginVersion": "7.1.3",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "hide": true,
          "refCount": 1,
          "refId": "A",
          "target": "nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__rd_ios)",
          "textEditor": true
        },
        {
          "hide": false,
          "refCount": 1,
          "refId": "B",
          "target": "alias(divideSeries(nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__rd_sect), #A), 'read')",
          "targetFull": "alias(divideSeries(nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__rd_sect), nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__rd_ios)), 'read')",
          "textEditor": true
        },
        {
          "hide": true,
          "refCount": 1,
          "refId": "C",
          "target": "nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__wr_ios)",
          "textEditor": true
        },
        {
          "hide": false,
          "refCount": 1,
          "refId": "D",
          "target": "alias(divideSeries(nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__wr_sect), #C), 'write')",
          "targetFull": "alias(divideSeries(nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__wr_sect), nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__wr_ios)), 'write')",
          "textEditor": true
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Average Queue size (sectors)",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:325",
          "decimals": 0,
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:326",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "delay": "#70dbed",
        "nonNegativeDerivative(rco.collectd.623-reserve.diskstat.gauge-vda__wr_ticks)": "#f9934e",
        "queue_util": "#70dbed",
        "tot_util": "#806eb7",
        "util": "#70dbed",
        "wr_ticks": "#f9934e"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_RCO}",
      "description": "This value counts the number of milliseconds during which the device has had I/O requests queued.",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 8,
        "y": 14
      },
      "hiddenSeries": false,
      "id": 18,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": true,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "sort": "current",
        "sortDesc": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "paceLength": 10,
      "percentage": false,
      "pluginVersion": "7.1.3",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "hide": false,
          "refCount": 0,
          "refId": "A",
          "target": "alias(scaleToSeconds(nonNegativeDerivative($prefix.$vm.diskstat.gauge-${volume}__rq_ticks), 0.1), 'queue_util')",
          "textEditor": true
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Queue utilization",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:939",
          "decimals": null,
          "format": "percent",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:940",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "nonNegativeDerivative(rco.collectd.623-reserve.diskstat.gauge-vda__wr_ticks)": "#f9934e",
        "ops": "#806eb7",
        "wr_ticks": "#f9934e"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_RCO}",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 8,
        "x": 16,
        "y": 14
      },
      "hiddenSeries": false,
      "id": 16,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": true,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "sort": "current",
        "sortDesc": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "paceLength": 10,
      "percentage": false,
      "pluginVersion": "7.1.3",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "refCount": 0,
          "refId": "A",
          "target": "alias($prefix.$vm.diskstat.gauge-${volume}__ios_in_progress, 'ops')",
          "textEditor": true
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "I/Os currently in progress",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1063",
          "decimals": 0,
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:1064",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 26,
  "style": "dark",
  "tags": [
    "collectd",
    "disk",
    "og",
    "menu"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "value": "${VAR_PREFIX}",
          "text": "${VAR_PREFIX}",
          "selected": false
        },
        "hide": 2,
        "label": "prefix",
        "name": "prefix",
        "options": [
          {
            "value": "${VAR_PREFIX}",
            "text": "${VAR_PREFIX}",
            "selected": false
          }
        ],
        "query": "${VAR_PREFIX}",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_RCO}",
        "definition": "",
        "hide": 0,
        "includeAll": false,
        "label": "vm",
        "multi": false,
        "name": "vm",
        "options": [],
        "query": "$prefix.*",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_RCO}",
        "definition": "",
        "hide": 0,
        "includeAll": false,
        "label": "volume",
        "multi": false,
        "name": "volume",
        "options": [],
        "query": "$prefix.$vm.diskstat.*",
        "refresh": 2,
        "regex": "/gauge-(.*)__/",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-24h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "Diskstat",
  "uid": "eEmPpiCZz",
  "version": 21
}