Files
monlet/agent/config.example.toml
2026-05-28 14:19:27 +04:00

34 lines
599 B
TOML

# Optional. If omitted, the OS hostname is used as agent_id.
# agent_id = "example-host-01"
state_dir = "/var/lib/monlet-agent"
[labels]
env = "prod"
role = "api"
[server]
enabled = true
url = "http://127.0.0.1:8000"
heartbeat_interval = "10s"
batch_interval = "10s"
[metrics]
enabled = true
listen = "127.0.0.1:9465"
[[checks]]
id = "disk_root"
name = "Root disk usage"
command = '''
/usr/local/lib/monlet/check_disk_root.sh
'''
interval = "60s"
timeout = "10s"
[[checks]]
id = "uptime"
name = "Uptime probe"
command = "test $(cut -d. -f1 /proc/uptime) -gt 60"
interval = "60s"
timeout = "5s"