OP#176 fix quotes

This commit is contained in:
2025-12-02 16:47:50 +01:00
parent 2a7a6aee3e
commit bff8fd2919
2 changed files with 8 additions and 6 deletions

View File

@@ -14,3 +14,5 @@ However we did a few changes to adjust the following:
* the entire build flow is now based on the Dockerfile, no external make step. This allows using a Jenkins CI/CD pipeline for both build and placing the image in a package registry, so the image can be used in Kubernetes via CI/CD. All manual steps are removed.
* we moved away from CentOS 7 as base to Alpine, which creates a much smaller image footprint while providing the very same functionality.
## Usage

View File

@@ -14,12 +14,12 @@ function shutdown() {
pkill -SIGINT postgresql-prometheus-adapter
}
adapter_send_timeout=${adapter_send_timeout:-'30s'}
web_listen_address="${web_listen_address:-':9201'}"
web_telemetry_path="${web_telemetry_path:-'/metrics'}"
log_level="${log_level:-'info'}"
log_format="${log_format:-'logfmt'}"
pg_partition="${pg_partition:-'hourly'}"
adapter_send_timeout=$(echo "${adapter_send_timeout:-'30s'}" | tr -d "'")
web_listen_address=$(echo "${web_listen_address:-':9201'}" | tr -d "'")
web_telemetry_path=$(echo "${web_telemetry_path:-'/metrics'}" | tr -d "'")
log_level=$(echo "${log_level:-'info'}" | tr -d "'")
log_format=$(echo "${log_format:-'logfmt'}" | tr -d "'")
pg_partition=$(echo "${pg_partition:-'hourly'}" | tr -d "'")
pg_commit_secs=${pg_commit_secs:-30}
pg_commit_rows=${pg_commit_rows:-20000}
pg_threads="${pg_threads:-1}"