Skip to content

Commit 7661ed2

Browse files
authored
Fix default value for pg_stat_statements_view (#17400)
1 parent a7d8377 commit 7661ed2

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

postgres/assets/configuration/spec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ files:
402402
value:
403403
type: string
404404
example: show_pg_stat_statements()
405+
display_default: pg_stat_statements
405406
- name: query_metrics
406407
description: Configure collection of query metrics
407408
options:

postgres/changelog.d/17400.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix default value for pg_stat_statements_view

postgres/datadog_checks/postgres/config_models/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def instance_min_collection_interval():
109109

110110

111111
def instance_pg_stat_statements_view():
112-
return 'show_pg_stat_statements()'
112+
return 'pg_stat_statements'
113113

114114

115115
def instance_port():

postgres/datadog_checks/postgres/data/conf.yaml.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ instances:
311311
#
312312
# dbm: false
313313

314-
## @param pg_stat_statements_view - string - optional - default: show_pg_stat_statements()
314+
## @param pg_stat_statements_view - string - optional - default: pg_stat_statements
315315
## Set this value if you want to define a custom view or function to allow the datadog user to query the
316316
## `pg_stat_statements` table, which is useful for restricting the permissions given to the datadog agent.
317317
## Please note this is an ALPHA feature and is subject to change or deprecation without notice.

0 commit comments

Comments
 (0)