From 7185cea45a3a6f9794d88ab303d9e0a4d45a0ebd Mon Sep 17 00:00:00 2001 From: Pierre Le Noan <144696725+pierreln-dd@users.noreply.github.com> Date: Tue, 25 Nov 2025 09:32:58 +0100 Subject: [PATCH 1/2] Update shared_preload_libraries description Clarified the value for `shared_preload_libraries` to indicate it should include `pg_stat_statements` and provided guidance for appending additional values. --- content/en/database_monitoring/setup_postgres/selfhosted.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/database_monitoring/setup_postgres/selfhosted.md b/content/en/database_monitoring/setup_postgres/selfhosted.md index a642de76a6f..c2a35dfba1b 100644 --- a/content/en/database_monitoring/setup_postgres/selfhosted.md +++ b/content/en/database_monitoring/setup_postgres/selfhosted.md @@ -45,7 +45,7 @@ Configure the following [parameters][4] in the `postgresql.conf` file and then * | Parameter | Value | Description | | --- | --- | --- | -| `shared_preload_libraries` | `pg_stat_statements` | Required for `postgresql.queries.*` metrics. Enables collection of query metrics using the [pg_stat_statements][5] extension. | +| `shared_preload_libraries` | includes `pg_stat_statements` | Required for `postgresql.queries.*` metrics. Enables collection of query metrics using the [pg_stat_statements][5] extension. If you have other values in `shared_preload_libraries`, append `,pg_stat_statements` | | `track_activity_query_size` | `4096` | Required for collection of larger queries. Increases the size of SQL text in `pg_stat_activity`. If left at the default value then queries longer than `1024` characters will not be collected. | | `pg_stat_statements.track` | `ALL` | Optional. Enables tracking of statements within stored procedures and functions. | | `pg_stat_statements.max` | `10000` | Optional. Increases the number of normalized queries tracked in `pg_stat_statements`. This setting is recommended for high-volume databases that see many different types of queries from many different clients. | From e77bb5a06484326c3c1b4df4b2fd70ba899f8cb4 Mon Sep 17 00:00:00 2001 From: Pierre Le Noan <144696725+pierreln-dd@users.noreply.github.com> Date: Tue, 25 Nov 2025 09:55:49 +0100 Subject: [PATCH 2/2] Update description for shared_preload_libraries parameter --- content/en/database_monitoring/setup_postgres/selfhosted.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/database_monitoring/setup_postgres/selfhosted.md b/content/en/database_monitoring/setup_postgres/selfhosted.md index c2a35dfba1b..ee075d086b5 100644 --- a/content/en/database_monitoring/setup_postgres/selfhosted.md +++ b/content/en/database_monitoring/setup_postgres/selfhosted.md @@ -45,7 +45,7 @@ Configure the following [parameters][4] in the `postgresql.conf` file and then * | Parameter | Value | Description | | --- | --- | --- | -| `shared_preload_libraries` | includes `pg_stat_statements` | Required for `postgresql.queries.*` metrics. Enables collection of query metrics using the [pg_stat_statements][5] extension. If you have other values in `shared_preload_libraries`, append `,pg_stat_statements` | +| `shared_preload_libraries` | should include `pg_stat_statements` | Required for `postgresql.queries.*` metrics. Enables collection of query metrics using the [pg_stat_statements][5] extension. If you have other values in `shared_preload_libraries`, append `,pg_stat_statements` | | `track_activity_query_size` | `4096` | Required for collection of larger queries. Increases the size of SQL text in `pg_stat_activity`. If left at the default value then queries longer than `1024` characters will not be collected. | | `pg_stat_statements.track` | `ALL` | Optional. Enables tracking of statements within stored procedures and functions. | | `pg_stat_statements.max` | `10000` | Optional. Increases the number of normalized queries tracked in `pg_stat_statements`. This setting is recommended for high-volume databases that see many different types of queries from many different clients. |