#!/command/with-contenv bash #shellcheck shell=bash disable=SC1091 source /scripts/common if ! chk_enabled "$PROMETHEUS_ENABLE"; then exit 0 fi # serve port 9274 always replying with stats.prom regardless of requested path cat > /etc/nginx/sites-enabled/prometheus_9274 <