Skip to content

Commit

Permalink
Update default configuration for collect_default_database to true
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-normand committed Sep 21, 2022
1 parent ed547c1 commit f89599e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion postgres/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ files:
description: Include statistics from the default database 'postgres' in the check metrics.
value:
type: boolean
example: false
example: true
- name: collect_bloat_metrics
description: Collect metrics about table bloat. Only available when `relation` metrics are enabled.
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion postgres/datadog_checks/postgres/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(self, instance):
self.collect_bloat_metrics = is_affirmative(instance.get('collect_bloat_metrics', False))
self.data_directory = instance.get('data_directory', None)
self.ignore_databases = instance.get('ignore_databases', DEFAULT_IGNORE_DATABASES)
if is_affirmative(instance.get('collect_default_database', False)):
if is_affirmative(instance.get('collect_default_database', True)):
self.ignore_databases = [d for d in self.ignore_databases if d != 'postgres']
self.custom_queries = instance.get('custom_queries', [])
self.tag_replication_role = is_affirmative(instance.get('tag_replication_role', False))
Expand Down
4 changes: 2 additions & 2 deletions postgres/datadog_checks/postgres/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ instances:
#
# collect_database_size_metrics: true

## @param collect_default_database - boolean - optional - default: false
## @param collect_default_database - boolean - optional - default: true
## Include statistics from the default database 'postgres' in the check metrics.
#
# collect_default_database: false
# collect_default_database: true

## @param collect_bloat_metrics - boolean - optional - default: false
## Collect metrics about table bloat. Only available when `relation` metrics are enabled.
Expand Down

0 comments on commit f89599e

Please sign in to comment.