Grafana dashboard: HPE Storage Array Details
Description: Provides a birds eye view of a HPE storage array.

This dashboard displays an overview of a single HPE storage array using the HPE Storage Array Exporter for Prometheus scrape target. 

# Requirements

- Scrape target label named "array" with the storage array name or designation.
- Requires the following drill-down dashboards to function properly:
  - [HPE Storage Pools](https://grafana.com/grafana/dashboards/14907)
  - [HPE Storage Array Details](https://grafana.com/grafana/dashboards/14908)
  - [HPE Storage Volumes](https://grafana.com/grafana/dashboards/14909)
  - [HPE Storage Volume Details](https://grafana.com/grafana/dashboards/14910)

The source metrics needs to be normalized with the following `metric_relabel_configs` for the scrape target.

```
metric_relabel_configs:
  - source_labels: [__name__]
    action: labelmap
    regex: "cpg|pool"
    replacement: "storagepool"
  - source_labels: [__name__]
    regex: "^hpe(primera|nimble|3par|alletra6000|alletra9000)_(.*)"
    target_label: "__name__"
    replacement: "hpe_$2"
  - source_labels: [__name__]
    regex: "^hpe_(pool|cpg)_(.*)"
    target_label: "__name__"
    replacement: "hpe_storagepool_$2"
```

# Resources

This dashboard utilize the officially supported exporter for HPE storage systems.
- [HPE Storage Array Exporter for Prometheus](https://hpe-storage.github.io/array-exporter/)

# Support

This dashboard is provided, as-is, as an example and it's not officially supported by HPE. Join us on Slack at [slack.hpedev.io](https://slack.hpedev.io) in the storage platform channels if you have questions or feedback.

{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.0.5"
    },
    {
      "type": "panel",
      "id": "heatmap",
      "name": "Heatmap",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "Provides a birds eye view of a HPE storage array.",
  "editable": true,
  "gnetId": 14908,
  "graphTooltip": 1,
  "id": null,
  "iteration": 1630369122577,
  "links": [
    {
      "asDropdown": false,
      "icon": "external link",
      "includeVars": true,
      "keepTime": true,
      "tags": [
        "HPE Storage Arrays"
      ],
      "targetBlank": false,
      "title": "HPE Storage Arrays",
      "tooltip": "",
      "type": "dashboards",
      "url": ""
    },
    {
      "asDropdown": false,
      "icon": "external link",
      "includeVars": true,
      "keepTime": true,
      "tags": [
        "HPE Storage Pools"
      ],
      "targetBlank": false,
      "title": "HPE Storage Pools",
      "tooltip": "",
      "type": "dashboards",
      "url": ""
    }
  ],
  "panels": [
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 26,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "iops"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Write"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "semi-dark-red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Read"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 4,
      "links": [],
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(hpe_volume_reads_per_second_avg5m{array=\"$array\"})",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "Read",
          "refId": "A"
        },
        {
          "exemplar": false,
          "expr": "sum(hpe_volume_writes_per_second_avg5m{array=\"$array\"})",
          "hide": false,
          "interval": "",
          "legendFormat": "Write",
          "refId": "B"
        }
      ],
      "title": "Volume IOPS (total)",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 2,
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 75
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 5,
        "x": 12,
        "y": 0
      },
      "id": 6,
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "8.0.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "avg(hpe_volume_seconds_per_read_avg5m{array=\"$array\"})",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Avg. Read Latency (5min avg)",
      "type": "gauge"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 2,
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 75
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 5,
        "x": 17,
        "y": 0
      },
      "id": 7,
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "8.0.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "avg(hpe_volume_seconds_per_write_avg5m{array=\"$array\"})",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Avg. Write Latency (5min avg)",
      "type": "gauge"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "transparent",
                "value": null
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 8
      },
      "id": 2,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(hpe_storagepool_volume_used_bytes{array=\"$array\"})",
          "instant": false,
          "interval": "",
          "legendFormat": "Used",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "sum(hpe_storagepool_capacity_bytes{array=\"$array\"})",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "Capacity",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "sum(hpe_storagepool_unused_reserve_bytes{array=\"$array\"})",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "Unused Reserved",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "sum(hpe_storagepool_snapshot_used_bytes{array=\"$array\"})",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "Snapshot",
          "refId": "D"
        },
        {
          "exemplar": true,
          "expr": "sum(hpe_storagepool_data_reduction_bytes{array=\"$array\"})",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "Reduction",
          "refId": "E"
        }
      ],
      "title": "Pool Capacities (total)",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 10,
        "x": 12,
        "y": 8
      },
      "id": 9,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.0.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "count(hpe_volume_size_bytes{array=\"$array\"})",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Volume Count",
      "type": "stat"
    },
    {
      "cards": {
        "cardPadding": null,
        "cardRound": null
      },
      "color": {
        "cardColor": "#b4ff00",
        "colorScale": "sqrt",
        "colorScheme": "interpolateReds",
        "exponent": 0.5,
        "mode": "spectrum"
      },
      "dataFormat": "timeseries",
      "datasource": null,
      "gridPos": {
        "h": 7,
        "w": 22,
        "x": 0,
        "y": 17
      },
      "heatmap": {},
      "hideZeroBuckets": false,
      "highlightCards": true,
      "id": 11,
      "legend": {
        "show": false
      },
      "reverseYBuckets": false,
      "targets": [
        {
          "exemplar": true,
          "expr": "hpe_volume_seconds_per_write_avg5m{array=\"$array\"}",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "hpe_volume_seconds_per_read_avg5m{array=\"$array\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "",
          "refId": "B"
        }
      ],
      "title": "Array Latency Heat Map (5min avg)",
      "tooltip": {
        "show": true,
        "showHistogram": false
      },
      "type": "heatmap",
      "xAxis": {
        "show": true
      },
      "xBucketNumber": 100,
      "xBucketSize": "",
      "yAxis": {
        "decimals": 0,
        "format": "s",
        "logBase": 1,
        "max": null,
        "min": null,
        "show": true,
        "splitFactor": null
      },
      "yBucketBound": "auto",
      "yBucketNumber": null,
      "yBucketSize": null
    }
  ],
  "refresh": "",
  "schemaVersion": 30,
  "style": "dark",
  "tags": [
    "HPE Storage Array Details"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(array)",
        "description": "Select array to visualize",
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Array",
        "multi": false,
        "name": "array",
        "options": [],
        "query": {
          "query": "label_values(array)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "HPE Storage Array Details",
  "uid": "nuo41vMnk",
  "version": 30
}