mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-25 02:46:59 +08:00
Publish
This commit is contained in:
parent
8f48bbfb25
commit
ae1d84c788
1 changed files with 5 additions and 5 deletions
10
dist/rules/blackbox/blackbox-exporter.yml
vendored
10
dist/rules/blackbox/blackbox-exporter.yml
vendored
|
|
@ -41,25 +41,25 @@ groups:
|
||||||
description: "HTTP status code is not 200-399\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
description: "HTTP status code is not 200-399\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||||
|
|
||||||
- alert: BlackboxSslCertificateWillExpireSoon
|
- alert: BlackboxSslCertificateWillExpireSoon
|
||||||
expr: 'probe_ssl_earliest_cert_expiry - time() < 86400 * 30'
|
expr: '3 <= round((last_over_time(probe_ssl_earliest_cert_expiry[10m]) - time()) / 86400, 0.1) < 20'
|
||||||
for: 0m
|
for: 0m
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
summary: Blackbox SSL certificate will expire soon (instance {{ $labels.instance }})
|
summary: Blackbox SSL certificate will expire soon (instance {{ $labels.instance }})
|
||||||
description: "SSL certificate expires in 30 days\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
description: "SSL certificate expires in less than 20 days\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||||
|
|
||||||
- alert: BlackboxSslCertificateWillExpireSoon
|
- alert: BlackboxSslCertificateWillExpireSoon
|
||||||
expr: 'probe_ssl_earliest_cert_expiry - time() < 86400 * 3'
|
expr: '0 <= round((last_over_time(probe_ssl_earliest_cert_expiry[10m]) - time()) / 86400, 0.1) < 3'
|
||||||
for: 0m
|
for: 0m
|
||||||
labels:
|
labels:
|
||||||
severity: critical
|
severity: critical
|
||||||
annotations:
|
annotations:
|
||||||
summary: Blackbox SSL certificate will expire soon (instance {{ $labels.instance }})
|
summary: Blackbox SSL certificate will expire soon (instance {{ $labels.instance }})
|
||||||
description: "SSL certificate expires in 3 days\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
description: "SSL certificate expires in less than 3 days\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||||
|
|
||||||
- alert: BlackboxSslCertificateExpired
|
- alert: BlackboxSslCertificateExpired
|
||||||
expr: 'probe_ssl_earliest_cert_expiry - time() <= 0'
|
expr: 'round((last_over_time(probe_ssl_earliest_cert_expiry[10m]) - time()) / 86400, 0.1) < 0'
|
||||||
for: 0m
|
for: 0m
|
||||||
labels:
|
labels:
|
||||||
severity: critical
|
severity: critical
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue