Skip to content

Commit

Permalink
Use specific databases for template on postgres ignore (#18807)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabianoshz authored Oct 15, 2024
1 parent 8d5b9cd commit f2d9787
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions postgres/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ files:
items:
type: string
example:
- 'template%'
- 'template0'
- 'template1'
- rdsadmin
- azure_maintenance
- cloudsqladmin
default:
- 'template%'
- 'template0'
- 'template1'
- rdsadmin
- azure_maintenance
- cloudsqladmin
Expand Down
1 change: 1 addition & 0 deletions postgres/changelog.d/18807.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use specific databases for template on postgres ignore
3 changes: 2 additions & 1 deletion postgres/datadog_checks/postgres/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
TABLE_COUNT_LIMIT = 200

DEFAULT_IGNORE_DATABASES = [
'template%',
'template0',
'template1',
'rdsadmin',
'azure_maintenance',
'cloudsqladmin',
Expand Down
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 @@ -89,7 +89,7 @@ def instance_idle_connection_timeout():


def instance_ignore_databases():
return ['template%', 'rdsadmin', 'azure_maintenance', 'cloudsqladmin']
return ['template0', 'template1', 'rdsadmin', 'azure_maintenance', 'cloudsqladmin']


def instance_log_unobfuscated_plans():
Expand Down
3 changes: 2 additions & 1 deletion postgres/datadog_checks/postgres/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ instances:
## For more information on how patterns work, see https://www.postgresql.org/docs/12/functions-matching.html
#
# ignore_databases:
# - template%
# - template0
# - template1
# - rdsadmin
# - azure_maintenance
# - cloudsqladmin
Expand Down

0 comments on commit f2d9787

Please sign in to comment.