mirror of
https://github.com/lancachenet/monolithic
synced 2024-11-10 06:24:18 +00:00
Merge pull request #181 from HTX-LAN/master
Expose metrics from NGINX and Bind to Prometheus
This commit is contained in:
commit
4720121d60
2 changed files with 11 additions and 1 deletions
|
@ -37,6 +37,7 @@ RUN rm /etc/nginx/sites-enabled/* /etc/nginx/stream-enabled/* ;\
|
|||
mkdir -p /etc/nginx/sites-enabled ;\
|
||||
ln -s /etc/nginx/sites-available/10_cache.conf /etc/nginx/sites-enabled/10_generic.conf; \
|
||||
ln -s /etc/nginx/sites-available/20_upstream.conf /etc/nginx/sites-enabled/20_upstream.conf; \
|
||||
ln -s /etc/nginx/sites-available/30_metrics.conf /etc/nginx/sites-enabled/30_metrics.conf; \
|
||||
ln -s /etc/nginx/stream-available/10_sni.conf /etc/nginx/stream-enabled/10_sni.conf; \
|
||||
mkdir -m 755 -p /data/cachedomains ;\
|
||||
mkdir -m 755 -p /tmp/nginx
|
||||
|
@ -45,5 +46,5 @@ RUN git clone --depth=1 --no-single-branch https://github.com/uklans/cache-domai
|
|||
|
||||
VOLUME ["/data/logs", "/data/cache", "/data/cachedomains", "/var/www"]
|
||||
|
||||
EXPOSE 80 443
|
||||
EXPOSE 80 443 8080
|
||||
WORKDIR /scripts
|
||||
|
|
9
overlay/etc/nginx/sites-available/30_metrics.conf
Normal file
9
overlay/etc/nginx/sites-available/30_metrics.conf
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Metrics endpoint
|
||||
|
||||
server {
|
||||
listen 8080 reuseport;
|
||||
|
||||
location = /nginx_status {
|
||||
stub_status;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue