9 lines
384 B
Text
9 lines
384 B
Text
|
# {{ ansible_managed }}
|
||
|
|
||
|
check process grafana with pidfile /var/run/grafana/grafana-server.pid
|
||
|
group monitor
|
||
|
start program = "/bin/systemctl start grafana-server.service"
|
||
|
stop program = "/bin/systemctl stop grafana-server.service"
|
||
|
if failed host localhost port 3000 with timeout 15 seconds for 3 times within 4 cycles then restart
|
||
|
if 5 restarts with 5 cycles then timeout
|