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

[postgres] Allow the collection of postgresql.database_size metrics to be disabled #3034

Closed
jstotz opened this issue Nov 16, 2016 · 0 comments

Comments

@jstotz
Copy link
Contributor

jstotz commented Nov 16, 2016

For a large database with a large number of relations the pg_database_size function can be very slow and expensive. Under heavy load it's possible for it to take longer than the check interval to execute causing queries to stack up and negatively affect system performance.

There should be a configuration flag to disable the collection of these metrics.

jstotz added a commit to springboardretail/dd-agent that referenced this issue Nov 16, 2016
Adds a new "collect_database_size_metrics" flag that defaults to true.

Resolves DataDog#3034
jstotz added a commit to springboardretail/dd-agent that referenced this issue Dec 2, 2016
Adds a new "collect_database_size_metrics" flag that defaults to true.

Resolves DataDog#3034
@masci masci closed this as completed in 7277ea3 Dec 2, 2016
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

No branches or pull requests

1 participant