feat(graph): add ceph size/used to dashboard

!4
This commit is contained in:
2023-09-29 10:57:28 +09:30
parent cf38a4156a
commit 65b61ecf54

View File

@ -18,7 +18,7 @@
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": 66, "id": 68,
"links": [], "links": [],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
@ -630,13 +630,107 @@
"transparent": true, "transparent": true,
"type": "stat" "type": "stat"
}, },
{
"datasource": {
"type": "prometheus",
"uid": "${PROMETHEUS}"
},
"description": "How much is used and Size",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"Size": {
"color": "green",
"index": 0
}
},
"type": "value"
}
],
"min": 0,
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "#007d35",
"value": null
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 5,
"x": 3,
"y": 8
},
"id": 19,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "center",
"orientation": "vertical",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.1.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(ceph_osd_stat_bytes_used)",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "Used",
"range": false,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(ceph_osd_stat_bytes)",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "Size",
"range": false,
"refId": "B"
}
],
"title": "Storage",
"transformations": [],
"type": "stat"
},
{ {
"collapsed": false, "collapsed": false,
"gridPos": { "gridPos": {
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 11 "y": 12
}, },
"id": 2, "id": 2,
"panels": [], "panels": [],
@ -672,7 +766,7 @@
"h": 3, "h": 3,
"w": 4, "w": 4,
"x": 0, "x": 0,
"y": 12 "y": 13
}, },
"id": 12, "id": 12,
"options": { "options": {
@ -743,7 +837,7 @@
"h": 3, "h": 3,
"w": 4, "w": 4,
"x": 4, "x": 4,
"y": 12 "y": 13
}, },
"id": 17, "id": 17,
"options": { "options": {
@ -814,7 +908,7 @@
"h": 3, "h": 3,
"w": 4, "w": 4,
"x": 8, "x": 8,
"y": 12 "y": 13
}, },
"id": 16, "id": 16,
"options": { "options": {
@ -884,7 +978,7 @@
"h": 3, "h": 3,
"w": 4, "w": 4,
"x": 12, "x": 12,
"y": 12 "y": 13
}, },
"id": 13, "id": 13,
"options": { "options": {
@ -955,7 +1049,7 @@
"h": 3, "h": 3,
"w": 4, "w": 4,
"x": 16, "x": 16,
"y": 12 "y": 13
}, },
"id": 18, "id": 18,
"options": { "options": {
@ -1027,7 +1121,7 @@
"h": 3, "h": 3,
"w": 4, "w": 4,
"x": 20, "x": 20,
"y": 12 "y": 13
}, },
"id": 15, "id": 15,
"options": { "options": {
@ -1131,7 +1225,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 15 "y": 16
}, },
"id": 1, "id": 1,
"options": { "options": {
@ -1225,7 +1319,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 15 "y": 16
}, },
"id": 14, "id": 14,
"options": { "options": {
@ -1257,7 +1351,7 @@
"type": "timeseries" "type": "timeseries"
} }
], ],
"refresh": "5s", "refresh": "10s",
"schemaVersion": 38, "schemaVersion": 38,
"style": "dark", "style": "dark",
"tags": [ "tags": [
@ -1269,9 +1363,9 @@
"list": [ "list": [
{ {
"current": { "current": {
"selected": true, "selected": false,
"text": "prometheus", "text": "thanos",
"value": "77e897ec-8a32-4b71-9439-8f12ec42e920" "value": "603ac67d-7d32-4fba-8ec3-35106f3c4cc9"
}, },
"hide": 0, "hide": 0,
"includeAll": false, "includeAll": false,
@ -1296,6 +1390,6 @@
"timezone": "", "timezone": "",
"title": "Cluster Overview", "title": "Cluster Overview",
"uid": "no-fuss-computing-k8s-overview", "uid": "no-fuss-computing-k8s-overview",
"version": 4, "version": 5,
"weekStart": "" "weekStart": ""
} }