alerts: Add alerts for HTTPS certificates
These alerts will generate notifications when websites' HTTPS certificates are not properly renewed automatically and become in danger of expiring.
This commit is contained in:
@@ -66,3 +66,26 @@ vmalert_rules:
|
||||
something happens to the active disk, such as hardware failure, power
|
||||
surge, fire, or accidental `rm -rf`, the offline disk is only out of
|
||||
date by a few weeks.
|
||||
|
||||
- name: certificates
|
||||
rules:
|
||||
- alert: certificate will expire soon
|
||||
expr:
|
||||
probe_ssl_last_chain_expiry_timestamp_seconds - time() < 29 * 86400
|
||||
annotations:
|
||||
summary: A certificate will expire in less than 29 days
|
||||
description: >-
|
||||
Generally, certificates are renewed automatically, approximately 30
|
||||
days before their expiration (NotAfter) date. There may be a problem
|
||||
with the certificate renewal process that prevented this certificate
|
||||
from being renewed.
|
||||
- alert: certificate will expire very soon
|
||||
expr:
|
||||
probe_ssl_last_chain_expiry_timestamp_seconds - time() < 14 * 86400
|
||||
annotations:
|
||||
summary: A certificate will expire in less than 14 days
|
||||
description: >-
|
||||
Generally, certificates are renewed automatically, approximately 30
|
||||
days before their expiration (NotAfter) date. There is most likely a
|
||||
problem with the certificate renewal process that prevented this
|
||||
certificate from being renewed.
|
||||
|
||||
Reference in New Issue
Block a user