Fixed disk space on dash. Avail -> free.

main
mathan 2024-02-18 13:33:57 -08:00
parent 252501d57a
commit a73c638116
1 changed files with 79 additions and 4 deletions

View File

@ -310,6 +310,81 @@
"title": "Repos fully indexed",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 80
},
{
"color": "dark-red",
"value": 90
}
]
},
"unit": "percent",
"unitScale": true
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 14,
"y": 0
},
"id": 15,
"links": [],
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
},
"pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "100 * (node_filesystem_size_bytes{mountpoint='/4t'}-node_filesystem_free_bytes{mountpoint='/4t'})/(node_filesystem_size_bytes{mountpoint='/4t'})",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Filesystem space usage",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
@ -335,8 +410,8 @@
},
"gridPos": {
"h": 4,
"w": 10,
"x": 14,
"w": 6,
"x": 18,
"y": 0
},
"id": 7,
@ -365,7 +440,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "node_filesystem_size_bytes{mountpoint='/4t'}-node_filesystem_avail_bytes{mountpoint='/4t'}",
"expr": "node_filesystem_size_bytes{mountpoint='/4t'}-node_filesystem_free_bytes{mountpoint='/4t'}",
"instant": false,
"legendFormat": "__auto",
"range": true,
@ -1587,6 +1662,6 @@
"timezone": "",
"title": "Bluesky indexer",
"uid": "aXw6dQhSz",
"version": 19,
"version": 20,
"weekStart": ""
}