From 644ca75c2fbade5abf18deac53f59dd037f280a6 Mon Sep 17 00:00:00 2001 From: joeykelroy Date: Tue, 2 Dec 2025 10:45:23 -0700 Subject: [PATCH 1/2] Updates how to increase query sample collection interval --- .../setup_postgres/advanced_configuration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/database_monitoring/setup_postgres/advanced_configuration.md b/content/en/database_monitoring/setup_postgres/advanced_configuration.md index 67dffda5c70..fcf8dc51617 100644 --- a/content/en/database_monitoring/setup_postgres/advanced_configuration.md +++ b/content/en/database_monitoring/setup_postgres/advanced_configuration.md @@ -43,7 +43,7 @@ instances: If you have queries that are relatively infrequent or execute quickly, raise the sampling rate by lowering the `collection_interval` value to collect samples more frequently. -Set the `collection_interval` in your database instance configuration of the Datadog Agent. The default value is 1 second and can be seen in the `postgres/conf.yaml.example`. +Set the `collection_interval` in your database instance configuration of the Datadog Agent. The default value is 10 seconds and can be seen in the `postgres/conf.yaml.example`. Lower the value to a smaller interval: @@ -51,6 +51,6 @@ Lower the value to a smaller interval: instances: - dbm: true ... - query_samples: - collection_interval: 0.1 + query_activity: + collection_interval: 1 ``` From fde5c3fd315d93d436f29fa3708b990e48bed3b6 Mon Sep 17 00:00:00 2001 From: joeykelroy Date: Tue, 2 Dec 2025 10:54:57 -0700 Subject: [PATCH 2/2] Removes link to config --- .../setup_postgres/advanced_configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/database_monitoring/setup_postgres/advanced_configuration.md b/content/en/database_monitoring/setup_postgres/advanced_configuration.md index fcf8dc51617..f96a7c56b08 100644 --- a/content/en/database_monitoring/setup_postgres/advanced_configuration.md +++ b/content/en/database_monitoring/setup_postgres/advanced_configuration.md @@ -43,7 +43,7 @@ instances: If you have queries that are relatively infrequent or execute quickly, raise the sampling rate by lowering the `collection_interval` value to collect samples more frequently. -Set the `collection_interval` in your database instance configuration of the Datadog Agent. The default value is 10 seconds and can be seen in the `postgres/conf.yaml.example`. +Set the `collection_interval` in the `postgres/conf.yaml` for your database instance configuration of the Datadog Agent. The default value is 10 seconds. Lower the value to a smaller interval: