-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VolumeSynchronizationDelay Signed-off-by: rakeshgm <[email protected]>
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
labels: | ||
prometheus: k8s | ||
role: alert-rules | ||
name: alerting-rules | ||
namespace: system | ||
spec: | ||
groups: | ||
- name: alerts | ||
rules: | ||
- record: ramen_rpo_difference | ||
expr: ramen_sync_duration_seconds{job="ramen-hub-operator-metrics-service"} / on(policyname, job) group_left() (ramen_policy_schedule_interval_seconds{job="ramen-hub-operator-metrics-service"}) | ||
- alert: VolumeSynchronizationDelay | ||
expr: ramen_rpo_difference >= 3 | ||
for: 5s | ||
labels: | ||
cluster: "{{ $labels.cluster }}" | ||
severity: critical | ||
annotations: | ||
description: "Syncing of volumes (DRPC: {{ $labels.obj_name }}, Namespace: {{ $labels.obj_namespace }}) is taking more than thrice the scheduled snapshot interval. This may cause data loss and a backlog of replication requests. To get around the delay, follow the instructions provided in the documentation." | ||
alert_type: "DisasterRecovery" | ||
- alert: VolumeSynchronizationDelay | ||
expr: ramen_rpo_difference > 2 and ramen_rpo_difference < 3 | ||
for: 5s | ||
labels: | ||
cluster: "{{ $labels.cluster }}" | ||
severity: warning | ||
annotations: | ||
description: "Syncing of volumes (DRPC: {{ $labels.obj_name }}, Namespace: {{ $labels.obj_namespace }}) is taking more than twice the scheduled snapshot interval. This may cause data loss and impact replication requests. Check the documentation for instructions on how to get around the delay." | ||
alert_type: "DisasterRecovery" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
resources: | ||
- monitor.yaml | ||
- alerts.yaml |