Bug 2207720

Summary: Image metrics for providing rbd snapshot schedule info for all the images
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Juan Miguel Olmo <jolmomar>
Component: RBD-MirrorAssignee: Divyansh Kamboj <dkamboj>
Status: ASSIGNED --- QA Contact: Sunil Angadi <sangadi>
Severity: low Docs Contact:
Priority: high    
Version: 6.1CC: ceph-eng-bugs, cephqe-warriors, dkamboj, sangadi
Target Milestone: ---Flags: sangadi: needinfo? (dkamboj)
Target Release: 6.1z2   
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: 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:

Description Juan Miguel Olmo 2023-05-16 16:01:39 UTC
Study the possibility of generate RBD  images snapshot schedule metrics in the Ceph Prometheus manager module.

The source of the information now is the rbd command to list the recorded schedules:

# rbd --cluster site-a mirror snapshot schedule ls --recursive
We try to see, if it is possible to  generate metrics for every image like:

ceph_rbd_snapshot_schedule  {pool="pool_x", namespace="namespace_y",  image="image_name"} 6
The value of 6 indicates that the snapshot for "image_name" is scheduled every 6 hours.

Things to take into account:

Scalability
This information will be only available for the primary images.

Comment 1 Sunil Angadi 2023-07-20 06:10:03 UTC
Hi Divyansh,
Can you please let me know, when this bz will come to ON QA?