/
sample.toml
41 lines (32 loc) · 1.12 KB
/
sample.toml
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
# Sample configuration for goma monitors.
[[monitor]]
name = "monitor1" # any descriptive string.
interval = 10 # seconds between probes.
timeout = 1 # seconds for timeout of a probe.
min = 0.0 # minimum of the normal probe output.
max = 0.3 # maximum of the normal probe output.
[monitor.probe]
type = "exec" # probe type. required.
command = "/some/probe/cmd" # probe options.
[monitor.filter] # filter is optional.
type = "average" # filter type.
[[monitor.actions]] # list of actions.
type = "exec" # action type.
command = "/action/cmd" # action options.
args = ["arg1", "argw2"] # ditto.
env = ["HOGE=123", "FUGA=456"] # ditto.
[[monitor]]
name = "monitor2"
interval = 60
timeout = 5
[monitor.probe]
type = "http"
url = "https://www.kintone.com/"
[[monitor.actions]]
type = "mail"
from = "no-reply@example.org"
fail_to = ["admin@example.org"]
[[monitor.actions]]
type = "http"
url_fail = "http://example.org/fail"
method = "post"