mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-25 19:07:08 +08:00
improving blackbox alerts
This commit is contained in:
parent
dfa5446cd5
commit
4f9e88bad4
1 changed files with 11 additions and 7 deletions
|
|
@ -522,7 +522,11 @@ services:
|
||||||
description: Probe failed
|
description: Probe failed
|
||||||
query: probe_success == 0
|
query: probe_success == 0
|
||||||
severity: error
|
severity: error
|
||||||
- name: Status Code
|
- name: Slow probe
|
||||||
|
description: Blackbox probe took more than 1s to complete
|
||||||
|
query: 'avg_over_time(probe_duration_seconds[1m]) > 1'
|
||||||
|
severity: warning
|
||||||
|
- name: HTTP Status Code
|
||||||
description: HTTP status code is not 200-399
|
description: HTTP status code is not 200-399
|
||||||
query: 'probe_http_status_code <= 199 OR probe_http_status_code >= 400'
|
query: 'probe_http_status_code <= 199 OR probe_http_status_code >= 400'
|
||||||
severity: error
|
severity: error
|
||||||
|
|
@ -534,13 +538,13 @@ services:
|
||||||
description: SSL certificate has expired already
|
description: SSL certificate has expired already
|
||||||
query: 'probe_ssl_earliest_cert_expiry - time() <= 0'
|
query: 'probe_ssl_earliest_cert_expiry - time() <= 0'
|
||||||
severity: error
|
severity: error
|
||||||
- name: Blackbox slow requests
|
- name: HTTP slow requests
|
||||||
description: Blackbox request took more than 2s
|
description: HTTP request took more than 1s
|
||||||
query: 'probe_http_duration_seconds > 2'
|
query: 'avg_over_time(probe_http_duration_seconds[1m]) > 1'
|
||||||
severity: warning
|
severity: warning
|
||||||
- name: Blackbox slow ping
|
- name: Slow ping
|
||||||
description: Blackbox ping took more than 2s
|
description: Blackbox ping took more than 1s
|
||||||
query: 'probe_icmp_duration_seconds > 2'
|
query: 'avg_over_time(probe_icmp_duration_seconds[1m]) > 1'
|
||||||
severity: warning
|
severity: warning
|
||||||
|
|
||||||
- name: Windows Server
|
- name: Windows Server
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue