From 8de107aeeeaa8bae9ea0639b39f6c59e709c195d Mon Sep 17 00:00:00 2001 From: mxssl Date: Sat, 26 Jan 2019 20:18:07 +0300 Subject: [PATCH] Add blackbox rules --- _data/rules.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/_data/rules.yml b/_data/rules.yml index a655c8b..eb0c86b 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -292,3 +292,15 @@ services: - name: prometheus/blackbox_exporter doc_url: https://github.com/prometheus/blackbox_exporter rules: + - name: Status Code + description: HTTP status code is not 200-299 + query: 'probe_http_status_code <= 199 AND probe_http_status_code >= 300' + severity: error + - name: SSL certificate will expire soon + description: SSL certificate expires in 30 days + query: 'probe_ssl_earliest_cert_expiry - time() < 86400 * 30' + severity: warning + - name: SSL certificate has expired + description: SSL certificate has expired already + query: 'probe_ssl_earliest_cert_expiry - time() <= 0' + severity: error