From 99f5ca53b0efd283bc77ead23aacffbcb12f2ab5 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 19 Sep 2020 12:59:58 -0300 Subject: [PATCH] prometheus --- Dockerfile | 2 +- Procfile | 2 +- prometheus.sh | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9711dce6..a57f4162 100644 --- a/Dockerfile +++ b/Dockerfile @@ -111,7 +111,7 @@ USER root RUN install -m 755 /srv/http/sync_assets.sh /usr/local/bin/sync_assets # Instalar la configuraciĆ³n de monit 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 # Mantener estos directorios! diff --git a/Procfile b/Procfile index 082ad0cb..2c951ac0 100644 --- a/Procfile +++ b/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_1d: bundle exec rake blazer:run_checks SCHEDULE="1 day" 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_" diff --git a/prometheus.sh b/prometheus.sh index 98e68700..639e1d24 100755 --- a/prometheus.sh +++ b/prometheus.sh @@ -1,6 +1,4 @@ #!/bin/sh set -e -case $1 in - prometheus) daemonize -c /srv/http -p /tmp/prometheus.pid -l /tmp/prometheus.pid -u app /usr/bin/foreman start prometheus ;; -esac +daemonize -c /srv/http -p /tmp/prometheus.pid -l /tmp/prometheus.pid -u app /usr/bin/foreman start prometheus