hydra-notify: Enable the prometheus exporter in development environments by default

This commit is contained in:
Your Name 2021-08-18 15:26:04 -04:00
parent 6d7ee27d25
commit f4ad80527a

View file

@ -19,6 +19,13 @@ if [ ! -f ./.hydra-data/hydra.conf ]; then
cat << EOF > .hydra-data/hydra.conf
# test-time instances likely don't want to bootstrap nixpkgs from scratch
use-substitutes = true
<hydra_notify>
<prometheus>
listen_address = 127.0.0.1
port = 64445
</prometheus>
</hydra_notify>
EOF
fi
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-dev-server --port 63333