Improve OSD device details dashboard

Add osd's status and utilization to the dashboard.

Closes-Bug: 1977501
Change-Id: Ic18ff5dc76a4ed4f4343a38f57c046a209e0bc96
This commit is contained in:
peppepetra86 2022-06-06 11:43:16 +02:00
parent 8f8a3894d1
commit 70771224b4

View File

@ -36,12 +36,425 @@
"panels": [
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 16,
"panels": [],
"title": "Status $osd",
"type": "row"
},
{
"cacheTimeout": null,
"datasource": "prometheus - Juju generated source",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {},
"mappings": [
{
"from": "0",
"id": 1,
"text": "DOWN",
"to": "0.99",
"type": 2,
"value": "0"
},
{
"from": "0.99",
"id": 2,
"text": "UP",
"to": "1",
"type": 2,
"value": "1"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 0
},
{
"color": "green",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 1
},
"id": 18,
"interval": null,
"links": [],
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"text": {
"valueSize": 30
},
"textMode": "value"
},
"pluginVersion": "7.4.1",
"targets": [
{
"$$hashKey": "object:484",
"aggregation": "Last",
"decimals": 2,
"displayAliasType": "Warning / Critical",
"displayType": "Regular",
"displayValueWithAlias": "Never",
"expr": "ceph_osd_up{ceph_daemon=~\"$osd\"}",
"format": "table",
"instant": false,
"interval": "",
"legendFormat": "",
"queryType": "randomWalk",
"refId": "A",
"units": "none",
"valueHandler": "Number Threshold"
}
],
"timeFrom": null,
"timeShift": null,
"title": "",
"transparent": true,
"type": "stat"
},
{
"cacheTimeout": null,
"datasource": "prometheus - Juju generated source",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {},
"mappings": [
{
"from": "0",
"id": 1,
"text": "OUT",
"to": "0.99",
"type": 2,
"value": "0"
},
{
"from": "0.99",
"id": 2,
"text": "IN",
"to": "1",
"type": 2,
"value": "1"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 0
},
{
"color": "green",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 2,
"y": 1
},
"id": 19,
"interval": null,
"links": [],
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"text": {
"valueSize": 30
},
"textMode": "value"
},
"pluginVersion": "7.4.1",
"targets": [
{
"$$hashKey": "object:484",
"aggregation": "Last",
"decimals": 2,
"displayAliasType": "Warning / Critical",
"displayType": "Regular",
"displayValueWithAlias": "Never",
"expr": "ceph_osd_in{ceph_daemon=~\"$osd\"}",
"format": "table",
"instant": false,
"interval": "",
"legendFormat": "",
"queryType": "randomWalk",
"refId": "A",
"units": "none",
"valueHandler": "Number Threshold"
}
],
"timeFrom": null,
"timeShift": null,
"title": "",
"transparent": true,
"type": "stat"
},
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 4
},
"id": 21,
"panels": [],
"title": "Utilization $osd",
"type": "row"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus - Juju generated source",
"fieldConfig": {
"defaults": {
"color": {},
"custom": {},
"thresholds": {
"mode": "absolute",
"steps": []
},
"unit": "short"
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 10,
"w": 18,
"x": 0,
"y": 5
},
"hiddenSeries": false,
"id": 23,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.4.1",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "ceph_osd_numpg{ceph_daemon=~\"$osd\"}",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "Num PGs in $osd",
"queryType": "randomWalk",
"refId": "A"
},
{
"expr": "avg(ceph_osd_numpg)",
"hide": false,
"interval": "",
"legendFormat": "Average Number of PGs in the Cluster",
"refId": "B"
}
],
"thresholds": [
{
"$$hashKey": "object:702",
"colorMode": "critical",
"fill": true,
"line": true,
"op": "gt",
"value": null,
"yaxis": "right"
}
],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "PGs",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:94",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"$$hashKey": "object:95",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"datasource": "prometheus - Juju generated source",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "orange",
"value": 60
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 6,
"x": 18,
"y": 5
},
"id": 25,
"options": {
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"text": {}
},
"pluginVersion": "7.4.1",
"targets": [
{
"expr": "(ceph_osd_stat_bytes_used{ceph_daemon=\"$osd\"}/ceph_osd_stat_bytes{ceph_daemon=\"$osd\"})*100",
"interval": "",
"legendFormat": "",
"queryType": "randomWalk",
"refId": "A"
}
],
"title": "Utilization",
"type": "gauge"
},
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 15
},
"id": 14,
"panels": [],
"title": "OSD Performance",
@ -53,13 +466,21 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 0,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 6,
"x": 0,
"y": 1
"y": 16
},
"hiddenSeries": false,
"id": 2,
"legend": {
"avg": false,
@ -74,7 +495,11 @@
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.4.1",
"pointradius": 5,
"points": false,
"renderer": "flot",
@ -105,6 +530,7 @@
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "$osd Latency",
"tooltip": {
@ -149,13 +575,21 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 0,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 6,
"x": 6,
"y": 1
"y": 16
},
"hiddenSeries": false,
"id": 8,
"legend": {
"avg": false,
@ -170,7 +604,11 @@
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.4.1",
"pointradius": 5,
"points": false,
"renderer": "flot",
@ -201,6 +639,7 @@
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "$osd R/W IOPS",
"tooltip": {
@ -245,13 +684,21 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 0,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 6,
"x": 12,
"y": 1
"y": 16
},
"hiddenSeries": false,
"id": 7,
"legend": {
"avg": false,
@ -266,7 +713,11 @@
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.4.1",
"pointradius": 5,
"points": false,
"renderer": "flot",
@ -297,6 +748,7 @@
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "$osd R/W Bytes",
"tooltip": {
@ -337,11 +789,12 @@
},
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 10
"y": 25
},
"id": 12,
"panels": [],
@ -354,13 +807,21 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 0,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 6,
"x": 0,
"y": 11
"y": 26
},
"hiddenSeries": false,
"id": 9,
"legend": {
"avg": false,
@ -375,7 +836,11 @@
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.4.1",
"pointradius": 5,
"points": false,
"renderer": "flot",
@ -406,6 +871,7 @@
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Physical Device Latency for $osd",
"tooltip": {
@ -450,13 +916,21 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 0,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 6,
"x": 6,
"y": 11
"y": 26
},
"hiddenSeries": false,
"id": 5,
"legend": {
"avg": false,
@ -471,7 +945,11 @@
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.4.1",
"pointradius": 5,
"points": false,
"renderer": "flot",
@ -502,6 +980,7 @@
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Physical Device R/W IOPS for $osd",
"tooltip": {
@ -546,13 +1025,21 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 6,
"x": 12,
"y": 11
"y": 26
},
"hiddenSeries": false,
"id": 10,
"legend": {
"avg": false,
@ -567,7 +1054,11 @@
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.4.1",
"pointradius": 5,
"points": false,
"renderer": "flot",
@ -598,6 +1089,7 @@
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Physical Device R/W Bytes for $osd",
"tooltip": {
@ -642,13 +1134,21 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 6,
"x": 18,
"y": 11
"y": 26
},
"hiddenSeries": false,
"id": 4,
"legend": {
"avg": false,
@ -663,7 +1163,11 @@
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.4.1",
"pointradius": 5,
"points": false,
"renderer": "flot",
@ -682,6 +1186,7 @@
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Physical Device Util% for $osd",
"tooltip": {