aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj3s <j3s@c3f.net>2020-09-14 18:17:54 -0500
committerj3s <j3s@c3f.net>2020-09-14 18:17:54 -0500
commit69c4da677ae357833647f192e4216dc4c3674c4d (patch)
tree2e379839f69558fc4e9ee28162017170c496220d
parentb336b6b7a53aa115cba0b3362d21324a0f11442d (diff)
downloadops-handbook-69c4da677ae357833647f192e4216dc4c3674c4d.tar.gz
ops-handbook-69c4da677ae357833647f192e4216dc4c3674c4d.tar.bz2
Add new ssl expiry rule
-rw-r--r--rules/alerts.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/rules/alerts.yml b/rules/alerts.yml
index 74737a5..edc98c7 100644
--- a/rules/alerts.yml
+++ b/rules/alerts.yml
@@ -108,3 +108,13 @@ groups:
labels:
severity: info
annotations:
+ description: Prometheus failed to reload. Fix the config!
+- name: ssl_expiry.rules
+ rules:
+ - alert: SSLCertExpiringSoon
+ expr: probe_ssl_earliest_cert_expiry - time() < 86400 * 7 # 7 days
+ for: 10m
+ labels:
+ severity: info
+ annotations:
+ description: The {{ $labels.instance }} certificate expires soon. Renew it pls!