Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore rdsadmin database in postgres check to avoid permission error #1590

Merged
merged 1 commit into from
May 2, 2015

Conversation

etrepum
Copy link
Contributor

@etrepum etrepum commented May 2, 2015

When polling an RDS instance the rdsadmin database should be ignored. This is an internal database used for RDS and it's not accessible to normal users and probably doesn't have any interesting information for anyone but Amazon.

This is what happens when rdsadmin is not ignored:

2015-05-02 01:08:48 UTC | WARNING | dd.collector | checks.postgres(postgres.py:419) | Not all metrics may be available: ('ERROR', '42501', 'permission denied for database rdsadmin')
2015-05-02 01:08:48 UTC | WARNING | dd.collector | checks.postgres(postgres.py:419) | Not all metrics may be available: ('ERROR', '25P02', 'current transaction is aborted, commands ignored until end of transaction block')

Works fine after this patch. Should not affect anyone that isn't using a table with this name for their own purposes.

@alq666
Copy link
Member

alq666 commented May 2, 2015

Makes sense. Thanks @etrepum.

alq666 added a commit that referenced this pull request May 2, 2015
ignore rdsadmin database in postgres check to avoid permission error
@alq666 alq666 merged commit 26c91eb into DataDog:master May 2, 2015
@etrepum etrepum deleted the postgres-ignore-rdsadmin branch May 4, 2015 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants