diff options
author | Aashish Sharma <aasharma@li-e74156cc-2f67-11b2-a85c-e98659a63c5c.ibm.com> | 2024-07-17 11:07:49 +0200 |
---|---|---|
committer | Aashish Sharma <aasharma@li-e74156cc-2f67-11b2-a85c-e98659a63c5c.ibm.com> | 2024-07-17 12:19:15 +0200 |
commit | 2e54c9a01e58ed782028fa45f560aeb75c66169d (patch) | |
tree | fa287409e9a10f4f3b8a29bc5e8d523c20b4492b /monitoring | |
parent | Merge pull request #57715 from rhcs-dashboard/add-rgw-multisite-wizard (diff) | |
download | ceph-2e54c9a01e58ed782028fa45f560aeb75c66169d.tar.xz ceph-2e54c9a01e58ed782028fa45f560aeb75c66169d.zip |
mgr/dashboard: Add a new chart for replication delta per shard in rgw sync overview grafana dashboard
Fixes: https://tracker.ceph.com/issues/66994
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
Diffstat (limited to 'monitoring')
-rw-r--r-- | monitoring/ceph-mixin/dashboards/rgw.libsonnet | 39 | ||||
-rw-r--r-- | monitoring/ceph-mixin/dashboards_out/radosgw-sync-overview.json | 94 |
2 files changed, 133 insertions, 0 deletions
diff --git a/monitoring/ceph-mixin/dashboards/rgw.libsonnet b/monitoring/ceph-mixin/dashboards/rgw.libsonnet index c7c447ca71a..79a4b7a14eb 100644 --- a/monitoring/ceph-mixin/dashboards/rgw.libsonnet +++ b/monitoring/ceph-mixin/dashboards/rgw.libsonnet @@ -112,6 +112,45 @@ local g = import 'grafonnet/grafana.libsonnet'; 8, 7 ), + $.timeSeriesPanel( + lineInterpolation='linear', + lineWidth=1, + drawStyle='line', + axisPlacement='auto', + title='Replication(Time) Delta per shard', + datasource='$datasource', + gridPosition={ h: 7, w: 16, x: 8, y: 7 }, + fillOpacity=0, + pointSize=5, + showPoints='auto', + unit='s', + displayMode='table', + showLegend=true, + placement='right', + tooltip={ mode: 'multi', sort: 'desc' }, + stackingMode='none', + spanNulls=false, + decimals=2, + thresholdsMode='absolute', + sortBy='Last *', + sortDesc=true + ) + .addCalcs(['lastNotNull']) + .addThresholds([ + { color: 'green', value: null }, + { color: 'red', value: 80 }, + ]) + .addTargets( + [ + $.addTargetSchema( + expr='rate(ceph_rgw_sync_delta_sync_delta[$__rate_interval])', + datasource='$datasource', + instant=false, + legendFormat='{{instance_id}} - {{shard_id}}', + range=true, + ), + ] + ), ]), 'radosgw-overview.json': local RgwOverviewPanel( diff --git a/monitoring/ceph-mixin/dashboards_out/radosgw-sync-overview.json b/monitoring/ceph-mixin/dashboards_out/radosgw-sync-overview.json index 94dcaa4325e..a7550d27c9e 100644 --- a/monitoring/ceph-mixin/dashboards_out/radosgw-sync-overview.json +++ b/monitoring/ceph-mixin/dashboards_out/radosgw-sync-overview.json @@ -416,6 +416,100 @@ "show": true } ] + }, + { + "datasource": "$datasource", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [ ] + }, + "gridPos": { + "h": 7, + "w": 16, + "x": 8, + "y": 7 + }, + "id": 6, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Last *", + "sortDesc": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "9.1.3", + "targets": [ + { + "datasource": "$datasource", + "expr": "rate(ceph_rgw_sync_delta_sync_delta[$__rate_interval])", + "format": "time_series", + "instant": false, + "intervalFactor": 1, + "legendFormat": "{{instance_id}} - {{shard_id}}", + "range": true, + "refId": "A" + } + ], + "title": "Replication(Time) Delta per shard", + "type": "timeseries" } ], "refresh": "30s", |