{ "__inputs": [ { "name": "DS_PROMETHEUS", "label": "Prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], "__elements": {}, "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "10.2.3" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "table", "name": "Table", "version": "" }, { "type": "panel", "id": "timeseries", "name": "Time series", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "datasource", "uid": "grafana" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "description": "", "editable": true, "fiscalYearStartMonth": 0, "gnetId": 9846, "graphTooltip": 0, "id": null, "links": [ { "icon": "external link", "tags": [ "system" ], "type": "dashboards" } ], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": false, "inspect": false }, "mappings": [ { "options": { "0": { "index": 1, "text": "ERROR" }, "1": { "index": 2, "text": "OK" }, "-1": { "index": 0, "text": "UNKNOWN" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "red", "value": 0 }, { "color": "green", "value": 1 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "health" }, "properties": [ { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } } ] }, { "matcher": { "id": "byName", "options": "user_capacity" }, "properties": [ { "id": "unit", "value": "decbytes" } ] } ] }, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 0 }, "id": 38, "links": [], "maxDataPoints": 100, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "frameIndex": 1, "showHeader": true, "sortBy": [ { "desc": false, "displayName": "instance" } ] }, "pluginVersion": "10.2.3", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "smartprom_smart_passed", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "", "refId": "A" } ], "title": "SMART Health", "transformations": [ { "id": "groupBy", "options": { "fields": { "Value": { "aggregations": [ "last" ], "operation": "aggregate" }, "Value #A": { "aggregations": [ "sum" ], "operation": "aggregate" }, "Value #B": { "aggregations": [ "sum" ], "operation": "aggregate" }, "Value #C": { "aggregations": [ "sum" ], "operation": "aggregate" }, "Value #D": { "aggregations": [ "sum" ], "operation": "aggregate" }, "Value #E": { "aggregations": [ "sum" ], "operation": "aggregate" }, "drive": { "aggregations": [], "operation": "groupby" }, "instance": { "aggregations": [], "operation": "groupby" }, "model_family": { "aggregations": [], "operation": "groupby" }, "model_name": { "aggregations": [], "operation": "groupby" }, "serial_number": { "aggregations": [], "operation": "groupby" }, "type": { "aggregations": [], "operation": "groupby" }, "user_capacity": { "aggregations": [], "operation": "groupby" } } } }, { "id": "organize", "options": { "excludeByName": { "Time": true, "__name__": false, "backup_id": true, "backup_type": true, "client_hostname": false, "client_id": true, "client_os_version": true, "client_username": true, "client_version": true, "instance": false, "job": true, "snapshot_id": true }, "includeByName": {}, "indexByName": { "Value (last)": 7, "drive": 1, "instance": 0, "model_family": 2, "model_name": 3, "serial_number": 4, "type": 6, "user_capacity": 5 }, "renameByName": { "Value": "", "Value #A": "reallocated_sector_ct", "Value #A (sum)": "reallocated_sector_ct", "Value #B": "reported_uncorrect", "Value #B (sum)": "reported_uncorrect", "Value #C (sum)": "command_timeout", "Value #D (sum)": "current_pending_sector", "Value #E (sum)": "offline_uncorrectable", "Value (last)": "health", "job": "", "serial_number": "", "user_capacity": "" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": false, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 1 }, { "color": "red", "value": 2 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": ".*_.*" }, "properties": [ { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } } ] } ] }, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 7 }, "id": 27, "links": [], "maxDataPoints": 100, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "frameIndex": 1, "showHeader": true, "sortBy": [ { "desc": false, "displayName": "instance" } ] }, "pluginVersion": "10.2.3", "targets": [ { "exemplar": true, "expr": "smartprom_reallocated_sector_ct_raw", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "", "refId": "A", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } }, { "exemplar": true, "expr": "smartprom_reported_uncorrect_raw", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "", "refId": "B", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } }, { "exemplar": true, "expr": "smartprom_command_timeout_raw", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "", "refId": "C", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } }, { "exemplar": true, "expr": "smartprom_current_pending_sector_raw", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "", "refId": "D", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } }, { "exemplar": true, "expr": "smartprom_offline_uncorrectable_raw", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "", "refId": "E", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ], "title": "Error Metrics", "transformations": [ { "id": "merge", "options": {} }, { "id": "groupBy", "options": { "fields": { "Value #A": { "aggregations": [ "sum" ], "operation": "aggregate" }, "Value #B": { "aggregations": [ "sum" ], "operation": "aggregate" }, "Value #C": { "aggregations": [ "sum" ], "operation": "aggregate" }, "Value #D": { "aggregations": [ "sum" ], "operation": "aggregate" }, "Value #E": { "aggregations": [ "sum" ], "operation": "aggregate" }, "drive": { "aggregations": [], "operation": "groupby" }, "instance": { "aggregations": [], "operation": "groupby" } } } }, { "id": "organize", "options": { "excludeByName": { "Time": true, "__name__": false, "backup_id": true, "backup_type": true, "client_hostname": false, "client_id": true, "client_os_version": true, "client_username": true, "client_version": true, "instance": false, "job": true, "snapshot_id": true }, "indexByName": { "Time": 0, "Value #A": 5, "Value #B": 6, "__name__": 1, "drive": 3, "instance": 2, "job": 4 }, "renameByName": { "Value": "", "Value #A": "reallocated_sector_ct", "Value #A (sum)": "reallocated_sector_ct", "Value #B": "reported_uncorrect", "Value #B (sum)": "reported_uncorrect", "Value #C (sum)": "command_timeout", "Value #D (sum)": "current_pending_sector", "Value #E (sum)": "offline_uncorrectable", "job": "" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": false, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 50 }, { "color": "red", "value": 60 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "temperature_celsius" }, "properties": [ { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } } ] }, { "matcher": { "id": "byName", "options": "power_on_hours" }, "properties": [ { "id": "unit", "value": "h" } ] } ] }, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 14 }, "id": 37, "links": [], "maxDataPoints": 100, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "frameIndex": 1, "showHeader": true, "sortBy": [ { "desc": false, "displayName": "instance" } ] }, "pluginVersion": "10.2.3", "targets": [ { "exemplar": true, "expr": "smartprom_temperature_celsius_raw", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "", "refId": "A", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } }, { "exemplar": true, "expr": "smartprom_power_cycle_count_raw", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "", "refId": "B", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } }, { "exemplar": true, "expr": "smartprom_power_on_hours_raw", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "", "refId": "C", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ], "title": "Info Metrics", "transformations": [ { "id": "merge", "options": {} }, { "id": "groupBy", "options": { "fields": { "Value #A": { "aggregations": [ "sum" ], "operation": "aggregate" }, "Value #B": { "aggregations": [ "sum" ], "operation": "aggregate" }, "Value #C": { "aggregations": [ "sum" ], "operation": "aggregate" }, "Value #D": { "aggregations": [ "sum" ], "operation": "aggregate" }, "Value #E": { "aggregations": [ "sum" ], "operation": "aggregate" }, "drive": { "aggregations": [], "operation": "groupby" }, "instance": { "aggregations": [], "operation": "groupby" } } } }, { "id": "organize", "options": { "excludeByName": { "Time": true, "__name__": false, "backup_id": true, "backup_type": true, "client_hostname": false, "client_id": true, "client_os_version": true, "client_username": true, "client_version": true, "instance": false, "job": true, "snapshot_id": true }, "indexByName": { "Time": 0, "Value #A": 5, "Value #B": 6, "__name__": 1, "drive": 3, "instance": 2, "job": 4 }, "renameByName": { "Value": "", "Value #A": "reallocated_sector_ct", "Value #A (sum)": "temperature_celsius", "Value #B": "reported_uncorrect", "Value #B (sum)": "power_cycle_count", "Value #C (sum)": "power_on_hours", "Value #D (sum)": "current_pending_sector", "Value #E (sum)": "offline_uncorrectable", "job": "" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "celsius" }, "overrides": [] }, "gridPos": { "h": 11, "w": 24, "x": 0, "y": 21 }, "id": 36, "links": [], "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "pluginVersion": "8.5.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "smartprom_temperature_celsius_raw", "format": "time_series", "interval": "", "intervalFactor": 2, "legendFormat": "{{instance}} {{drive}}", "range": true, "refId": "A" } ], "title": "Temperature", "type": "timeseries" } ], "refresh": "", "schemaVersion": 39, "tags": [ "system" ], "templating": { "list": [] }, "time": { "from": "now-30m", "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": "SMART Exporter", "uid": "hmXXiWPnk", "version": 12, "weekStart": "" }