From f9d6026b6531ec920acf039e6c44c4f4859a2484 Mon Sep 17 00:00:00 2001 From: Shubham Pampattiwar Date: Fri, 25 Feb 2022 19:37:30 -0500 Subject: [PATCH] add metrics recording rule --- bundle/manifests/oadp-metrics-recording-rule.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bundle/manifests/oadp-metrics-recording-rule.yaml diff --git a/bundle/manifests/oadp-metrics-recording-rule.yaml b/bundle/manifests/oadp-metrics-recording-rule.yaml new file mode 100644 index 0000000000..c41578ee49 --- /dev/null +++ b/bundle/manifests/oadp-metrics-recording-rule.yaml @@ -0,0 +1,12 @@ +apiVersion: monitoring.coreos.com/v1 +kind: PrometheusRule +metadata: + name: oadp-operator +spec: + groups: + - name: oadp-operator.rules + rules: + - expr: max without(instance) (velero_restore_total) + record: cluster:velero_restore_total:max + - expr: max without(instance) (velero_backup_total) + record: cluster:velero_backup_total:max \ No newline at end of file