Files
monlet/agent/config.example.toml
Stanislav Rossovskii d6f9335398
Some checks failed
ci / openapi (push) Failing after 7s
ci / agent (push) Failing after 5s
ci / server (push) Failing after 6s
ci / stack-smoke (push) Has been skipped
ci / web (push) Failing after 5s
Add cron schedules and sync docs
2026-06-23 19:18:01 +04:00

43 lines
937 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"
# Cron-style schedules are also supported. Use exactly one of interval or cron.
# [[checks]]
# id = "daily_backup"
# name = "Daily backup freshness"
# command = "/usr/local/lib/monlet/check_backup_freshness.sh"
# cron = "CRON_TZ=UTC 15 6 * * *"
# timeout = "2m"