Verified Commit 39a34e7d authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Show the date when the certificate expires

The value of the expr is not really useful as of now, but if we show the
value of probe_ssl_earliest_cert_expiry it should show the date when the
cert expires.
parent 9a2aa884
Pipeline #5440 failed with stage
in 46 seconds
......@@ -420,13 +420,13 @@ groups:
summary: "Blackbox probe HTTP failure (instance {{ $labels.instance }})"
description: "HTTP status code is not 200-399\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
- alert: BlackboxSslCertificateWillExpireSoon
expr: probe_ssl_earliest_cert_expiry - time() < 86400 * 25
expr: probe_ssl_earliest_cert_expiry and probe_ssl_earliest_cert_expiry - time() < 86400 * 25
for: 5m
labels:
severity: critical
annotations:
summary: "Blackbox SSL certificate will expire soon (instance {{ $labels.instance }})"
description: "SSL certificate expires in 25 days\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
description: "SSL certificate expires in 25 days\n VALUE = {{ $value | humanizeTimestamp}}\n LABELS: {{ $labels }}"
- name: rebuilderd
interval: 15m
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment