File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ services:
153153 user : " :"
154154 networks : [dvnode]
155155 environment :
156- PROM_REMOTE_WRITE_TOKEN : ${PROM_REMOTE_WRITE_TOKEN:-"obol-monitoring-token-needed" }
156+ PROM_REMOTE_WRITE_TOKEN : ${PROM_REMOTE_WRITE_TOKEN}
157157 SERVICE_OWNER : ${SERVICE_OWNER:-"obol-cdvn"}
158158 volumes :
159159 - ./prometheus:/etc/prometheus
Original file line number Diff line number Diff line change 77
88if [ -z " $PROM_REMOTE_WRITE_TOKEN " ]
99then
10- echo " \$ PROM_REMOTE_WRITE_TOKEN variable is empty"
10+ echo " \$ PROM_REMOTE_WRITE_TOKEN variable is empty" >&2
11+ exit 1
1112fi
1213
13- # eval is used instead of envsubst, as prometheus user doesn't have permissions to install envsubst
14- eval " echo \" $( cat /etc/prometheus/prometheus.yml.example) \" " > /etc/prometheus/prometheus.yml
14+
15+ sed " s|\$ PROM_REMOTE_WRITE_TOKEN|${PROM_REMOTE_WRITE_TOKEN} |g" \
16+ /etc/prometheus/prometheus.yml.example > /etc/prometheus/prometheus.yml
1517
1618/bin/prometheus \
1719 --config.file=/etc/prometheus/prometheus.yml
You can’t perform that action at this time.
0 commit comments