35 lines
674 B
TOML
35 lines
674 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"
|
|
resource_limits = { cpu_time = "5s", memory = "256MiB", open_files = 128 }
|
|
|
|
[[checks]]
|
|
id = "uptime"
|
|
name = "Uptime probe"
|
|
command = "test $(cut -d. -f1 /proc/uptime) -gt 60"
|
|
interval = "60s"
|
|
timeout = "5s"
|