6.4. Disaster recovery metrics
These are the ramen metrics that are scrapped by prometheus.
- ramen_last_sync_timestamp_seconds
- ramen_policy_schedule_interval_seconds
- ramen_last_sync_duration_seconds
- ramen_last_sync_data_bytes
Run these metrics from the Hub cluster where Red Hat Advanced Cluster Management for Kubernetes (RHACM operator) is installed.
Last synchronization timestamp in seconds
This is the time in seconds which gives the time of the most recent successful synchronization of all PVCs per application.
- Metric name
-
ramen_last_sync_timestamp_seconds - Metrics type
- Gauge
- Labels
-
ObjType: Type of the object, here its DPPC -
ObjName: Name of the object, here it is DRPC-Name -
ObjNamespace: DRPC namespace -
Policyname: Name of the DRPolicy -
SchedulingInterval: Scheduling interval value from DRPolicy
-
- Metric value
-
Value is set as Unix seconds which is obtained from
lastGroupSyncTimefrom DRPC status.
Policy schedule interval in seconds
This gives the scheduling interval in seconds from DRPolicy.
- Metric name
-
ramen_policy_schedule_interval_seconds - Metrics type
- Gauge
- Labels
-
Policyname: Name of the DRPolicy
-
- Metric value
- This is set to a scheduling interval in seconds which is taken from DRPolicy.
Last synchronization duration in seconds
This represents the longest time taken to sync from the most recent successful synchronization of all PVCs per application.
- Metric name
-
ramen_last_sync_duration_seconds - Metrics type
- Gauge
- Labels
-
obj_type: Type of the object, here it is DPPC -
obj_name: Name of the object, here it is DRPC-Name -
obj_namespace: DRPC namespace -
scheduling_interval: Scheduling interval value from DRPolicy
-
- Metric value
-
The value is taken from
lastGroupSyncDurationfrom DRPC status.
Total bytes transferred from most recent synchronization
This value represents the total bytes transferred from the most recent successful synchronization of all PVCs per application.
- Metric name
-
ramen_last_sync_data_bytes - Metrics type
- Gauge
- Labels
-
obj_type: Type of the object, here it is DPPC -
obj_name: Name of the object, here it is DRPC-Name -
obj_namespace: DRPC namespace -
scheduling_interval: Scheduling interval value from DRPolicy
-
- Metric value
-
The value is taken from
lastGroupSyncBytesfrom DRPC status.