DaCrow13 commited on
Commit ·
8fb2104
1
Parent(s): 0718c0e
fix(docker): configure Prometheus external URL for HF Spaces
Browse files70 unmodified lines7172737475767778798081828370 unmodified lines- targets: ['127.0.0.1:9090']EOF# Start Prometheus# --web.external-url needs to match the path in Nginxprometheus \--config.file=/tmp/prometheus.yml \--storage.tsdb.path=/tmp/prometheus_data \--web.listen-address=0.0.0.0:9090 \--web.external-url=/prometheus/ \--web.route-prefix=/prometheus/ \>> /tmp/prometheus.log 2>&1 &70 unmodified lines71727374757677787980818283848586878889909170 unmodified lines- targets: ['127.0.0.1:9090']EOF# Determine Prometheus External URLif [ -n "$SPACE_ID" ]; thenPROM_EXTERNAL_URL="https://huggingface.co/spaces/$SPACE_ID/prometheus/"elsePROM_EXTERNAL_URL="/prometheus/"fi# Start Prometheus# --web.external-url needs to match the public URL for correct link generation# --web.route-prefix needs to match the path Nginx proxies to (/prometheus/)prometheus \--config.file=/tmp/prometheus.yml \--storage.tsdb.path=/tmp/prometheus_data \--web.listen-address=0.0.0.0:9090 \--web.external-url=$PROM_EXTERNAL_URL \--web.route-prefix=/prometheus/ \>> /tmp/prometheus.log 2>&1 &
docker/scripts/start_space.sh+10-2