Skip to content

Commit

Permalink
[Barbican] update loop time for secret expiry alerts
Browse files Browse the repository at this point in the history
reduce spam on slack channel
  • Loading branch information
rajivmucheli authored Nov 25, 2024
1 parent 128317e commit a05dcf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openstack/barbican/alerts/openstack-barbican.alerts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ groups:
rules:
- alert: OpenstackBarbicanUserCertificateExpiresIn30days
expr: 'label_replace(label_replace(openstack_user_last_active_at{email_id!~"No Email-ID"}, "email", "$1", "email_id","(?:\\[\")(.*)(?:\"\\])"),"full_name","$1","user_name","(?:\\[\")(.*)(?:\"\\])") +on (user_id) group_right (email, full_name) (0 <= round((label_replace(openstack_barbican_certificate_expiration_date, "user_id", "$1", "creator_id","(.+)") - time()) / 86400 <= 30))'
for: 12h
for: 2d
labels:
severity: info
tier: os
Expand All @@ -18,7 +18,7 @@ groups:

- alert: OpenstackBarbicanUserOpaqueCertificateExpiresIn30days
expr: 'label_replace(label_replace(openstack_user_last_active_at{email_id!~"No Email-ID"}, "email", "$1", "email_id","(?:\\[\")(.*)(?:\"\\])"),"full_name","$1","user_name","(?:\\[\")(.*)(?:\"\\])") +on (user_id) group_right (email, full_name) (0 <= round((label_replace(openstack_barbican_opaque_certificate_expiration_date, "user_id", "$1", "creator_id","(.+)") - time()) / 86400 <= 30))'
for: 12h
for: 2d
labels:
severity: info
tier: os
Expand All @@ -33,7 +33,7 @@ groups:

- alert: OpenstackBarbicanUnresolvedSentryIssues
expr: sentry_unresolved_issues_count{project="barbican"} > 0
for: 12h
for: 1d
labels:
context: sentry-metrics
service: barbican
Expand Down

0 comments on commit a05dcf2

Please sign in to comment.