This repository has been archived by the owner on May 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
blackbox-exporter-values.yaml
55 lines (53 loc) · 1.63 KB
/
blackbox-exporter-values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
config:
modules:
http_2xx:
prober: http
timeout: 30s
http:
valid_http_versions: ["HTTP/1.1", "HTTP/2"]
no_follow_redirects: true
preferred_ip_protocol: "ip4"
serviceMonitor:
enabled: true
defaults:
labels:
release: prometheus
interval: 30s
scrapeTimeout: 30s
targets:
- url: https://test.cablespaghetti.dev
name: test.cablespaghetti.dev
prometheusRule:
enabled: true
additionalLabels:
app: kube-prometheus-stack
release: prometheus
rules:
- alert: UrlDown
annotations:
message: The status code of {{"{{ $labels.target }}"}} is 4xx or 5xx, or some other failure occurred such as a timeout (60 seconds) for the last 5 minutes.
expr: probe_http_status_code >= 400 or probe_http_status_code == 0
for: 2m
labels:
severity: critical
- alert: SSLCertExpiry
annotations:
message: The SSL certificate for {{"{{ $labels.target }}"}} is going to expire in less than 2 weeks.
expr: probe_ssl_earliest_cert_expiry - time() < 1209600
for: 1m
labels:
severity: warning
- alert: SSLCertExpiry
annotations:
message: The SSL certificate for {{"{{ $labels.target }}"}} is going to expire in less than 7 days.
expr: probe_ssl_earliest_cert_expiry - time() < 604800
for: 1m
labels:
severity: critical
- alert: SlowResponseTime
annotations:
message: The response time for {{"{{ $labels.target }}"}} has been greater than 30 seconds for 5 minutes.
expr: probe_duration_seconds > 30
for: 5m
labels:
severity: warning