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

Add pg_database_size and custom metrics to postgres integration #1395

Merged
merged 10 commits into from
Feb 25, 2015

Conversation

remh
Copy link

@remh remh commented Feb 25, 2015

This is based on #1302 with a few minor changes

  • Fix tests (and add one more)
  • Add a limit to the number of results custom queries can return to protect from unbounded results.
  • small copy changes to improve readability

Thanks a lot to @ipolishchuk !

Igor Polishchuk and others added 10 commits January 5, 2015 11:46
Get upstream commits from DataDog
Merge upstream changes
Merge upstream changes
- Fix tests (and add one more)
- Add a limit to the number of results custom queries can return
- small copy changes to improve readability
@remh remh added this to the 5.3.0 milestone Feb 25, 2015
@remh remh self-assigned this Feb 25, 2015
remh pushed a commit that referenced this pull request Feb 25, 2015
Add pg_database_size and custom metrics to postgres integration
@remh remh merged commit 95c3ba1 into master Feb 25, 2015
@remh remh deleted the remh/postgres_custom_metrics branch March 16, 2015 18:02
LeoCavaille added a commit that referenced this pull request Mar 20, 2015
Fix regression introduced by #1395.
The idea is that because the pre-processing function
`_process_customer_metrics`
was modifying "in-place" instance attributes, and for instance
converting the string "GAUGE" to the method "AgentCheck.gauge" at the
first pass, the second time it would expect to find a string and fail
when it encounters a method.
Instead we cache the pre-preprocessed dict the first time, and hit this
dictionnary in the next runs if it is present.
LeoCavaille added a commit that referenced this pull request Mar 20, 2015
Fix regression introduced by #1395.
The idea is that because the pre-processing function
`_process_customer_metrics`
was modifying "in-place" instance attributes, and for instance
converting the string "GAUGE" to the method "AgentCheck.gauge" at the
first pass, the second time it would expect to find a string and fail
when it encounters a method.
Instead we cache the pre-preprocessed dict the first time, and hit this
dictionnary in the next runs if it is present.
LeoCavaille added a commit that referenced this pull request Apr 7, 2015
Fix regression introduced by #1395.
The idea is that because the pre-processing function
`_process_customer_metrics`
was modifying "in-place" instance attributes, and for instance
converting the string "GAUGE" to the method "AgentCheck.gauge" at the
first pass, the second time it would expect to find a string and fail
when it encounters a method.
Instead we cache the pre-preprocessed dict the first time, and hit this
dictionnary in the next runs if it is present.
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.

1 participant