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

Make it possible to enable PostgreSQL extra metrics collection #493

Merged
merged 1 commit into from
Feb 4, 2019

Conversation

diogokiss
Copy link

The current version of the PostgresSQL module integration doesn't
handle the following parameters for the Datadog PostgreSQL integration:

  • collect_function_metrics
  • collect_count_metrics
  • collect_activity_metrics
  • collect_database_size_metrics

This way metrics like postgresql.active_queries and postgresql.waiting_queries,
for example, were not available.
This change aims to make them available whenever desired.

@diogokiss diogokiss force-pushed the postgres-collect-metrics branch 3 times, most recently from bb85bf7 to d351acb Compare January 31, 2019 08:03
The current version of the PostgresSQL module integration doesn't
handle the following parameters for the Datadog PostgreSQL integration:
  * collect_function_metrics
  * collect_count_metrics
  * collect_activity_metrics
  * collect_database_size_metrics

This way metrics like postgresql.active_queries and postgresql.waiting_queries,
for example, were not available.
This change aims to make them available whenever desired.
@diogokiss
Copy link
Author

Hi, @truthbk! Should I assign someone to review this PR or should I just wait until the team finds a suitable time for that?

@truthbk
Copy link
Member

truthbk commented Jan 31, 2019

Took a quick look at the PR and it looks pretty good at a glance. Thank you for adding those tests. I'll give it a detailed pass soon (specifically at the defaults and verify they're sane) - thank you for adding those tests, that really helps @diogokiss

Assigning myself.

@truthbk truthbk self-assigned this Jan 31, 2019
@truthbk truthbk added this to the 2.5.0 milestone Jan 31, 2019
@diogokiss
Copy link
Author

You're welcome, @truthbk. And thanks for checking it. Please, let me know if there is anything I need/can improve.

Copy link
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thank you very much for the spec tests! Merging!

String $username = 'datadog',
Boolean $ssl = false,
Boolean $use_psycopg2 = false,
Boolean $collect_function_metrics = false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defaults here are all sane and consistent with integration defaults 👍

@truthbk truthbk merged commit 0b842d3 into DataDog:master Feb 4, 2019
cegeka-jenkins pushed a commit to cegeka/puppet-datadog_agent that referenced this pull request Apr 6, 2020
…og#493)

The current version of the PostgresSQL module integration doesn't
handle the following parameters for the Datadog PostgreSQL integration:
  * collect_function_metrics
  * collect_count_metrics
  * collect_activity_metrics
  * collect_database_size_metrics

This way metrics like postgresql.active_queries and postgresql.waiting_queries,
for example, were not available.
This change aims to make them available whenever desired.
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.

2 participants