Skip to content

Commit

Permalink
Prevent ObcQuotaObjectsAlert overlapping with ObjectsExhausedAlert
Browse files Browse the repository at this point in the history
Since queries for both ObcQuotaObjectsAlert and
ObcQuotaObjectsExhausedAlert are same, we don't require both the alerts
to be fired at the same time.

Signed-off-by: Arun Kumar Mohan <[email protected]>
  • Loading branch information
aruniiird committed Mar 27, 2024
1 parent 493179c commit 3724ece
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions metrics/deploy/prometheus-ocs-rules-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ spec:
severity_level: warning
storage_type: RGW
expr: |
(ocs_objectbucketclaim_info * on (namespace, objectbucket, managedBy) group_left() (ocs_objectbucket_used_bytes/ocs_objectbucket_max_bytes)) > 0.80
(ocs_objectbucketclaim_info * on (namespace, objectbucket, managedBy) group_left() (ocs_objectbucket_used_bytes/ocs_objectbucket_max_bytes)) > 0.80 < 1
for: 10s
labels:
severity: warning
Expand All @@ -110,7 +110,7 @@ spec:
severity_level: warning
storage_type: RGW
expr: |
(ocs_objectbucketclaim_info * on (namespace, managedBy, objectbucket) group_left() (ocs_objectbucket_objects_total/ocs_objectbucket_max_objects)) > 0.80
(ocs_objectbucketclaim_info * on (namespace, managedBy, objectbucket) group_left() (ocs_objectbucket_objects_total/ocs_objectbucket_max_objects)) > 0.80 < 1
for: 10s
labels:
severity: warning
Expand Down
4 changes: 2 additions & 2 deletions metrics/deploy/prometheus-ocs-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ spec:
severity_level: warning
storage_type: RGW
expr: |
(ocs_objectbucketclaim_info * on (namespace, objectbucket, managedBy) group_left() (ocs_objectbucket_used_bytes/ocs_objectbucket_max_bytes)) > 0.80
(ocs_objectbucketclaim_info * on (namespace, objectbucket, managedBy) group_left() (ocs_objectbucket_used_bytes/ocs_objectbucket_max_bytes)) > 0.80 < 1
for: 10s
labels:
severity: warning
Expand All @@ -211,7 +211,7 @@ spec:
severity_level: warning
storage_type: RGW
expr: |
(ocs_objectbucketclaim_info * on (namespace, managedBy, objectbucket) group_left() (ocs_objectbucket_objects_total/ocs_objectbucket_max_objects)) > 0.80
(ocs_objectbucketclaim_info * on (namespace, managedBy, objectbucket) group_left() (ocs_objectbucket_objects_total/ocs_objectbucket_max_objects)) > 0.80 < 1
for: 10s
labels:
severity: warning
Expand Down

0 comments on commit 3724ece

Please sign in to comment.