OP#176 edit start.sh

This commit is contained in:
2025-12-02 16:23:42 +01:00
parent e0ceb5ab87
commit f013444bd4
2 changed files with 4 additions and 4 deletions

View File

@@ -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:

View File

@@ -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} \