-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Support excluding specific postgresql databases from stats collection #29605
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me and implementation appears clean. However, I think this kind of functionality warrants a test which validates an expected result.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @recht. Just one more simple suggestion but this looks good to me.
There are cases where all except a few databases should be collected, for example the `rdsadmin` database in Amazon RDS is not accessible to regular users.
…open-telemetry#29605) **Description:** There are cases where all except a few databases should be collected, for example the `rdsadmin` database in Amazon RDS is not accessible to regular users. This PR adds an `exclude_databases` config setting to the psql collector where it's possible to specify a list of databases that should be excluded. **Testing:** Unit tests added **Documentation:** Readme updated with new config setting --------- Co-authored-by: Daniel Jaglowski <jaglows3@gmail.com>
Description:
There are cases where all except a few databases should be collected, for example the
rdsadmin
database in Amazon RDS is not accessible to regular users. This PR adds anexclude_databases
config setting to the psql collector where it's possible to specify a list of databases that should be excluded.Testing:
Unit tests added
Documentation:
Readme updated with new config setting