Skip to content

Commit e3ade14

Browse files
authored
Merge pull request #1040 from stackhpc/ceph-dashboard-osd-usage
Ceph dashboard osd usage
2 parents a794842 + 646a60f commit e3ade14

File tree

2 files changed

+155
-2
lines changed

2 files changed

+155
-2
lines changed

etc/kayobe/kolla/config/grafana/dashboards/ceph/ceph_osds.json

Lines changed: 146 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,150 @@
11311131
],
11321132
"type": "histogram"
11331133
},
1134+
{
1135+
"datasource": {
1136+
"type": "prometheus",
1137+
"uid": "${datasource}"
1138+
},
1139+
"description": "Number of OSDs",
1140+
"fieldConfig": {
1141+
"defaults": {
1142+
"color": {
1143+
"mode": "thresholds"
1144+
},
1145+
"custom": {
1146+
"fillOpacity": 84,
1147+
"gradientMode": "none",
1148+
"hideFrom": {
1149+
"legend": false,
1150+
"tooltip": false,
1151+
"viz": false
1152+
},
1153+
"lineWidth": 1
1154+
},
1155+
"displayName": "${__field.labels.ceph_daemon}",
1156+
"mappings": [],
1157+
"thresholds": {
1158+
"mode": "absolute",
1159+
"steps": [
1160+
{
1161+
"color": "green",
1162+
"value": null
1163+
}
1164+
]
1165+
},
1166+
"unit": "percentunit"
1167+
},
1168+
"overrides": []
1169+
},
1170+
"gridPos": {
1171+
"h": 8,
1172+
"w": 12,
1173+
"x": 0,
1174+
"y": 16
1175+
},
1176+
"id": 21,
1177+
"options": {
1178+
"combine": true,
1179+
"legend": {
1180+
"calcs": [
1181+
"lastNotNull"
1182+
],
1183+
"displayMode": "list",
1184+
"placement": "right",
1185+
"showLegend": false
1186+
}
1187+
},
1188+
"targets": [
1189+
{
1190+
"datasource": {
1191+
"type": "prometheus",
1192+
"uid": "PBFA97CFB590B2093"
1193+
},
1194+
"editorMode": "code",
1195+
"expr": "ceph_osd_stat_bytes_used / ceph_osd_stat_bytes",
1196+
"instant": true,
1197+
"legendFormat": "__auto",
1198+
"range": false,
1199+
"refId": "A"
1200+
}
1201+
],
1202+
"title": "Per OSD Space Used",
1203+
"type": "histogram"
1204+
},
1205+
{
1206+
"datasource": {
1207+
"type": "prometheus",
1208+
"uid": "${datasource}"
1209+
},
1210+
"description": "Number of BluestoreDB's",
1211+
"fieldConfig": {
1212+
"defaults": {
1213+
"color": {
1214+
"mode": "thresholds",
1215+
"seriesBy": "last"
1216+
},
1217+
"custom": {
1218+
"fillOpacity": 84,
1219+
"gradientMode": "none",
1220+
"hideFrom": {
1221+
"legend": false,
1222+
"tooltip": false,
1223+
"viz": false
1224+
},
1225+
"lineWidth": 1
1226+
},
1227+
"displayName": "${__field.labels.ceph_daemon}",
1228+
"fieldMinMax": false,
1229+
"mappings": [],
1230+
"thresholds": {
1231+
"mode": "absolute",
1232+
"steps": [
1233+
{
1234+
"color": "green",
1235+
"value": null
1236+
}
1237+
]
1238+
},
1239+
"unit": "percentunit"
1240+
},
1241+
"overrides": []
1242+
},
1243+
"gridPos": {
1244+
"h": 8,
1245+
"w": 12,
1246+
"x": 12,
1247+
"y": 16
1248+
},
1249+
"id": 24,
1250+
"options": {
1251+
"combine": true,
1252+
"legend": {
1253+
"calcs": [
1254+
"lastNotNull"
1255+
],
1256+
"displayMode": "list",
1257+
"placement": "right",
1258+
"showLegend": false
1259+
}
1260+
},
1261+
"targets": [
1262+
{
1263+
"datasource": {
1264+
"type": "prometheus",
1265+
"uid": "PBFA97CFB590B2093"
1266+
},
1267+
"editorMode": "code",
1268+
"expr": "ceph_bluefs_db_used_bytes / ceph_bluefs_db_total_bytes ",
1269+
"instant": true,
1270+
"legendFormat": "__auto",
1271+
"range": false,
1272+
"refId": "A"
1273+
}
1274+
],
1275+
"title": "BluestoreDB Space Used",
1276+
"type": "histogram"
1277+
},
11341278
{
11351279
"collapsed": false,
11361280
"datasource": {
@@ -1141,7 +1285,7 @@
11411285
"h": 1,
11421286
"w": 24,
11431287
"x": 0,
1144-
"y": 16
1288+
"y": 17
11451289
},
11461290
"id": 20,
11471291
"panels": [],
@@ -1222,7 +1366,7 @@
12221366
"h": 8,
12231367
"w": 24,
12241368
"x": 0,
1225-
"y": 17
1369+
"y": 18
12261370
},
12271371
"id": 10,
12281372
"options": {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
features:
3+
- |
4+
Per OSD usage metrics are now available in the OSDs dashboard. The
5+
dashboard now includes a new section that displays a histogram of of the
6+
utilization of each OSD in the cluster. This can be useful for identifying
7+
OSDs that are outliers in terms of utilization, and may need to be
8+
rebalanced. Additionally, there is a histogram displaying the usage of the
9+
bluestoreDB for each OSD.

0 commit comments

Comments
 (0)