Skip to content

Commit be407d4

Browse files
authored
Merge pull request ceph#63641 from anushruti10116/add-bucket-notification-dashboard
mgr/dashboard: Adding RGW Bucket Notification Dashboard for Grafana
2 parents 004bc28 + 9860c7c commit be407d4

File tree

2 files changed

+273
-0
lines changed

2 files changed

+273
-0
lines changed

monitoring/ceph-mixin/dashboards/rgw.libsonnet

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,46 @@ local g = import 'grafonnet/grafana.libsonnet';
701701
transform: 'negative-Y',
702702
},
703703
]),
704+
$.addRowSchema(false,
705+
true,
706+
'RGW Overview - Bucket Notification') +
707+
{
708+
gridPos: { x: 0, y: 27, w: 24, h: 1 },
709+
},
710+
RgwOverviewPanel(
711+
'Pending Notifications by Topic',
712+
'Shows the number of pending notifications in each Object topic queue, indicating how many messages are waiting to be delivered',
713+
'',
714+
'short',
715+
|||
716+
(
717+
ceph_rgw_topic_persistent_topic_len
718+
)
719+
|||,
720+
'{{topic}}',
721+
0,
722+
28,
723+
12,
724+
8
725+
)
726+
+ { options: { legend: { calcs: ['lastNotNull'], displayMode: 'list', placement: 'right', showLegend: true, sortBy: 'Last *', sortDesc: true } } },
727+
RgwOverviewPanel(
728+
'Pending Notifications Size by Topic',
729+
'Shows the total size of pending notifications stored per Object topic, reflecting how much data is waiting to be delivered.',
730+
'deckbytes',
731+
'short',
732+
|||
733+
(
734+
ceph_rgw_topic_persistent_topic_size
735+
)
736+
|||,
737+
'{{topic}}',
738+
12,
739+
28,
740+
12,
741+
8
742+
)
743+
+ { options: { legend: { calcs: ['lastNotNull'], displayMode: 'list', placement: 'right', showLegend: true, sortBy: 'Last *', sortDesc: true } } },
704744
]),
705745
'radosgw-detail.json':
706746
local RgwDetailsPanel(aliasColors,

monitoring/ceph-mixin/dashboards_out/radosgw-overview.json

Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,239 @@
11851185
"show": true
11861186
}
11871187
]
1188+
},
1189+
{
1190+
"collapse": false,
1191+
"collapsed": false,
1192+
"gridPos": {
1193+
"h": 1,
1194+
"w": 24,
1195+
"x": 0,
1196+
"y": 27
1197+
},
1198+
"id": 14,
1199+
"panels": [ ],
1200+
"repeat": null,
1201+
"repeatIteration": null,
1202+
"repeatRowId": null,
1203+
"showTitle": true,
1204+
"title": "RGW Overview - Bucket Notification",
1205+
"titleSize": "h6",
1206+
"type": "row"
1207+
},
1208+
{
1209+
"aliasColors": { },
1210+
"bars": false,
1211+
"dashLength": 10,
1212+
"dashes": false,
1213+
"datasource": "$datasource",
1214+
"description": "Shows the number of pending notifications in each Object topic queue, indicating how many messages are waiting to be delivered",
1215+
"fieldConfig": {
1216+
"defaults": {
1217+
"custom": {
1218+
"fillOpacity": 8,
1219+
"showPoints": "never"
1220+
},
1221+
"unit": ""
1222+
}
1223+
},
1224+
"fill": 1,
1225+
"fillGradient": 0,
1226+
"gridPos": {
1227+
"h": 8,
1228+
"w": 12,
1229+
"x": 0,
1230+
"y": 28
1231+
},
1232+
"id": 15,
1233+
"legend": {
1234+
"alignAsTable": false,
1235+
"avg": false,
1236+
"current": false,
1237+
"max": false,
1238+
"min": false,
1239+
"rightSide": false,
1240+
"show": true,
1241+
"sideWidth": null,
1242+
"total": false,
1243+
"values": false
1244+
},
1245+
"lines": true,
1246+
"linewidth": 1,
1247+
"links": [ ],
1248+
"nullPointMode": "null as zero",
1249+
"options": {
1250+
"legend": {
1251+
"calcs": [
1252+
"lastNotNull"
1253+
],
1254+
"displayMode": "list",
1255+
"placement": "right",
1256+
"showLegend": true,
1257+
"sortBy": "Last *",
1258+
"sortDesc": true
1259+
}
1260+
},
1261+
"percentage": false,
1262+
"pointradius": 5,
1263+
"points": false,
1264+
"renderer": "flot",
1265+
"repeat": null,
1266+
"seriesOverrides": [ ],
1267+
"spaceLength": 10,
1268+
"stack": false,
1269+
"steppedLine": false,
1270+
"targets": [
1271+
{
1272+
"expr": "(\n ceph_rgw_topic_persistent_topic_len\n)\n",
1273+
"format": "time_series",
1274+
"intervalFactor": 1,
1275+
"legendFormat": "{{topic}}",
1276+
"refId": "A"
1277+
}
1278+
],
1279+
"thresholds": [ ],
1280+
"timeFrom": null,
1281+
"timeShift": null,
1282+
"title": "Pending Notifications by Topic",
1283+
"tooltip": {
1284+
"shared": true,
1285+
"sort": 0,
1286+
"value_type": "individual"
1287+
},
1288+
"type": "timeseries",
1289+
"xaxis": {
1290+
"buckets": null,
1291+
"mode": "time",
1292+
"name": null,
1293+
"show": true,
1294+
"values": [ ]
1295+
},
1296+
"yaxes": [
1297+
{
1298+
"format": "",
1299+
"label": null,
1300+
"logBase": 1,
1301+
"max": null,
1302+
"min": 0,
1303+
"show": true
1304+
},
1305+
{
1306+
"format": "short",
1307+
"label": null,
1308+
"logBase": 1,
1309+
"max": null,
1310+
"min": 0,
1311+
"show": true
1312+
}
1313+
]
1314+
},
1315+
{
1316+
"aliasColors": { },
1317+
"bars": false,
1318+
"dashLength": 10,
1319+
"dashes": false,
1320+
"datasource": "$datasource",
1321+
"description": "Shows the total size of pending notifications stored per Object topic, reflecting how much data is waiting to be delivered.",
1322+
"fieldConfig": {
1323+
"defaults": {
1324+
"custom": {
1325+
"fillOpacity": 8,
1326+
"showPoints": "never"
1327+
},
1328+
"unit": "deckbytes"
1329+
}
1330+
},
1331+
"fill": 1,
1332+
"fillGradient": 0,
1333+
"gridPos": {
1334+
"h": 8,
1335+
"w": 12,
1336+
"x": 12,
1337+
"y": 28
1338+
},
1339+
"id": 16,
1340+
"legend": {
1341+
"alignAsTable": false,
1342+
"avg": false,
1343+
"current": false,
1344+
"max": false,
1345+
"min": false,
1346+
"rightSide": false,
1347+
"show": true,
1348+
"sideWidth": null,
1349+
"total": false,
1350+
"values": false
1351+
},
1352+
"lines": true,
1353+
"linewidth": 1,
1354+
"links": [ ],
1355+
"nullPointMode": "null as zero",
1356+
"options": {
1357+
"legend": {
1358+
"calcs": [
1359+
"lastNotNull"
1360+
],
1361+
"displayMode": "list",
1362+
"placement": "right",
1363+
"showLegend": true,
1364+
"sortBy": "Last *",
1365+
"sortDesc": true
1366+
}
1367+
},
1368+
"percentage": false,
1369+
"pointradius": 5,
1370+
"points": false,
1371+
"renderer": "flot",
1372+
"repeat": null,
1373+
"seriesOverrides": [ ],
1374+
"spaceLength": 10,
1375+
"stack": false,
1376+
"steppedLine": false,
1377+
"targets": [
1378+
{
1379+
"expr": "(\n ceph_rgw_topic_persistent_topic_size\n)\n",
1380+
"format": "time_series",
1381+
"intervalFactor": 1,
1382+
"legendFormat": "{{topic}}",
1383+
"refId": "A"
1384+
}
1385+
],
1386+
"thresholds": [ ],
1387+
"timeFrom": null,
1388+
"timeShift": null,
1389+
"title": "Pending Notifications Size by Topic",
1390+
"tooltip": {
1391+
"shared": true,
1392+
"sort": 0,
1393+
"value_type": "individual"
1394+
},
1395+
"type": "timeseries",
1396+
"xaxis": {
1397+
"buckets": null,
1398+
"mode": "time",
1399+
"name": null,
1400+
"show": true,
1401+
"values": [ ]
1402+
},
1403+
"yaxes": [
1404+
{
1405+
"format": "deckbytes",
1406+
"label": null,
1407+
"logBase": 1,
1408+
"max": null,
1409+
"min": 0,
1410+
"show": true
1411+
},
1412+
{
1413+
"format": "short",
1414+
"label": null,
1415+
"logBase": 1,
1416+
"max": null,
1417+
"min": 0,
1418+
"show": true
1419+
}
1420+
]
11881421
}
11891422
],
11901423
"refresh": "30s",

0 commit comments

Comments
 (0)