forked from cloudprober/cloudprober
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudprober_test.cfg
54 lines (49 loc) · 970 Bytes
/
cloudprober_test.cfg
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
{{with $shards := mkSlice "00" "01"}}
{{range $_, $shard := $shards}}
probe {
type: PING
name: "vm-to-google-{{$shard}}"
targets {
host_names: "8.8.8.8,8.8.4.4,www.google.com"
}
ping_probe {
use_datagram_socket: true
}
}
{{end}}
{{end}}
{{ $shard := "ig-us-east1-a-02-afgx" | extractSubstring "[^-]+-[^-]+-[^-]+-[^-]+-([^-]+)-.*" 1 }}
{{ $targets := printf "^ig.*-([^-]+-[^-]+-[^-]+)-%s-[^-]+$" $shard }}
probe {
type: PING
name: "vm-to-vm-{{$shard}}"
targets {
gce_targets {
project: "google.com:bbmc-testing-prod"
instances {}
}
regex: "{{$targets}}"
}
ping_probe {}
}
probe {
type: HTTP
name: "vm-to-google-http-{{$shard}}"
targets {
host_names: "www.google.com,{{.hostname}}"
}
http_probe {
protocol: HTTP
relative_url: "/healthz"
}
}
probe {
type: DNS
name: "vm-to-public-dns"
targets {
host_names: "8.8.8.8"
}
dns_probe {
resolved_domain: "www.google.com."
}
}