blob: ad0e9d51e73a713eb65c40010f9d2013eadf335e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
groups:
- name: certificates
interval: 1d
rules:
- alert: cert-manager/certificate-expiring-soon
expr: (certmanager_certificate_expiration_timestamp_seconds - time()) / 60 / 60 / 24 < 7
for: 0m
labels:
# This isn't critical, but if we have reached this point, renewal probably needs manual intervention.
severity: page
annotations:
summary: "Certificate is expiring in < 7 days"
description: "The certificate named {{ $labels.name }} is due for expiry in {{ $value | humanize }} days."
|