chequeos de blazer
This commit is contained in:
parent
1086a51306
commit
67b232c626
3 changed files with 29 additions and 1 deletions
4
Procfile
4
Procfile
|
@ -1,2 +1,6 @@
|
|||
migrate: bundle exec rake db:prepare db:seed
|
||||
sutty: bundle exec puma -d config.ru
|
||||
blazer_5m: bundle exec rake blazer:run_checks SCHEDULE="5 minutes"
|
||||
blazer_1h: bundle exec rake blazer:run_checks SCHEDULE="1 hour"
|
||||
blazer_1d: bundle exec rake blazer:run_checks SCHEDULE="1 day"
|
||||
blazer: bundle exec rake blazer:send_failing_checks
|
||||
|
|
|
@ -71,7 +71,7 @@ override_csp: true
|
|||
|
||||
# enable forecasting
|
||||
# note: with trend, time series are sent to https://trendapi.org
|
||||
# forecasting: trend
|
||||
# forecasting: prophet
|
||||
|
||||
# enable map
|
||||
# mapbox_access_token: <%= ENV["MAPBOX_ACCESS_TOKEN"] %>
|
||||
|
|
24
monit.conf
24
monit.conf
|
@ -6,3 +6,27 @@ check process sutty with pidfile /srv/http/tmp/puma.pid
|
|||
check program sync_assets
|
||||
with path /usr/local/bin/sync_assets
|
||||
if status = 0 then unmonitor
|
||||
|
||||
check program blazer_5m
|
||||
with path "/bin/sh -c 'cd /srv/http && foreman start blazer_5m'"
|
||||
as uid "app" and gid "www-data"
|
||||
every 5 cycles
|
||||
if status != 0 then alert
|
||||
|
||||
check program blazer_1h
|
||||
with path "/bin/sh -c 'cd /srv/http && foreman start blazer_1h'"
|
||||
as uid "app" and gid "www-data"
|
||||
every 60 cycles
|
||||
if status != 0 then alert
|
||||
|
||||
check program blazer_1d
|
||||
with path "/bin/sh -c 'cd /srv/http && foreman start blazer_1d'"
|
||||
as uid "app" and gid "www-data"
|
||||
every 1440 cycles
|
||||
if status != 0 then alert
|
||||
|
||||
check program blazer
|
||||
with path "/bin/sh -c 'cd /srv/http && foreman start blazer'"
|
||||
as uid "app" and gid "www-data"
|
||||
every 61 cycles
|
||||
if status != 0 then alert
|
||||
|
|
Loading…
Reference in a new issue