forked from cloudprober/cloudprober
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudprober.jsonnet
63 lines (59 loc) · 1.02 KB
/
cloudprober.jsonnet
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
56
57
58
59
60
61
62
63
local base_probe = {
interval: '30s',
timeout: '10s',
};
local kube_dns_probe = base_probe {
name: 'kube_dns_kubernetes_default',
type: 'DNS',
targets: {
k8s: {
namespace: 'kube-system',
services: 'kube-dns',
},
},
dnsProbe: {
resolvedDomain: 'kubernetes.default.svc.cluster.local',
queryType: 'A',
},
};
local vendor_tcp_probe = base_probe {
name: 'vendor_tcp',
type: 'TCP',
targets: {
hostNames: '1.2.3.4:8345',
},
tcpProbe: {},
};
local cloudprober_org_http_probe = base_probe {
name: 'cloudprober_org_http',
type: 'HTTP',
targets: {
hostNames: 'cloudprober.org',
},
validator: [
{
name: 'status_code_200',
httpValidator: {
successStatusCodes: '200',
},
},
],
httpProbe: {
protocol: 'HTTPS',
},
};
{
probe: [
kube_dns_probe,
vendor_tcp_probe,
cloudprober_org_http_probe,
],
surfacer: [
{
type: 'PROMETHEUS',
prometheusSurfacer: {
metricsPrefix: 'cloudprober_',
},
},
],
}