dist-tests-prometheus/docker-entrypoint.sh

12 lines
309 B
Bash
Raw Normal View History

2023-07-20 13:10:30 +00:00
echo "Decoding config..."
echo $PROM_CONFIG > encoded.b64
base64 -d encoded.b64 > /etc/prometheus/prometheus.yml
cat /etc/prometheus/prometheus.yml
echo "Starting prometheus..."
/bin/prometheus --web.listen-address="0.0.0.0:$PROM_PORT" --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml