metrics.sr.ht/ssl_rules.yml

12 lines
280 B
YAML

# vim: tw=2 sw=2 :
groups:
- name: ssl
rules:
- alert: SSL expiration
expr: (certificate_expiration - time()) / 60 / 60 / 24 < 7
for: 2m
labels:
severity: important
annotations:
summary: "{{ $labels.instance }} SSL certificate expires in < 1 week"