add certificate alert

master 0.2.1
parent 28a3724947
commit f9e36654b9
  1. 8
      rules/http_healthcheck.yaml

@ -20,3 +20,11 @@ groups:
annotations:
summary: Website connectivity problem
description: The probe has been unable to connect to {{ $labels.instance }} for the past 5m.
- alert: CertificateExpiration
expr: ((probe_ssl_earliest_cert_expiry{instance=~"https://.*"} - time()) / 86400) < 7
labels:
severity: warning
annotations:
summary: Certificate will expire soon
description: The certicate at {{ $labels.instance }} will expire in {{ $value }} days.
Loading…
Cancel
Save