Skip to content

Commit

Permalink
Add DWPD to Hardware Overview dashboard
Browse files Browse the repository at this point in the history
Adds the DWPD (Drive Writes Per Day) to the Hardware Overview dashboard
in Grafana. This is useful for monitoring the wear on NVMEs.
  • Loading branch information
technowhizz committed Sep 6, 2023
1 parent 9453282 commit 30467e1
Showing 1 changed file with 91 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,8 @@
"overrides": []
},
"gridPos": {
"h": 12,
"w": 20,
"h": 13,
"w": 9,
"x": 0,
"y": 17
},
Expand Down Expand Up @@ -674,6 +674,95 @@
],
"title": "Disk Temperatures",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"description": "The data written to the disk in the last 24h period divided by the physical capacity of the disk",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 13,
"w": 10,
"x": 9,
"y": 17
},
"id": 9,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "delta(nvme_data_units_written_total{instance=~\"$node\"}[24h])*512000 / nvme_physical_size_bytes{instance=~\"$node\"}",
"legendFormat": "{{instance}} - {{device}}",
"range": true,
"refId": "A"
}
],
"title": "DWPD",
"type": "timeseries"
}
],
"refresh": false,
Expand Down

0 comments on commit 30467e1

Please sign in to comment.