Bug 2147345 - [RFE] Store extended information about snapshot sync duration and size for each image
Summary: [RFE] Store extended information about snapshot sync duration and size for ea...
Keywords:
Status: CLOSED DUPLICATE of bug 2147348
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD-Mirror
Version: 6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 6.1
Assignee: Divyansh Kamboj
QA Contact: Sunil Angadi
URL:
Whiteboard:
Depends On:
Blocks: 2147346
TreeView+ depends on / blocked
 
Reported: 2022-11-23 18:33 UTC by Juan Miguel Olmo
Modified: 2023-04-03 19:39 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-04-03 15:00:06 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-5683 0 None None None 2022-11-23 18:33:26 UTC
Red Hat Issue Tracker RHCEPH-5685 0 None None None 2022-11-23 18:42:22 UTC

Internal Links: 2025815

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 ***


Note You need to log in before you can comment on or make changes to this bug.