OP#176 edit start.sh
This commit is contained in:
8
start.sh
8
start.sh
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [[ "${DATABASE_URL}" == "" ]]; then
|
||||
echo 'Missing DATABASE_URL'
|
||||
echo 'example -e DATABASE_URL="user=<db user> password=<db user password> host=<db host> port=<db port> database=<db name>"'
|
||||
@@ -23,7 +25,7 @@ pg_commit_rows=${pg_commit_rows:-20000}
|
||||
pg_threads="${pg_threads:-1}"
|
||||
parser_threads="${parser_threads:-5}"
|
||||
|
||||
echo /postgresql-prometheus-adapter \
|
||||
echo "/usr/local/bin/postgresql-prometheus-adapter \
|
||||
--adapter-send-timeout=${adapter_send_timeout} \
|
||||
--web-listen-address=${web_listen_address} \
|
||||
--web-telemetry-path=${web_telemetry_path} \
|
||||
@@ -33,9 +35,9 @@ echo /postgresql-prometheus-adapter \
|
||||
--pg-commit-secs=${pg_commit_secs} \
|
||||
--pg-commit-rows=${pg_commit_rows} \
|
||||
--pg-threads=${pg_threads} \
|
||||
--parser-threads=${parser_threads}
|
||||
--parser-threads=${parser_threads}"
|
||||
|
||||
/postgresql-prometheus-adapter \
|
||||
/usr/local/bin/postgresql-prometheus-adapter \
|
||||
--adapter-send-timeout=${adapter_send_timeout} \
|
||||
--web-listen-address=${web_listen_address} \
|
||||
--web-telemetry-path=${web_telemetry_path} \
|
||||
|
||||
Reference in New Issue
Block a user