5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 04:41:43 +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 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!

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

View file

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