33 lines
599 B
TOML
33 lines
599 B
TOML
agent_id = "agent-04"
|
|
state_dir = "/var/lib/monlet-agent"
|
|
|
|
[labels]
|
|
scenario = "timeout"
|
|
role = "showcase"
|
|
|
|
[server]
|
|
enabled = true
|
|
url = "http://server:8000"
|
|
heartbeat_interval = "5s"
|
|
batch_interval = "3s"
|
|
|
|
[metrics]
|
|
enabled = false
|
|
listen = "127.0.0.1:9465"
|
|
|
|
[[checks]]
|
|
id = "ok_probe"
|
|
name = "Healthy probe"
|
|
command = "/opt/monlet/checks/exit_0.sh"
|
|
interval = "10s"
|
|
timeout = "3s"
|
|
dedupe_key = "agent-04:ok_probe"
|
|
|
|
[[checks]]
|
|
id = "slow_probe"
|
|
name = "Probe that exceeds the timeout"
|
|
command = "/opt/monlet/checks/sleep_long.sh"
|
|
interval = "10s"
|
|
timeout = "2s"
|
|
dedupe_key = "agent-04:slow_probe"
|