Manage kuma monitoring for all hosts
This commit is contained in:
7
coreos-config/plays/templates/heartbeat.service.j2
Normal file
7
coreos-config/plays/templates/heartbeat.service.j2
Normal file
@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Heartbeat
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/curl -fsS -m 10 --retry 5 {{ monitor_url }}
|
||||
StandardOutput=null
|
9
coreos-config/plays/templates/heartbeat.timer.j2
Normal file
9
coreos-config/plays/templates/heartbeat.timer.j2
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Send heartbeat every 5 minutes
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* *:00/5:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Reference in New Issue
Block a user