Skip to content

Commit

Permalink
fix(base-cluster/cert-manager): debounce certificate-expiration alert
Browse files Browse the repository at this point in the history
otherwise new certs practically always trigger this alert

This still triggers if they fail to get issues after 5 minutes
  • Loading branch information
cwrau committed Dec 6, 2023
1 parent 8c58a89 commit 67f0280
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
summary: Certificate is expiring soon.
expr: |-
certmanager_certificate_expiration_timestamp_seconds and (certmanager_certificate_expiration_timestamp_seconds - time() <= (60 * 60 * 24 * 14))
for: 1s
for: 15m
labels:
severity: warning
- alert: CertificateExpiringSoon
Expand All @@ -31,7 +31,7 @@ spec:
summary: Certificate is expiring soon.
expr: |-
certmanager_certificate_expiration_timestamp_seconds and (certmanager_certificate_expiration_timestamp_seconds - time() <= (60 * 60 * 24 * 7))
for: 1s
for: 15m
labels:
severity: critical
{{- end }}

0 comments on commit 67f0280

Please sign in to comment.