Harden production workflows and agent admission

This commit is contained in:
Stanislav Rossovskii
2026-05-28 14:19:27 +04:00
parent a2e88b4e76
commit 37b1a1d6d6
109 changed files with 4927 additions and 894 deletions

View File

@@ -1,4 +1,5 @@
hostname = "example-host-01"
# Optional. If omitted, the OS hostname is used as agent_id.
# agent_id = "example-host-01"
state_dir = "/var/lib/monlet-agent"
[labels]
@@ -8,8 +9,7 @@ role = "api"
[server]
enabled = true
url = "http://127.0.0.1:8000"
token = "replace-me"
heartbeat_interval = "30s"
heartbeat_interval = "10s"
batch_interval = "10s"
[metrics]
@@ -24,3 +24,10 @@ command = '''
'''
interval = "60s"
timeout = "10s"
[[checks]]
id = "uptime"
name = "Uptime probe"
command = "test $(cut -d. -f1 /proc/uptime) -gt 60"
interval = "60s"
timeout = "5s"