46 lines
841 B
TOML
46 lines
841 B
TOML
agent_id = "agent-01"
|
|
state_dir = "/var/lib/monlet-agent"
|
|
|
|
[labels]
|
|
scenario = "mixed-status"
|
|
role = "showcase"
|
|
|
|
[server]
|
|
enabled = true
|
|
url = "http://server:8000"
|
|
heartbeat_interval = "5s"
|
|
batch_interval = "3s"
|
|
|
|
[metrics]
|
|
enabled = true
|
|
listen = "0.0.0.0:9465"
|
|
|
|
[[checks]]
|
|
id = "ok_check"
|
|
name = "Showcase ok"
|
|
command = "/opt/monlet/checks/exit_0.sh"
|
|
interval = "5s"
|
|
timeout = "3s"
|
|
|
|
[[checks]]
|
|
id = "warning_check"
|
|
name = "Showcase warning"
|
|
command = "/opt/monlet/checks/exit_1.sh"
|
|
interval = "5s"
|
|
timeout = "3s"
|
|
|
|
[[checks]]
|
|
id = "critical_check"
|
|
name = "Showcase critical (permanent webhook fail)"
|
|
command = "/opt/monlet/checks/exit_2.sh"
|
|
interval = "5s"
|
|
timeout = "3s"
|
|
dedupe_key = "agent-01:critical:fail"
|
|
|
|
[[checks]]
|
|
id = "unknown_check"
|
|
name = "Showcase unknown"
|
|
command = "/opt/monlet/checks/exit_3.sh"
|
|
interval = "5s"
|
|
timeout = "3s"
|