EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit b252f0c0 authored by Karl Grube's avatar Karl Grube
Browse files

certificate tests :)

parent 74330f16
No related branches found
No related tags found
No related merge requests found
......@@ -180,20 +180,28 @@ groups:
summary: "Service failed (instance {{ $labels.instance }})"
description: "Service Failed. Check host to ensure functioning.\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
- alert: CertificateExpirationWarning
expr: ((quantile by (serial_no,cn,instance) (0.5, ssl_cert_not_after)) and ((quantile by (serial_no,cn,instance) (0.5, ((ssl_cert_not_after - time()) / (ssl_cert_not_after - ssl_cert_not_before))) ) < 0.33)) - time()
for: 5m
expr: ssl_cert_not_after - time() AND (((ssl_cert_not_after - time()) / (ssl_cert_not_after - ssl_cert_not_before) ) < 0.33) - time()
for: 2m
labels:
severity: warning
annotations:
summary: "Certificate (instance {{ $labels.instance }})"
description: "Certificate More than 66% expired.\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
description: "Certificate more than 66% expired.\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
- alert: CertificateExpirationCritical
expr: ((quantile by (serial_no,cn,instance) (0.5, ssl_cert_not_after)) and ((quantile by (serial_no,cn,instance) (0.5, ((ssl_cert_not_after - time()) / (ssl_cert_not_after - ssl_cert_not_before))) ) < 0.2)) - time()
for: 5m
expr: ssl_cert_not_after - time() AND (((ssl_cert_not_after - time()) / (ssl_cert_not_after - ssl_cert_not_before) ) < 0.2) - time()
for: 2m
labels:
severity: critical
annotations:
summary: "Certificate (instance {{ $labels.instance }})"
description: "Certificate More than 80% expired!\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
description: "Certificate more than 80% expired!\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
- alert: CertificateTestFailed
expr: ssl_probe_success < 1
for: 15m
labels:
severity: critical
annotations:
summary: "Certificate Test failed (instance {{ $labels.instance }})"
description: "Certificate Probe Failed!\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
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