Skip to content

Commit

Permalink
Fix default value for pg_stat_statements_view (#17400)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethsamuel committed Apr 17, 2024
1 parent a7d8377 commit 7661ed2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions postgres/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ files:
value:
type: string
example: show_pg_stat_statements()
display_default: pg_stat_statements
- name: query_metrics
description: Configure collection of query metrics
options:
Expand Down
1 change: 1 addition & 0 deletions postgres/changelog.d/17400.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix default value for pg_stat_statements_view
2 changes: 1 addition & 1 deletion postgres/datadog_checks/postgres/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def instance_min_collection_interval():


def instance_pg_stat_statements_view():
return 'show_pg_stat_statements()'
return 'pg_stat_statements'


def instance_port():
Expand Down
2 changes: 1 addition & 1 deletion postgres/datadog_checks/postgres/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ instances:
#
# dbm: false

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

0 comments on commit 7661ed2

Please sign in to comment.