Mercurial > code > home > repos > victoriametrics
diff alert_rules.py @ 37:6e27d280b598
watch https cert ages (testing with 45d)
author | drewp@bigasterisk.com |
---|---|
date | Thu, 21 Dec 2023 13:47:23 -0800 |
parents | 2bc188c4117a |
children | 24daba56722c |
line wrap: on
line diff
--- a/alert_rules.py Sun Oct 15 18:34:29 2023 -0700 +++ b/alert_rules.py Thu Dec 21 13:47:23 2023 -0800 @@ -239,6 +239,14 @@ ], }, { + "name": "https_certs", + "interval": "1h", + 'rules': [{ + 'alert': 'old_https_certs', + 'expr': 'min by (source) (x509_cert_enddate - now())/86400 < 45', + }], + }, + { "name": "alerts", "rules": [