Repository navigation
Expand file tree
/
Copy pathexample-config.toml
More file actions
81 lines (70 loc) · 1.78 KB
/
Copy pathexample-config.toml
File metadata and controls
81 lines (70 loc) · 1.78 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[global]
refresh_interval = 5
timeout = 10
follow_redirects = true
accept_redirects = false
receive_alert = false
count = 0
skip = ["GitHub-API"]
# body_size_limit = 1048576 # Cap response body reads at 1 MiB (default); 0 = no limit
# regions = ["us-east-1", "eu-central-1", "ap-southeast-1"]
[[targets]]
url = "https://www.github.com"
name = "GitHub"
refresh_interval = 5
assert_text = "GitHub"
[[targets]]
url = "https://stackoverflow.com"
name = "StackOverflow"
refresh_interval = 2
assert_text = "Stack Overflow"
[[targets]]
url = "https://api.github.com/repos/octocat/Hello-World"
name = "GitHub-API"
timeout = 15
method = "GET"
headers = ["User-Agent: updo-monitor/1.0", "Accept: application/vnd.github.v3+json"]
[[targets]]
url = "https://httpbin.org/status/200"
name = "HTTPBin-OK"
refresh_interval = 30
[[targets]]
url = "https://httpbin.org/delay/2"
name = "HTTPBin-Slow"
refresh_interval = 5
timeout = 15
[[targets]]
url = "https://jsonplaceholder.typicode.com/posts/1"
name = "JSONPlaceholder"
refresh_interval = 20
headers = ["Accept: application/json"]
assert_text = "userId"
[[targets]]
url = "https://www.cloudflare.com"
name = "Cloudflare"
refresh_interval = 5
follow_redirects = false
receive_alert = false
[[targets]]
url = "https://httpbin.org/post"
name = "POST-Test"
refresh_interval = 90
method = "POST"
headers = ["Content-Type: application/json"]
body = '{"test": "data", "timestamp": "2024-01-01"}'
[[targets]]
url = "https://httpbin.org/redirect/1"
name = "No-Redirects"
refresh_interval = 45
follow_redirects = false
[[targets]]
url = "https://news.ycombinator.com"
name = "Hacker News"
refresh_interval = 15
assert_text = "Hacker News"
[[targets]]
url = "http://192.168.1.1"
name = "Router-Redirect-Check"
refresh_interval = 30
follow_redirects = false
accept_redirects = true