update zfs dashboard

This commit is contained in:
SeanOMik 2023-07-08 01:11:24 -04:00
parent 398b5f97d7
commit d94b8ea85c
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
1 changed files with 100 additions and 21 deletions

View File

@ -30,7 +30,7 @@ data:
"type": "grafana", "type": "grafana",
"id": "grafana", "id": "grafana",
"name": "Grafana", "name": "Grafana",
"version": "9.4.7" "version": "9.5.3"
}, },
{ {
"type": "datasource", "type": "datasource",
@ -140,7 +140,7 @@ data:
"showThresholdLabels": false, "showThresholdLabels": false,
"showThresholdMarkers": true "showThresholdMarkers": true
}, },
"pluginVersion": "9.4.7", "pluginVersion": "9.5.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -182,7 +182,8 @@ data:
"value": 1 "value": 1
} }
] ]
} },
"unit": "percentunit"
}, },
"overrides": [] "overrides": []
}, },
@ -192,6 +193,74 @@ data:
"x": 3, "x": 3,
"y": 0 "y": 0
}, },
"id": 22,
"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": "(zfs_capacity{device_name=\"$viewingPool\"} - zfs_available{device_name=\"$viewingPool\"}) / zfs_capacity{device_name=\"$viewingPool\"}",
"format": "time_series",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Pool 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": 6,
"y": 0
},
"id": 6, "id": 6,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
@ -207,7 +276,7 @@ data:
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "9.4.7", "pluginVersion": "9.5.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -216,7 +285,7 @@ data:
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "sum(zfs_read_errors{device_type=\"pool\",device_name=~\"$viewingPool\"}) by (device_name)", "expr": "sum(zfs_read_errors{device_type=\"pool\",device_name=~\"$viewingPool\"})",
"format": "time_series", "format": "time_series",
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
@ -256,11 +325,11 @@ data:
}, },
"gridPos": { "gridPos": {
"h": 6, "h": 6,
"w": 3, "w": 2,
"x": 6, "x": 8,
"y": 0 "y": 0
}, },
"id": 7, "id": 23,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
"graphMode": "area", "graphMode": "area",
@ -275,15 +344,18 @@ data:
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "9.4.7", "pluginVersion": "9.5.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_VICTORIA}" "uid": "${DS_VICTORIA}"
}, },
"editorMode": "builder", "editorMode": "code",
"expr": "zfs_write_errors{device_name=\"$viewingPool\", device_type=\"pool\"}", "exemplar": false,
"expr": "sum(zfs_write_errors{device_name=\"$viewingPool\", device_type=\"pool\"})",
"format": "time_series",
"instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@ -321,11 +393,11 @@ data:
}, },
"gridPos": { "gridPos": {
"h": 6, "h": 6,
"w": 3, "w": 2,
"x": 9, "x": 10,
"y": 0 "y": 0
}, },
"id": 17, "id": 24,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
"graphMode": "area", "graphMode": "area",
@ -340,15 +412,18 @@ data:
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "9.4.7", "pluginVersion": "9.5.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_VICTORIA}" "uid": "${DS_VICTORIA}"
}, },
"editorMode": "builder", "editorMode": "code",
"expr": "zfs_checksum_errors{device_name=\"$viewingPool\", device_type=\"pool\"}", "exemplar": false,
"expr": "sum(zfs_checksum_errors{device_name=\"$viewingPool\", device_type=\"pool\"})",
"format": "time_series",
"instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@ -421,7 +496,7 @@ data:
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "9.4.7", "pluginVersion": "9.5.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -524,8 +599,9 @@ data:
"type": "prometheus", "type": "prometheus",
"uid": "${DS_VICTORIA}" "uid": "${DS_VICTORIA}"
}, },
"editorMode": "builder", "editorMode": "code",
"expr": "zfs_read_bandwidth{device_type=\"pool\", device_name=\"$viewingPool\"}", "expr": "zfs_read_bandwidth{device_type=\"pool\", device_name=\"$viewingPool\"}",
"hide": false,
"legendFormat": "{{device_name}}", "legendFormat": "{{device_name}}",
"range": true, "range": true,
"refId": "A" "refId": "A"
@ -721,6 +797,7 @@ data:
}, },
"id": 2, "id": 2,
"options": { "options": {
"cellHeight": "sm",
"footer": { "footer": {
"countRows": false, "countRows": false,
"enablePagination": false, "enablePagination": false,
@ -733,7 +810,7 @@ data:
"showHeader": true, "showHeader": true,
"sortBy": [] "sortBy": []
}, },
"pluginVersion": "9.4.7", "pluginVersion": "9.5.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -786,6 +863,8 @@ data:
"namespace": true, "namespace": true,
"pod": true, "pod": true,
"pool": false, "pool": false,
"prometheus": true,
"prometheus_replica": true,
"service": true, "service": true,
"vdev": true "vdev": true
}, },
@ -1325,6 +1404,6 @@ data:
"timezone": "", "timezone": "",
"title": "ZFS Dashboard", "title": "ZFS Dashboard",
"uid": "2GaZi3hVk", "uid": "2GaZi3hVk",
"version": 2, "version": 1,
"weekStart": "" "weekStart": ""
} }