dist-tests-prometheus/docker-entrypoint.sh
2023-07-20 16:10:30 +03:00

12 lines
309 B
Bash

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