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
- ramen_workload_protection_status
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 DPPCObjName
: Name of the object, here it is DRPC-NameObjNamespace
: DRPC namespacePolicyname
: Name of the DRPolicySchedulingInterval
: scheduling interval value from DRPolicy
- Metric value
- Value is set as Unix seconds which is obtained from
lastGroupSyncTime
from 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
-
Set to 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 its DPPCobj_name
: Name of the object, here it is DRPC-Nameobj_namespace
: DRPC namespacescheduling_interval
: Scheduling interval value from DRPolicy
- Metric value
-
The value is taken from
lastGroupSyncDuration
from 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 its DPPCobj_name
: Name of the object, here it is DRPC-Nameobj_namespace
: DRPC namespace
- Metric value
-
The value is taken from
lastGroupSyncBytes
from DRPC status.
Workload protection status
This value provides the application protection status per application that is DR protected.
- Metric name
-
ramen_workload_protection_status
- Metrics type
-
Gauge
- Labels
-
obj_type
: Type of the object, here its DPPCobj_name
: Name of the object, here it is DRPC-Nameobj_namespace
: DRPC namespacescheduling_interval
: Scheduling interval value from DRPolicy
- Metric value
-
The value is either a "1" or a "0", where "1" indicates application DR protection is healthy and a "0" indicates application protection degraded and potentially unprotected.