From f013444bd40730c9bcd69db6631cdc2d5140cffa Mon Sep 17 00:00:00 2001 From: 12ww1160 Date: Tue, 2 Dec 2025 16:23:42 +0100 Subject: [PATCH] OP#176 edit start.sh --- README.md | 4 ++-- start.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2203d77..0fd3b2e 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ ## Purpose -This image is entirely based on the [PostgreSQL Prometheus Adapter](https://github.com/CrunchyData/postgresql-prometheus-adapter) from [Chrunchydata](https://3for.me/w5wl2). +This image is entirely based on the [PostgreSQL Prometheus Adapter](https://github.com/CrunchyData/postgresql-prometheus-adapter) from [Chrunchydata](https://3for.me/w5wl2). From their website: > PostgreSQL Prometheus Adapter is a remote storage adapter designed to utilize PostgreSQL 12 native partitioning enhancements to efficiently store Prometheus time series data in a PostgreSQL database. -The PostgreSQL Prometheus Adapter design is based on partitioning and threads. Incoming data is processed by one or more threads and one or more writer threads will store data in PostgreSQL daily or hourly partitions. Partitions will be auto-created by the adapter based on the timestamp of incoming data. +> The PostgreSQL Prometheus Adapter design is based on partitioning and threads. Incoming data is processed by one or more threads and one or more writer threads will store data in PostgreSQL daily or hourly partitions. Partitions will be auto-created by the adapter based on the timestamp of incoming data. However we did a few changes to adjust the following: diff --git a/start.sh b/start.sh index d8c82c5..1d9d672 100755 --- a/start.sh +++ b/start.sh @@ -23,7 +23,7 @@ pg_commit_rows=${pg_commit_rows:-20000} pg_threads="${pg_threads:-1}" parser_threads="${parser_threads:-5}" -echo "/usr/local/bin/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,7 +33,7 @@ echo "/usr/local/bin/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} /usr/local/bin/postgresql-prometheus-adapter \ --adapter-send-timeout=${adapter_send_timeout} \