Skip to content

Commit 6c7221f

Browse files
MargotLepizzeramasci
authored andcommitted
Ignore azure_maintenance database in postgres check to avoid permission error (DataDog#2310)
Ignore 'azure_maintenance' db to avoid permission error
1 parent 262ce98 commit 6c7221f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

postgres/datadog_checks/postgres/postgres.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,8 @@ def _get_instance_metrics(self, key, db, database_size_metrics, collect_default_
496496
'query': "SELECT datname, %s "
497497
"FROM pg_stat_database "
498498
"WHERE datname not ilike 'template%%' "
499-
" AND datname not ilike 'rdsadmin' ",
499+
" AND datname not ilike 'rdsadmin' "
500+
" AND datname not ilike 'azure_maintenance' ",
500501
'relation': False,
501502
}
502503

0 commit comments

Comments
 (0)