mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 08:57:19 +08:00
Add blackbox rules
This commit is contained in:
parent
04ff3a8568
commit
8de107aeee
1 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue