mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-21 13:20:11 +00:00
move the prometheus port to docker-tar1090
this is the logical place as telegraf stuff is defined there as well
This commit is contained in:
parent
c76fd5a234
commit
6098f235fb
1 changed files with 0 additions and 25 deletions
|
@ -1,25 +0,0 @@
|
||||||
#!/command/with-contenv bash
|
|
||||||
#shellcheck shell=bash disable=SC1091
|
|
||||||
|
|
||||||
source /scripts/common
|
|
||||||
|
|
||||||
if ! chk_enabled "$PROMETHEUS_ENABLE"; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# serve port 9274 always replying with stats.prom regardless of requested path
|
|
||||||
|
|
||||||
cat > /etc/nginx/sites-enabled/prometheus_9274 <<EOF
|
|
||||||
server {
|
|
||||||
listen 9274 default_server;
|
|
||||||
root /var/www/html;
|
|
||||||
server_name _;
|
|
||||||
location /metrics {
|
|
||||||
alias /run/readsb/stats.prom;
|
|
||||||
}
|
|
||||||
location / {
|
|
||||||
alias /run/readsb/stats.prom;
|
|
||||||
rewrite (.*) /metrics last;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
Loading…
Reference in a new issue