Grafana dashboard: GlusterFS Statistics
Description: GlusterFS health and usage statistics, node information

Shows glusterfs capacity, usage, namespace storage usage, node disk io times and disk usages. Some filters in variables and graphs should be changed before use.

{
  "__inputs": [],
  "__requires": [
    {
      "type": "panel",
      "id": "bargauge",
      "name": "Bar Gauge",
      "version": ""
    },
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.2.5"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "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"
      }
    ]
  },
  "editable": true,
  "gnetId": 10704,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1565339796941,
  "links": [],
  "panels": [
    {
      "datasource": "$Datasource",
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 22,
      "links": [],
      "options": {
        "fieldOptions": {
          "calcs": [
            "mean"
          ],
          "defaults": {
            "max": 1,
            "min": 0
          },
          "mappings": [],
          "override": {},
          "thresholds": [
            {
              "color": "red",
              "index": 0,
              "value": null
            },
            {
              "color": "green",
              "index": 1,
              "value": 1
            }
          ],
          "values": false
        },
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "6.2.5",
      "targets": [
        {
          "expr": "(heketi_up)",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{instance}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Heketi Service Status",
      "type": "gauge"
    },
    {
      "datasource": "$Datasource",
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "id": 24,
      "links": [],
      "options": {
        "fieldOptions": {
          "calcs": [
            "mean"
          ],
          "defaults": {
            "max": 3,
            "min": 0
          },
          "mappings": [],
          "override": {},
          "thresholds": [
            {
              "color": "red",
              "index": 0,
              "value": null
            },
            {
              "color": "orange",
              "index": 1,
              "value": 1
            },
            {
              "color": "yellow",
              "index": 2,
              "value": 2
            },
            {
              "color": "green",
              "index": 3,
              "value": 3
            }
          ],
          "values": false
        },
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "6.2.5",
      "targets": [
        {
          "expr": "(heketi_nodes_count)",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{instance}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Active Heketi Nodes",
      "type": "gauge"
    },
    {
      "gridPos": {
        "h": 8,
        "w": 8,
        "x": 0,
        "y": 8
      },
      "id": 6,
      "links": [],
      "options": {
        "fieldOptions": {
          "calcs": [
            "mean"
          ],
          "defaults": {
            "max": 100,
            "min": 0,
            "unit": "bytes"
          },
          "mappings": [],
          "override": {},
          "thresholds": [
            {
              "color": "green",
              "index": 0,
              "value": null
            },
            {
              "color": "green",
              "index": 1,
              "value": 200000000000
            }
          ],
          "values": false
        },
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "6.2.5",
      "targets": [
        {
          "expr": "sum(kubelet_volume_stats_capacity_bytes)",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total Capacity",
      "type": "gauge"
    },
    {
      "cacheTimeout": null,
      "datasource": "$Datasource",
      "gridPos": {
        "h": 8,
        "w": 8,
        "x": 8,
        "y": 8
      },
      "id": 2,
      "links": [],
      "options": {
        "fieldOptions": {
          "calcs": [
            "mean"
          ],
          "defaults": {
            "max": 2079000000000,
            "min": 0,
            "unit": "bytes"
          },
          "mappings": [],
          "override": {},
          "thresholds": [
            {
              "color": "green",
              "index": 0,
              "value": null
            },
            {
              "color": "dark-red",
              "index": 1,
              "value": 300000000
            },
            {
              "color": "red",
              "index": 2,
              "value": 269750000075
            },
            {
              "color": "#EAB839",
              "index": 3,
              "value": 539500000050
            },
            {
              "color": "semi-dark-green",
              "index": 4,
              "value": 1079000000000
            },
            {
              "color": "green",
              "index": 5,
              "value": 2079000000000
            }
          ],
          "values": false
        },
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "6.2.5",
      "targets": [
        {
          "expr": "sum (kubelet_volume_stats_available_bytes)",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total Available Storage",
      "type": "gauge"
    },
    {
      "datasource": "$Datasource",
      "gridPos": {
        "h": 8,
        "w": 8,
        "x": 16,
        "y": 8
      },
      "id": 4,
      "links": [],
      "options": {
        "fieldOptions": {
          "calcs": [
            "mean"
          ],
          "defaults": {
            "max": 2079000000000,
            "min": 0,
            "unit": "bytes"
          },
          "mappings": [],
          "override": {},
          "thresholds": [
            {
              "color": "green",
              "index": 0,
              "value": null
            },
            {
              "color": "yellow",
              "index": 1,
              "value": 1400000000000
            },
            {
              "color": "red",
              "index": 2,
              "value": 1800000000000
            }
          ],
          "values": false
        },
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "6.2.5",
      "targets": [
        {
          "expr": "sum(kubelet_volume_stats_used_bytes)",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Used Space",
      "type": "gauge"
    },
    {
      "datasource": "$Datasource",
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 16
      },
      "id": 8,
      "links": [],
      "options": {
        "displayMode": "lcd",
        "fieldOptions": {
          "calcs": [
            "mean"
          ],
          "defaults": {
            "max": 100,
            "min": 0,
            "unit": "percent"
          },
          "mappings": [
            {
              "from": "",
              "id": 1,
              "operator": "",
              "text": "",
              "to": "",
              "type": 1,
              "value": ""
            }
          ],
          "override": {},
          "thresholds": [
            {
              "color": "green",
              "index": 0,
              "value": null
            },
            {
              "color": "yellow",
              "index": 1,
              "value": 75
            },
            {
              "color": "red",
              "index": 2,
              "value": 90
            }
          ],
          "values": false
        },
        "orientation": "horizontal"
      },
      "pluginVersion": "6.2.5",
      "targets": [
        {
          "expr": "((sum (kubelet_volume_stats_used_bytes) by (namespace))/(sum(kubelet_volume_stats_capacity_bytes) by (namespace)))*100",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{namespace}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Used space by namespaces",
      "type": "bargauge"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 24
      },
      "id": 28,
      "panels": [
        {
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 0,
            "y": 25
          },
          "id": 26,
          "links": [],
          "options": {
            "displayMode": "basic",
            "fieldOptions": {
              "calcs": [
                "mean"
              ],
              "defaults": {
                "max": 50,
                "min": 0,
                "unit": "ms"
              },
              "mappings": [],
              "override": {},
              "thresholds": [
                {
                  "color": "green",
                  "index": 0,
                  "value": null
                },
                {
                  "color": "red",
                  "index": 1,
                  "value": 20
                }
              ],
              "values": false
            },
            "orientation": "horizontal"
          },
          "scopedVars": {
            "instance": {
              "selected": true,
              "text": "10.200.2.22:9100",
              "value": "10.200.2.22:9100"
            }
          },
          "targets": [
            {
              "expr": "(rate(node_disk_read_time_ms{instance=~\"^$instance\"}[1m]) / rate(node_disk_reads_completed_total{instance=~\"^$instance\"}[1m]))",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{device}}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Disk Read IO times",
          "type": "bargauge"
        },
        {
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 12,
            "y": 25
          },
          "id": 29,
          "links": [],
          "options": {
            "displayMode": "basic",
            "fieldOptions": {
              "calcs": [
                "mean"
              ],
              "defaults": {
                "max": 10,
                "min": 0,
                "unit": "ms"
              },
              "mappings": [],
              "override": {},
              "thresholds": [
                {
                  "color": "green",
                  "index": 0,
                  "value": null
                },
                {
                  "color": "red",
                  "index": 1,
                  "value": 5
                }
              ],
              "values": false
            },
            "orientation": "vertical"
          },
          "scopedVars": {
            "instance": {
              "selected": true,
              "text": "10.200.2.22:9100",
              "value": "10.200.2.22:9100"
            }
          },
          "targets": [
            {
              "expr": "(rate(node_disk_write_time_ms{instance=~\"^$instance\"}[1m]) / rate(node_disk_writes_completed_total{instance=~\"^$instance\"}[1m]))",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{device}}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Disk Write IO times",
          "type": "bargauge"
        }
      ],
      "repeat": "instance",
      "title": "$instance Disk stats",
      "type": "row"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 25
      },
      "id": 20,
      "panels": [
        {
          "datasource": "$Datasource",
          "gridPos": {
            "h": 8,
            "w": 8,
            "x": 0,
            "y": 26
          },
          "id": 16,
          "links": [],
          "options": {
            "displayMode": "lcd",
            "fieldOptions": {
              "calcs": [
                "mean"
              ],
              "defaults": {
                "max": 287762808832,
                "min": 0,
                "unit": "bytes"
              },
              "mappings": [],
              "override": {},
              "thresholds": [
                {
                  "color": "green",
                  "index": 0,
                  "value": null
                },
                {
                  "color": "#EAB839",
                  "index": 1,
                  "value": 183881404466
                },
                {
                  "color": "red",
                  "index": 2,
                  "value": 260000000000
                }
              ],
              "values": false
            },
            "orientation": "horizontal"
          },
          "targets": [
            {
              "expr": "sum (heketi_device_free_bytes{device=\"/dev/sdc\"}) by (hostname)\n",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{hostname}}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Device SDC on hosts",
          "type": "bargauge"
        },
        {
          "datasource": "$Datasource",
          "gridPos": {
            "h": 8,
            "w": 8,
            "x": 8,
            "y": 26
          },
          "id": 18,
          "links": [],
          "options": {
            "displayMode": "lcd",
            "fieldOptions": {
              "calcs": [
                "mean"
              ],
              "defaults": {
                "max": 536870912000,
                "min": 0,
                "unit": "bytes"
              },
              "mappings": [],
              "override": {},
              "thresholds": [
                {
                  "color": "green",
                  "index": 0,
                  "value": null
                },
                {
                  "color": "yellow",
                  "index": 1,
                  "value": 322122547200
                },
                {
                  "color": "red",
                  "index": 2,
                  "value": 483183820800
                }
              ],
              "values": false
            },
            "orientation": "horizontal"
          },
          "targets": [
            {
              "expr": "sum (heketi_device_free_bytes{device=\"/dev/sdd\"}) by (hostname)\n",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{hostname}}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Device SDD on hosts",
          "type": "bargauge"
        },
        {
          "datasource": "$Datasource",
          "gridPos": {
            "h": 8,
            "w": 8,
            "x": 16,
            "y": 26
          },
          "id": 14,
          "links": [],
          "options": {
            "displayMode": "lcd",
            "fieldOptions": {
              "calcs": [
                "mean"
              ],
              "defaults": {
                "max": 536870912000,
                "min": 0,
                "unit": "bytes"
              },
              "mappings": [],
              "override": {},
              "thresholds": [
                {
                  "color": "green",
                  "index": 0,
                  "value": null
                },
                {
                  "color": "yellow",
                  "index": 1,
                  "value": 322122547200
                },
                {
                  "color": "red",
                  "index": 2,
                  "value": 483183820800
                }
              ],
              "values": false
            },
            "orientation": "horizontal"
          },
          "targets": [
            {
              "expr": "sum (heketi_device_free_bytes{device=\"/dev/sdh\"}) by (hostname) ",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{hostname}}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Device SDH on hosts",
          "type": "bargauge"
        },
        {
          "datasource": "$Datasource",
          "gridPos": {
            "h": 8,
            "w": 8,
            "x": 0,
            "y": 34
          },
          "id": 10,
          "links": [],
          "options": {
            "displayMode": "lcd",
            "fieldOptions": {
              "calcs": [
                "mean"
              ],
              "defaults": {
                "max": 536870912000,
                "min": 0,
                "unit": "bytes"
              },
              "mappings": [],
              "override": {},
              "thresholds": [
                {
                  "color": "green",
                  "index": 0,
                  "value": null
                },
                {
                  "color": "yellow",
                  "index": 1,
                  "value": 322122547200
                },
                {
                  "color": "red",
                  "index": 2,
                  "value": 483183820800
                }
              ],
              "values": false
            },
            "orientation": "horizontal"
          },
          "targets": [
            {
              "expr": "sum (heketi_device_free_bytes{device=\"/dev/sdi\"}) by (hostname)\n",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{hostname}}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Device SDI on hosts",
          "type": "bargauge"
        },
        {
          "datasource": "$Datasource",
          "gridPos": {
            "h": 8,
            "w": 8,
            "x": 8,
            "y": 34
          },
          "id": 12,
          "links": [],
          "options": {
            "displayMode": "lcd",
            "fieldOptions": {
              "calcs": [
                "mean"
              ],
              "defaults": {
                "max": 536870912000,
                "min": 0,
                "unit": "bytes"
              },
              "mappings": [],
              "override": {},
              "thresholds": [
                {
                  "color": "green",
                  "index": 0,
                  "value": null
                },
                {
                  "color": "yellow",
                  "index": 1,
                  "value": 322122547200
                },
                {
                  "color": "red",
                  "index": 2,
                  "value": 483183820800
                }
              ],
              "values": false
            },
            "orientation": "horizontal"
          },
          "targets": [
            {
              "expr": "sum (heketi_device_free_bytes{device=\"/dev/sdj\"}) by (hostname)\n",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{hostname}}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Device SDJ on hosts",
          "type": "bargauge"
        }
      ],
      "title": "Disk usages on hosts",
      "type": "row"
    }
  ],
  "schemaVersion": 18,
  "style": "dark",
  "tags": [
    "prometheus",
    "glusterfs"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "text": "ose-test",
          "value": "ose-test"
        },
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "Datasource",
        "options": [],
        "query": "prometheus",
        "refresh": 1,
        "regex": "ose-test",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$Datasource",
        "definition": "label_values(instance)",
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": true,
        "name": "instance",
        "options": [],
        "query": "label_values(instance)",
        "refresh": 1,
        "regex": "^.*21\\:9100$|^.*22\\:9100$|^.*23\\:9100$",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "GlusterFS Statistics",
  "uid": "JarkPLDWk",
  "version": 30,
  "description": "GlusterFS health and usage statistics, node information"
}