DaCrow13 commited on
Commit
d7e0435
·
1 Parent(s): 1ba240e

fix(docker): use relative external URL for Prometheus

Browse files
Files changed (1) hide show
  1. docker/scripts/start_space.sh +2 -5
docker/scripts/start_space.sh CHANGED
@@ -72,11 +72,8 @@ scrape_configs:
72
  EOF
73
 
74
  # Determine Prometheus External URL
75
- if [ -n "$SPACE_ID" ]; then
76
- PROM_EXTERNAL_URL="https://huggingface.co/spaces/$SPACE_ID/prometheus/"
77
- else
78
- PROM_EXTERNAL_URL="/prometheus/"
79
- fi
80
 
81
  # Start Prometheus
82
  # --web.external-url needs to match the public URL for correct link generation
 
72
  EOF
73
 
74
  # Determine Prometheus External URL
75
+ # Always use relative path so it works on both huggingface.co and .hf.space domains
76
+ PROM_EXTERNAL_URL="/prometheus/"
 
 
 
77
 
78
  # Start Prometheus
79
  # --web.external-url needs to match the public URL for correct link generation