Bug 2147345

Summary: [RFE] Store extended information about snapshot sync duration and size for each image
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Juan Miguel Olmo <jolmomar>
Component: RBD-MirrorAssignee: Divyansh Kamboj <dkamboj>
Status: CLOSED DUPLICATE QA Contact: Sunil Angadi <sangadi>
Severity: high Docs Contact:
Priority: high    
Version: 6.0CC: ceph-eng-bugs, cephqe-warriors, idryomov, ocs-bugs, sangadi, vashastr
Target Milestone: ---Keywords: FutureFeature
Target Release: 6.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-03 15:00:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2147346    

Description Juan Miguel Olmo 2022-11-23 18:33:26 UTC
As developer i need to extend the information about RBD image status present in RADOS in order to have information about the last synchronization operation.

The extra fields to store in the image status are:

snap_last_sync_duration: time used to execute the last sync
snap_last_bytes_transferred: number of bytes transfer on last sync operation

This information will be included in the output of CLI commands (exampl, rbd mirror image status) and as labels in the ceph_rbd_image_status metric provided by Prometheus manager module

Comment 6 Juan Miguel Olmo 2023-03-28 07:51:56 UTC
Solved in :
https://github.com/ceph/ceph/pull/49299

Example of the metrics provided by Ceph Exporter:

3365:# HELP ceph_rbd_mirror_snapshot_image_last_sync_bytes Bytes synced for the last snapshot
3366:# TYPE ceph_rbd_mirror_snapshot_image_last_sync_bytes gauge
3367:ceph_rbd_mirror_snapshot_image_last_sync_bytes{ceph_daemon="client.admin.40628",image="image1",namespace="",pool="data"} 52428800
3368:# HELP ceph_rbd_mirror_snapshot_image_last_sync_time Time taken to sync the last snapshot
3369:# TYPE ceph_rbd_mirror_snapshot_image_last_sync_time gauge
3370:ceph_rbd_mirror_snapshot_image_last_sync_time{ceph_daemon="client.admin.40628",image="image1",namespace="",pool="data"} 0.000000

Comment 7 Ilya Dryomov 2023-04-03 15:00:06 UTC

*** This bug has been marked as a duplicate of bug 2147348 ***