Harden production workflows and agent admission
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user