SSL certificate expiry (< 7 days) warning
{{ $labels.instance }} Certificate is expiring in 7 days
>>>
{chain_no="0"} -
time
() < 86400 * 7
The PromQL query ssl_verified_cert_not_after{chain_no="0"} - time() < 86400 * 7 checks whether the expiration timestamp of the leaf SSL certificate (ssl_verified_cert_not_after) is less than 7 days (7 × 86,400 seconds) from the current time. If a target’s certificate will expire within the next week, the expression returns a non‑empty vector and triggers the "SSL certificate expiry (< 7 days)" alert.
Get Alert✕
Download
Copy to Clipboard