Skip to content

Commit 655549e

Browse files
authored
Merge pull request ceph#58644 from rhcs-dashboard/fix-66994-main
mgr/dashboard: Add a new chart for replication delta per shard in rgw sync overview grafana dashboard Reviewed-by: Ankush Behl <[email protected]>
2 parents 57f1b66 + 2e54c9a commit 655549e

File tree

2 files changed

+133
-0
lines changed

2 files changed

+133
-0
lines changed

monitoring/ceph-mixin/dashboards/rgw.libsonnet

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,45 @@ local g = import 'grafonnet/grafana.libsonnet';
112112
8,
113113
7
114114
),
115+
$.timeSeriesPanel(
116+
lineInterpolation='linear',
117+
lineWidth=1,
118+
drawStyle='line',
119+
axisPlacement='auto',
120+
title='Replication(Time) Delta per shard',
121+
datasource='$datasource',
122+
gridPosition={ h: 7, w: 16, x: 8, y: 7 },
123+
fillOpacity=0,
124+
pointSize=5,
125+
showPoints='auto',
126+
unit='s',
127+
displayMode='table',
128+
showLegend=true,
129+
placement='right',
130+
tooltip={ mode: 'multi', sort: 'desc' },
131+
stackingMode='none',
132+
spanNulls=false,
133+
decimals=2,
134+
thresholdsMode='absolute',
135+
sortBy='Last *',
136+
sortDesc=true
137+
)
138+
.addCalcs(['lastNotNull'])
139+
.addThresholds([
140+
{ color: 'green', value: null },
141+
{ color: 'red', value: 80 },
142+
])
143+
.addTargets(
144+
[
145+
$.addTargetSchema(
146+
expr='rate(ceph_rgw_sync_delta_sync_delta[$__rate_interval])',
147+
datasource='$datasource',
148+
instant=false,
149+
legendFormat='{{instance_id}} - {{shard_id}}',
150+
range=true,
151+
),
152+
]
153+
),
115154
]),
116155
'radosgw-overview.json':
117156
local RgwOverviewPanel(

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

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,100 @@
416416
"show": true
417417
}
418418
]
419+
},
420+
{
421+
"datasource": "$datasource",
422+
"fieldConfig": {
423+
"defaults": {
424+
"color": {
425+
"mode": "palette-classic"
426+
},
427+
"custom": {
428+
"axisCenteredZero": false,
429+
"axisColorMode": "text",
430+
"axisLabel": "",
431+
"axisPlacement": "auto",
432+
"barAlignment": 0,
433+
"drawStyle": "line",
434+
"fillOpacity": 0,
435+
"gradientMode": "none",
436+
"hideFrom": {
437+
"legend": false,
438+
"tooltip": false,
439+
"viz": false
440+
},
441+
"lineInterpolation": "linear",
442+
"lineWidth": 1,
443+
"pointSize": 5,
444+
"scaleDistribution": {
445+
"type": "linear"
446+
},
447+
"showPoints": "auto",
448+
"spanNulls": false,
449+
"stacking": {
450+
"group": "A",
451+
"mode": "none"
452+
},
453+
"thresholdsStyle": {
454+
"mode": "off"
455+
}
456+
},
457+
"decimals": 2,
458+
"thresholds": {
459+
"mode": "absolute",
460+
"steps": [
461+
{
462+
"color": "green",
463+
"value": null
464+
},
465+
{
466+
"color": "red",
467+
"value": 80
468+
}
469+
]
470+
},
471+
"unit": "s"
472+
},
473+
"overrides": [ ]
474+
},
475+
"gridPos": {
476+
"h": 7,
477+
"w": 16,
478+
"x": 8,
479+
"y": 7
480+
},
481+
"id": 6,
482+
"options": {
483+
"legend": {
484+
"calcs": [
485+
"lastNotNull"
486+
],
487+
"displayMode": "table",
488+
"placement": "right",
489+
"showLegend": true,
490+
"sortBy": "Last *",
491+
"sortDesc": true
492+
},
493+
"tooltip": {
494+
"mode": "multi",
495+
"sort": "desc"
496+
}
497+
},
498+
"pluginVersion": "9.1.3",
499+
"targets": [
500+
{
501+
"datasource": "$datasource",
502+
"expr": "rate(ceph_rgw_sync_delta_sync_delta[$__rate_interval])",
503+
"format": "time_series",
504+
"instant": false,
505+
"intervalFactor": 1,
506+
"legendFormat": "{{instance_id}} - {{shard_id}}",
507+
"range": true,
508+
"refId": "A"
509+
}
510+
],
511+
"title": "Replication(Time) Delta per shard",
512+
"type": "timeseries"
419513
}
420514
],
421515
"refresh": "30s",

0 commit comments

Comments
 (0)