Skip to content

Commit

Permalink
Add namespace and cluster name to alert messages
Browse files Browse the repository at this point in the history
Signed-off-by: Arun Kumar Mohan <[email protected]>
  • Loading branch information
aruniiird committed Dec 11, 2023
1 parent 64596db commit ebc45aa
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 84 deletions.
24 changes: 12 additions & 12 deletions metrics/deploy/prometheus-ocs-rules-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ spec:
rules:
- alert: ObcQuotaBytesAlert
annotations:
description: ObjectBucketClaim {{ $labels.objectbucketclaim }} has crossed 80% of the size limit set by the quota(bytes) and will become read-only on reaching the quota limit. Increase the quota in the {{ $labels.objectbucketclaim }} OBC custom resource.
message: OBC has crossed 80% of the quota(bytes).
description: ObjectBucketClaim {{ $labels.objectbucketclaim }} has crossed 80% of the size limit set by the quota(bytes) and will become read-only on reaching the quota limit in namespace:cluster {{ $labels.namespace }}:{{ $labels.managedBy }}. Increase the quota in the {{ $labels.objectbucketclaim }} OBC custom resource.
message: OBC has crossed 80% of the quota(bytes) in namespace:cluster {{ $labels.namespace }}:{{ $labels.managedBy }}.
severity_level: warning
storage_type: RGW
expr: |
Expand All @@ -78,8 +78,8 @@ spec:
severity: warning
- alert: ObcQuotaObjectsAlert
annotations:
description: ObjectBucketClaim {{ $labels.objectbucketclaim }} has crossed 80% of the size limit set by the quota(objects) and will become read-only on reaching the quota limit. Increase the quota in the {{ $labels.objectbucketclaim }} OBC custom resource.
message: OBC has crossed 80% of the quota(object).
description: ObjectBucketClaim {{ $labels.objectbucketclaim }} has crossed 80% of the size limit set by the quota(objects) and will become read-only on reaching the quota limit in namespace:cluster {{ $labels.namespace }}:{{ $labels.managedBy }}. Increase the quota in the {{ $labels.objectbucketclaim }} OBC custom resource.
message: OBC has crossed 80% of the quota(object) in namespace:cluster {{ $labels.namespace }}:{{ $labels.managedBy }}.
severity_level: warning
storage_type: RGW
expr: |
Expand All @@ -89,8 +89,8 @@ spec:
severity: warning
- alert: ObcQuotaBytesExhausedAlert
annotations:
description: ObjectBucketClaim {{ $labels.objectbucketclaim }} has crossed the limit set by the quota(bytes) and will be read-only now. Increase the quota in the {{ $labels.objectbucketclaim }} OBC custom resource immediately.
message: OBC reached quota(bytes) limit.
description: ObjectBucketClaim {{ $labels.objectbucketclaim }} has crossed the limit set by the quota(bytes) and will be read-only now in namespace:cluster {{ $labels.namespace }}:{{ $labels.managedBy }}. Increase the quota in the {{ $labels.objectbucketclaim }} OBC custom resource immediately.
message: OBC reached quota(bytes) limit in namespace:cluster {{ $labels.namespace }}:{{ $labels.managedBy }}.
severity_level: error
storage_type: RGW
expr: |
Expand All @@ -100,8 +100,8 @@ spec:
severity: critical
- alert: ObcQuotaObjectsExhausedAlert
annotations:
description: ObjectBucketClaim {{ $labels.objectbucketclaim }} has crossed the limit set by the quota(objects) and will be read-only now. Increase the quota in the {{ $labels.objectbucketclaim }} OBC custom resource immediately.
message: OBC reached quota(object) limit.
description: ObjectBucketClaim {{ $labels.objectbucketclaim }} has crossed the limit set by the quota(objects) and will be read-only now in namespace:cluster {{ $labels.namespace }}:{{ $labels.managedBy }}. Increase the quota in the {{ $labels.objectbucketclaim }} OBC custom resource immediately.
message: OBC reached quota(object) limit in namespace:cluster {{ $labels.namespace }}:{{ $labels.managedBy }}.
severity_level: error
storage_type: RGW
expr: |
Expand All @@ -113,8 +113,8 @@ spec:
rules:
- alert: ClusterObjectStoreState
annotations:
description: Cluster Object Store is in unhealthy state for more than 15s. Please check Ceph cluster health or RGW connection.
message: Cluster Object Store is in unhealthy state. Please check Ceph cluster health or RGW connection.
description: Cluster Object Store is in unhealthy state for more than 15s. Please check Ceph cluster health or RGW connection in namespace:cluster {{ $labels.namespace }}:{{ $labels.managedBy }}.
message: Cluster Object Store is in unhealthy state. Please check Ceph cluster health or RGW connection in namespace:cluster {{ $labels.namespace }}:{{ $labels.managedBy }}.
severity_level: error
storage_type: RGW
expr: |
Expand All @@ -126,8 +126,8 @@ spec:
rules:
- alert: KMSServerConnectionAlert
annotations:
description: Storage Cluster KMS Server is in un-connected state for more than 5s. Please check KMS config.
message: Storage Cluster KMS Server is in un-connected state. Please check KMS config.
description: Storage Cluster KMS Server is in un-connected state for more than 5s. Please check KMS config in namespace:cluster {{ $labels.namespace }}:{{ $labels.managedBy }}.
message: Storage Cluster KMS Server is in un-connected state. Please check KMS config in namespace:cluster {{ $labels.namespace }}:{{ $labels.managedBy }}.
severity_level: error
storage_type: ceph
expr: |
Expand Down
Loading

0 comments on commit ebc45aa

Please sign in to comment.