31 lines
806 B
Plaintext
31 lines
806 B
Plaintext
# Rails
|
|
check process rails with pidfile /srv/tmp/puma.pid
|
|
start program = "/usr/local/bin/rails start"
|
|
stop program = "/usr/local/bin/rails stop"
|
|
|
|
# Prometheus
|
|
check process prometheus with pidfile /tmp/prometheus.pid
|
|
start program = "/usr/local/bin/rails prometheus"
|
|
stop program = "/usr/local/bin/rails prometheus-stop"
|
|
|
|
# Blazer checks
|
|
check program blazer_5m
|
|
with path "/usr/local/bin/rails blazer 5m"
|
|
every 5 cycles
|
|
if status != 0 then alert
|
|
|
|
check program blazer_1h
|
|
with path "/usr/local/bin/rails blazer 1h"
|
|
every 60 cycles
|
|
if status != 0 then alert
|
|
|
|
check program blazer_1d
|
|
with path "/usr/local/bin/rails blazer 1d"
|
|
every 1440 cycles
|
|
if status != 0 then alert
|
|
|
|
check program blazer
|
|
with path "/usr/local/bin/rails blazer"
|
|
every 61 cycles
|
|
if status != 0 then alert
|