Skip to content

Commit f2f6d57

Browse files
committed
Add new panel for Per OSD Usage in OSD dashboard
Adds a new panel to the OSD dashboard that shows the per OSD usage as well as the bluestoreDB usage as histograms.
1 parent 9d85426 commit f2f6d57

File tree

1 file changed

+146
-2
lines changed

1 file changed

+146
-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
@@ -884,6 +884,150 @@
884884
"align": false
885885
}
886886
},
887+
{
888+
"datasource": {
889+
"type": "prometheus",
890+
"uid": "${datasource}"
891+
},
892+
"description": "Number of OSDs",
893+
"fieldConfig": {
894+
"defaults": {
895+
"color": {
896+
"mode": "thresholds"
897+
},
898+
"custom": {
899+
"fillOpacity": 84,
900+
"gradientMode": "none",
901+
"hideFrom": {
902+
"legend": false,
903+
"tooltip": false,
904+
"viz": false
905+
},
906+
"lineWidth": 1
907+
},
908+
"displayName": "${__field.labels.ceph_daemon}",
909+
"mappings": [],
910+
"thresholds": {
911+
"mode": "absolute",
912+
"steps": [
913+
{
914+
"color": "green",
915+
"value": null
916+
}
917+
]
918+
},
919+
"unit": "percentunit"
920+
},
921+
"overrides": []
922+
},
923+
"gridPos": {
924+
"h": 8,
925+
"w": 12,
926+
"x": 0,
927+
"y": 16
928+
},
929+
"id": 21,
930+
"options": {
931+
"combine": true,
932+
"legend": {
933+
"calcs": [
934+
"lastNotNull"
935+
],
936+
"displayMode": "list",
937+
"placement": "right",
938+
"showLegend": false
939+
}
940+
},
941+
"targets": [
942+
{
943+
"datasource": {
944+
"type": "prometheus",
945+
"uid": "PBFA97CFB590B2093"
946+
},
947+
"editorMode": "code",
948+
"expr": "ceph_osd_stat_bytes_used / ceph_osd_stat_bytes",
949+
"instant": true,
950+
"legendFormat": "__auto",
951+
"range": false,
952+
"refId": "A"
953+
}
954+
],
955+
"title": "Per OSD Space Used",
956+
"type": "histogram"
957+
},
958+
{
959+
"datasource": {
960+
"type": "prometheus",
961+
"uid": "${datasource}"
962+
},
963+
"description": "Number of BluestoreDB's",
964+
"fieldConfig": {
965+
"defaults": {
966+
"color": {
967+
"mode": "thresholds",
968+
"seriesBy": "last"
969+
},
970+
"custom": {
971+
"fillOpacity": 84,
972+
"gradientMode": "none",
973+
"hideFrom": {
974+
"legend": false,
975+
"tooltip": false,
976+
"viz": false
977+
},
978+
"lineWidth": 1
979+
},
980+
"displayName": "${__field.labels.ceph_daemon}",
981+
"fieldMinMax": false,
982+
"mappings": [],
983+
"thresholds": {
984+
"mode": "absolute",
985+
"steps": [
986+
{
987+
"color": "green",
988+
"value": null
989+
}
990+
]
991+
},
992+
"unit": "percentunit"
993+
},
994+
"overrides": []
995+
},
996+
"gridPos": {
997+
"h": 8,
998+
"w": 12,
999+
"x": 12,
1000+
"y": 16
1001+
},
1002+
"id": 24,
1003+
"options": {
1004+
"combine": true,
1005+
"legend": {
1006+
"calcs": [
1007+
"lastNotNull"
1008+
],
1009+
"displayMode": "list",
1010+
"placement": "right",
1011+
"showLegend": false
1012+
}
1013+
},
1014+
"targets": [
1015+
{
1016+
"datasource": {
1017+
"type": "prometheus",
1018+
"uid": "PBFA97CFB590B2093"
1019+
},
1020+
"editorMode": "code",
1021+
"expr": "ceph_bluefs_db_used_bytes / ceph_bluefs_db_total_bytes ",
1022+
"instant": true,
1023+
"legendFormat": "__auto",
1024+
"range": false,
1025+
"refId": "A"
1026+
}
1027+
],
1028+
"title": "BluestoreDB Space Used",
1029+
"type": "histogram"
1030+
},
8871031
{
8881032
"collapsed": false,
8891033
"datasource": {
@@ -894,7 +1038,7 @@
8941038
"h": 1,
8951039
"w": 24,
8961040
"x": 0,
897-
"y": 16
1041+
"y": 17
8981042
},
8991043
"id": 20,
9001044
"panels": [],
@@ -931,7 +1075,7 @@
9311075
"h": 8,
9321076
"w": 24,
9331077
"x": 0,
934-
"y": 17
1078+
"y": 18
9351079
},
9361080
"hiddenSeries": false,
9371081
"id": 10,

0 commit comments

Comments
 (0)