add aria2 exporter
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Bruder 2019-04-23 21:11:46 +00:00
parent efdb65fe1e
commit e14c963bed
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
3 changed files with 8 additions and 0 deletions

View file

@ -20,6 +20,8 @@ RUN apk add --no-cache \
nginx \ nginx \
su-exec su-exec
COPY --from=sbruder/aria2_exporter /aria2_exporter /aria2_exporter
COPY --from=webui /webui-aria2/docs /srv/www/webui COPY --from=webui /webui-aria2/docs /srv/www/webui
COPY --from=webui /AriaNg/dist /srv/www/webui/ng COPY --from=webui /AriaNg/dist /srv/www/webui/ng

View file

@ -5,6 +5,8 @@ if ! [ -z $NGINX_LISTEN_SOCKET ]; then
fi fi
nginx nginx
ARIA2_URL=http://localhost:6800 /aria2_exporter &
touch /data/torrents touch /data/torrents
chown $UID /data/torrents chown $UID /data/torrents

View file

@ -19,4 +19,8 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
} }
location /metrics {
proxy_pass http://localhost:9578/metrics;
}
} }