mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 04:51:43 +00:00
prometheus
This commit is contained in:
parent
d489ef0bf2
commit
99f5ca53b0
3 changed files with 3 additions and 5 deletions
|
@ -111,7 +111,7 @@ USER root
|
||||||
RUN install -m 755 /srv/http/sync_assets.sh /usr/local/bin/sync_assets
|
RUN install -m 755 /srv/http/sync_assets.sh /usr/local/bin/sync_assets
|
||||||
# Instalar la configuración de monit
|
# Instalar la configuración de monit
|
||||||
RUN install -m 640 -o root -g root /srv/http/monit.conf /etc/monit.d/sutty.conf
|
RUN install -m 640 -o root -g root /srv/http/monit.conf /etc/monit.d/sutty.conf
|
||||||
RUN apk add --no-cache daemonize
|
RUN apk add --no-cache daemonize ruby-webrick
|
||||||
RUN install -m 755 /srv/http/prometheus.sh /usr/local/bin/prometheus
|
RUN install -m 755 /srv/http/prometheus.sh /usr/local/bin/prometheus
|
||||||
|
|
||||||
# Mantener estos directorios!
|
# Mantener estos directorios!
|
||||||
|
|
2
Procfile
2
Procfile
|
@ -4,4 +4,4 @@ blazer_5m: bundle exec rake blazer:run_checks SCHEDULE="5 minutes"
|
||||||
blazer_1h: bundle exec rake blazer:run_checks SCHEDULE="1 hour"
|
blazer_1h: bundle exec rake blazer:run_checks SCHEDULE="1 hour"
|
||||||
blazer_1d: bundle exec rake blazer:run_checks SCHEDULE="1 day"
|
blazer_1d: bundle exec rake blazer:run_checks SCHEDULE="1 day"
|
||||||
blazer: bundle exec rake blazer:send_failing_checks
|
blazer: bundle exec rake blazer:send_failing_checks
|
||||||
prometheus: bundle exec prometheus_exporter -b 0.0.0.0 --prefix "sutty_" -d
|
prometheus: bundle exec prometheus_exporter -b 0.0.0.0 --prefix "sutty_"
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
case $1 in
|
daemonize -c /srv/http -p /tmp/prometheus.pid -l /tmp/prometheus.pid -u app /usr/bin/foreman start prometheus
|
||||||
prometheus) daemonize -c /srv/http -p /tmp/prometheus.pid -l /tmp/prometheus.pid -u app /usr/bin/foreman start prometheus ;;
|
|
||||||
esac
|
|
||||||
|
|
Loading…
Reference in a new issue