chore: update zfs dashboard

This commit is contained in:
SeanOMik 2023-08-06 19:13:47 -04:00
parent e9774564e5
commit 74b2f99dc7
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
1 changed files with 22 additions and 88 deletions

View File

@ -239,6 +239,8 @@ data:
"mode": "thresholds" "mode": "thresholds"
}, },
"mappings": [], "mappings": [],
"max": 100,
"min": 0,
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
@ -246,26 +248,28 @@ data:
"color": "green", "color": "green",
"value": null "value": null
}, },
{
"color": "#EAB839",
"value": 60
},
{ {
"color": "red", "color": "red",
"value": 1 "value": 70
} }
] ]
} },
"unit": "percent"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 6, "h": 6,
"w": 2, "w": 3,
"x": 6, "x": 6,
"y": 0 "y": 0
}, },
"id": 6, "id": 25,
"options": { "options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto", "orientation": "auto",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
@ -274,7 +278,8 @@ data:
"fields": "", "fields": "",
"values": false "values": false
}, },
"textMode": "auto" "showThresholdLabels": false,
"showThresholdMarkers": true
}, },
"pluginVersion": "9.5.3", "pluginVersion": "9.5.3",
"targets": [ "targets": [
@ -284,17 +289,14 @@ data:
"uid": "${DS_VICTORIA}" "uid": "${DS_VICTORIA}"
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "expr": "zfs_fragmentation{pool=\"$viewingPool\", device_type=\"pool\"}",
"expr": "sum(zfs_read_errors{device_type=\"pool\",device_name=~\"$viewingPool\"})",
"format": "time_series",
"instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"title": "Pool Read Errors", "title": "Pool Fragmentation",
"type": "stat" "type": "gauge"
}, },
{ {
"datasource": { "datasource": {
@ -325,76 +327,8 @@ data:
}, },
"gridPos": { "gridPos": {
"h": 6, "h": 6,
"w": 2, "w": 3,
"x": 8, "x": 9,
"y": 0
},
"id": 23,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VICTORIA}"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(zfs_write_errors{device_name=\"$viewingPool\", device_type=\"pool\"})",
"format": "time_series",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Pool Write Errors",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VICTORIA}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 2,
"x": 10,
"y": 0 "y": 0
}, },
"id": 24, "id": 24,
@ -421,7 +355,7 @@ data:
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "sum(zfs_checksum_errors{device_name=\"$viewingPool\", device_type=\"pool\"})", "expr": "sum(zfs_checksum_errors{device_name=\"$viewingPool\", device_type=\"pool\"}) + sum(zfs_write_errors{device_name=\"$viewingPool\", device_type=\"pool\"}) + sum(zfs_read_errors{device_type=\"pool\",device_name=~\"$viewingPool\"})",
"format": "time_series", "format": "time_series",
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
@ -429,7 +363,7 @@ data:
"refId": "A" "refId": "A"
} }
], ],
"title": "Pool Checksum Errors", "title": "Pool Total Errors",
"type": "stat" "type": "stat"
}, },
{ {
@ -1397,13 +1331,13 @@ data:
] ]
}, },
"time": { "time": {
"from": "now-6h", "from": "now-15m",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "", "timezone": "",
"title": "ZFS Dashboard", "title": "ZFS Dashboard",
"uid": "2GaZi3hVk", "uid": "2GaZi3hVk",
"version": 2, "version": 3,
"weekStart": "" "weekStart": ""
} }