From a4d6471abd4582b0f1eba6ec08174b3c9d6acec3 Mon Sep 17 00:00:00 2001 From: Tommy Skaug Date: Mon, 20 Jan 2025 06:51:27 +0100 Subject: [PATCH] chore(smartctl): not perfect, but update layout --- smartctl/overview.json | 192 ++++++++++++++++++++--------------------- 1 file changed, 96 insertions(+), 96 deletions(-) diff --git a/smartctl/overview.json b/smartctl/overview.json index 25f8493..0f69275 100644 --- a/smartctl/overview.json +++ b/smartctl/overview.json @@ -113,8 +113,8 @@ "overrides": [] }, "gridPos": { - "h": 8, - "w": 12, + "h": 9, + "w": 24, "x": 0, "y": 1 }, @@ -173,10 +173,10 @@ "overrides": [] }, "gridPos": { - "h": 4, - "w": 12, - "x": 12, - "y": 1 + "h": 9, + "w": 24, + "x": 0, + "y": 10 }, "id": 5, "options": { @@ -220,7 +220,7 @@ { "editorMode": "code", "exemplar": false, - "expr": "sum by(device, model_number, firmware_version, serial_number)(\n smartctl_device_smart_status * on(device, instance) group_left(serial_number, firmware_version, serial_number) smartctl_device\n)", + "expr": "sum by(serial_number)(\n smartctl_device_smart_status * on(device, instance) group_left(serial_number, firmware_version, serial_number) smartctl_device\n)", "format": "time_series", "instant": false, "legendFormat": "{{serial_number}}", @@ -269,8 +269,8 @@ "gridPos": { "h": 4, "w": 12, - "x": 12, - "y": 5 + "x": 0, + "y": 19 }, "id": 3, "options": { @@ -300,80 +300,6 @@ "title": "Device Critical Warning", "type": "status-history" }, - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "fixed" - }, - "decimals": 1, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 12, - "x": 0, - "y": 9 - }, - "id": 1, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "vertical", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "Prometheus" - }, - "disableTextWrap": false, - "editorMode": "builder", - "exemplar": false, - "expr": "smartctl_device_power_on_seconds{instance=\"192.168.1.7:9633\"}", - "format": "time_series", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "interval": "", - "legendFormat": "{{device}}", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Power on Time", - "type": "stat" - }, { "datasource": { "type": "prometheus", @@ -416,7 +342,7 @@ "h": 4, "w": 12, "x": 12, - "y": 9 + "y": 19 }, "id": 11, "options": { @@ -471,6 +397,7 @@ "color": { "mode": "fixed" }, + "decimals": 1, "mappings": [], "thresholds": { "mode": "absolute", @@ -481,7 +408,7 @@ } ] }, - "unit": "none" + "unit": "s" }, "overrides": [] }, @@ -489,14 +416,14 @@ "h": 4, "w": 12, "x": 0, - "y": 13 + "y": 23 }, - "id": 8, + "id": 1, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", - "orientation": "auto", + "orientation": "vertical", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ @@ -506,7 +433,7 @@ "values": false }, "showPercentChange": false, - "textMode": "auto", + "textMode": "value_and_name", "wideLayout": true }, "pluginVersion": "11.4.0", @@ -518,17 +445,20 @@ }, "disableTextWrap": false, "editorMode": "builder", - "expr": "smartctl_device_power_cycle_count", + "exemplar": false, + "expr": "smartctl_device_power_on_seconds{instance=\"192.168.1.7:9633\"}", + "format": "time_series", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, + "interval": "", "legendFormat": "{{device}}", "range": true, "refId": "A", "useBackend": false } ], - "title": "Power Cycle", + "title": "Power on Time", "type": "stat" }, { @@ -569,7 +499,7 @@ "h": 4, "w": 12, "x": 12, - "y": 13 + "y": 23 }, "id": 9, "options": { @@ -614,13 +544,83 @@ "title": "Error Log Count", "type": "stat" }, + { + "datasource": { + "type": "prometheus", + "uid": "Prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 12, + "x": 0, + "y": 27 + }, + "id": 8, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "Prometheus" + }, + "disableTextWrap": false, + "editorMode": "builder", + "expr": "smartctl_device_power_cycle_count", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{device}}", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Power Cycle", + "type": "stat" + }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 17 + "y": 31 }, "id": 6, "panels": [], @@ -692,7 +692,7 @@ "h": 8, "w": 12, "x": 0, - "y": 18 + "y": 32 }, "id": 4, "options": { @@ -767,7 +767,7 @@ "h": 8, "w": 12, "x": 12, - "y": 18 + "y": 32 }, "id": 2, "options": { @@ -833,6 +833,6 @@ "timezone": "", "title": "Drive SMART Status", "uid": "f8f249a0-be78-41b1-97fe-8d0a92a71b93", - "version": 1, + "version": 2, "weekStart": "" } \ No newline at end of file