Skip to content

Commit

Permalink
Merge pull request #7445 from sapcc/rajivmucheli-patch-cert-alerts
Browse files Browse the repository at this point in the history
[Barbican] update loop time for secret expiry alerts
  • Loading branch information
Kuckkuck authored Nov 26, 2024
2 parents b420183 + a05dcf2 commit 62d43e1
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 62d43e1

Please sign in to comment.