Skip to content

Conversation

recht
Copy link
Contributor

@recht recht commented Dec 1, 2023

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

@recht recht requested a review from djaglowski as a code owner December 1, 2023 15:32
@recht recht requested a review from a team December 1, 2023 15:32
Copy link

linux-foundation-easycla bot commented Dec 1, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Member

@djaglowski djaglowski left a 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.

Copy link
Member

@djaglowski djaglowski left a 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.

recht added 4 commits December 6, 2023 18:07
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.
@djaglowski djaglowski added the ready to merge Code review completed; ready to merge by maintainers label Dec 6, 2023
@djaglowski djaglowski merged commit 30e756e into open-telemetry:main Dec 6, 2023
@github-actions github-actions bot added this to the next release milestone Dec 6, 2023
@recht recht deleted the exclude branch December 6, 2023 21:26
jayasai470 pushed a commit to jayasai470/opentelemetry-collector-contrib that referenced this pull request Dec 8, 2023
…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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers receiver/postgresql
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants