ansible-role-grafana/files/grafana.monit

9 lines
384 B
Text
Raw Normal View History

2022-12-27 10:43:32 +01:00
# {{ 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