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