Grafana dashboard: FreeSpace
Description: Dashboard file system space and inodes usage

FreeSpace Dashboard host or guest mashine.
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 file system space and inodes usage",
  "editable": true,
  "gnetId": 12447,
  "graphTooltip": 1,
  "id": null,
  "iteration": 1597136906984,
  "links": [
    {
      "$$hashKey": "object:934",
      "asDropdown": true,
      "icon": "external link",
      "includeVars": true,
      "keepTime": true,
      "tags": [
        "og",
        "menu"
      ],
      "title": "main",
      "type": "dashboards"
    }
  ],
  "panels": [
    {
      "aliasColors": {
        "used": "#bf1b00"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_RCO}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 2,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "maxPerRow": 2,
      "nullPointMode": "null",
      "percentage": false,
      "pluginVersion": "7.1.3",
      "pointradius": 1,
      "points": false,
      "renderer": "flot",
      "repeat": "volume",
      "repeatDirection": "v",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "refCount": -1,
          "refId": "A",
          "target": "alias($prefix.$vm.df-$volume.df_complex-free, 'free')"
        },
        {
          "refCount": 0,
          "refId": "B",
          "target": "alias($prefix.$vm.df-$volume.df_complex-reserved, 'reserved')"
        },
        {
          "refCount": 0,
          "refId": "C",
          "target": "alias($prefix.$vm.df-$volume.df_complex-used, 'used')"
        },
        {
          "hide": true,
          "refCount": -1,
          "refId": "D",
          "target": "sumSeries($prefix.$vm.df-$volume.*)"
        },
        {
          "hide": true,
          "refCount": 0,
          "refId": "E",
          "target": "alias(asPercent(#A, #D), 'free%')",
          "targetFull": "alias(asPercent(alias($prefix.$vm.df-$volume.df_complex-free, 'free'), sumSeries($prefix.$vm.df-$volume.*)), 'free%')"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Space Usage",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:77",
          "format": "decbytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": 0,
          "show": true
        },
        {
          "$$hashKey": "object:78",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "used": "#bf1b00"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_RCO}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 8
      },
      "hiddenSeries": false,
      "id": 5,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "maxPerRow": 2,
      "nullPointMode": "null",
      "percentage": false,
      "pluginVersion": "7.1.3",
      "pointradius": 1,
      "points": false,
      "renderer": "flot",
      "repeat": "volume",
      "repeatDirection": "v",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "refCount": -1,
          "refId": "A",
          "target": "alias($prefix.$vm.df-$volume.df_inodes-free, 'free')"
        },
        {
          "refCount": 0,
          "refId": "B",
          "target": "alias($prefix.$vm.df-$volume.df_inodes-reserved, 'reserved')"
        },
        {
          "refCount": 0,
          "refId": "C",
          "target": "alias($prefix.$vm.df-$volume.df_inodes-used, 'used')"
        },
        {
          "hide": true,
          "refCount": -1,
          "refId": "D",
          "target": "sumSeries($prefix.$vm.df-$volume.*)"
        },
        {
          "hide": true,
          "refCount": 0,
          "refId": "E",
          "target": "alias(asPercent(#A, #D), 'free%')",
          "targetFull": "alias(asPercent(alias($prefix.$vm.df-$volume.df_inodes-free, 'free'), sumSeries($prefix.$vm.df-$volume.*)), 'free%')"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "i-Nodes Usage",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:339",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": 0,
          "show": true
        },
        {
          "$$hashKey": "object:340",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "schemaVersion": 26,
  "style": "dark",
  "tags": [
    "collectd",
    "fs",
    "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": "$prefix.*",
        "hide": 0,
        "includeAll": false,
        "label": "vm",
        "multi": false,
        "name": "vm",
        "options": [],
        "query": "$prefix.*",
        "refresh": 1,
        "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.df-*",
        "refresh": 1,
        "regex": "/^df-(.*)/",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-30d",
    "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": "FreeSpace",
  "uid": "2TIwtmCZz",
  "version": 22
}