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
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
*** This bug has been marked as a duplicate of bug 2147348 ***