5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-21 21:36:22 +00:00

prometheus

This commit is contained in:
f 2020-09-19 12:59:58 -03:00
parent d489ef0bf2
commit 99f5ca53b0
3 changed files with 3 additions and 5 deletions

View file

@ -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!

View file

@ -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_"

View file

@ -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