Bug 2270946 - [CephFS-Mirror][RFE] - Provide metrics support for the Replication Start/End Notifications
Summary: [CephFS-Mirror][RFE] - Provide metrics support for the Replication Start/End ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: CephFS
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 7.1z2
Assignee: Jos Collin
QA Contact: Hemanth Kumar
URL:
Whiteboard:
Depends On:
Blocks: 2303452
TreeView+ depends on / blocked
 
Reported: 2024-03-22 10:05 UTC by Hemanth Kumar
Modified: 2024-11-07 14:38 UTC (History)
6 users (show)

Fixed In Version: ceph-18.2.1-235.el9cp
Doc Type: Enhancement
Doc Text:
With this enhancement, metrics support for the replication start and end notifications is provided. These metrics enable monitoring logic for data replication. This enhancement provides labeled metrics: last_synced_start, last_synced_end, last_synced_duration, last_synced_bytes as requested.
Clone Of:
: 2303452 (view as bug list)
Environment:
Last Closed: 2024-11-07 14:38:34 UTC
Embargoed:
dwalveka: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 65171 0 None None None 2024-03-27 05:05:07 UTC
Red Hat Issue Tracker RHCEPH-8610 0 None None None 2024-03-22 10:06:39 UTC
Red Hat Product Errata RHBA-2024:9010 0 None None None 2024-11-07 14:38:40 UTC

Description Hemanth Kumar 2024-03-22 10:05:25 UTC
Description of problem:
-----------------------

At present, metrics counters for the average/sum of time taken to sync all the snapshots are provided.
 
Metrics should be provided or enable monitoring logic to generate the following alerts:

* Metrics reflecting the alerts for start time of data replication.
* Metrics reflecting the alerts for end time of data replication.
* Metrics reflecting the alerts for time taken for the data replication(single snapshot replication) to complete

Also. include the metrics for start/end when a data replication restarts due to some failures.

Metrics available at present : 
------------------------------


  {
    "key": "cephfs_mirror_peers",
    "value": [
      {
        "labels": {
          "peer_cluster_filesystem": "cephfs",
          "peer_cluster_name": "remote_site",
          "source_filesystem": "cephfs",
          "source_fscid": "1"
        },
        "counters": {
          "snaps_synced": 201,
          "snaps_deleted": 200,
          "snaps_renamed": 0,
          "sync_failures": 1,
          "avg_sync_time": {
            "avgcount": 201,
            "sum": 21.406007450,
            "avgtime": 0.106497549
          },
          "sync_bytes": 132
        }
      }
    ]
  }

Comment 1 Venky Shankar 2024-03-26 12:20:52 UTC
Jos - Please create an upstream tracker for this.

Comment 10 errata-xmlrpc 2024-11-07 14:38:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 7.1 security, bug fix, and enhancement updates), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2024:9010


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