Skip to content
Snippets Groups Projects
Verified Commit 39a34e7d authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment