From 6d94c75ee1ba62e4393ee49a8c92f33a82d57c73 Mon Sep 17 00:00:00 2001 From: Iurii Kondrakov Date: Fri, 22 Nov 2024 19:45:35 -0500 Subject: [PATCH] Remove missing devices panel from smartctl dashboard (#340) --- src/grafana_dashboards/smart.json | 79 +++---------------------------- 1 file changed, 7 insertions(+), 72 deletions(-) diff --git a/src/grafana_dashboards/smart.json b/src/grafana_dashboards/smart.json index 8ea558ee..d28db13f 100644 --- a/src/grafana_dashboards/smart.json +++ b/src/grafana_dashboards/smart.json @@ -77,71 +77,6 @@ "text": {} } }, - { - "links": [], - "repeatDirection": "h", - "tags": [], - "targets": [ - { - "editorMode": "code", - "expr": "sum(smartctl_devices{instance=~\"$instance\", job=\"$job\"}) - sum(smartctl_device{instance=~\"$instance\", job=\"$job\"})", - "range": true, - "instant": false, - "format": "time_series", - "refId": "A" - } - ], - "transformations": [], - "transparent": false, - "datasource": { - "uid": "${prometheusds}" - }, - "type": "stat", - "title": "Missing devices", - "gridPos": { - "x": 3, - "y": 1, - "w": 3, - "h": 3 - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 1 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "options": { - "reduceOptions": { - "values": false, - "calcs": [ - "lastNotNull" - ], - "fields": "" - }, - "orientation": "auto", - "textMode": "auto", - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "showPercentChange": false, - "wideLayout": true, - "text": {} - } - }, { "links": [], "repeatDirection": "h", @@ -164,7 +99,7 @@ "type": "stat", "title": "Exit status", "gridPos": { - "x": 6, + "x": 3, "y": 1, "w": 3, "h": 3 @@ -229,7 +164,7 @@ "type": "stat", "title": "Error log entries", "gridPos": { - "x": 9, + "x": 6, "y": 1, "w": 3, "h": 3 @@ -294,7 +229,7 @@ "type": "stat", "title": "Media errors", "gridPos": { - "x": 12, + "x": 9, "y": 1, "w": 3, "h": 3 @@ -359,7 +294,7 @@ "type": "stat", "title": "SMART error log count", "gridPos": { - "x": 15, + "x": 12, "y": 1, "w": 3, "h": 3 @@ -424,7 +359,7 @@ "type": "stat", "title": "Critical warnings", "gridPos": { - "x": 18, + "x": 15, "y": 1, "w": 3, "h": 3 @@ -489,7 +424,7 @@ "type": "stat", "title": "SMART failed", "gridPos": { - "x": 21, + "x": 18, "y": 1, "w": 3, "h": 3 @@ -3953,4 +3888,4 @@ } ] } -} \ No newline at end of file +}