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

Instrument check runs time in collector when enabled #1013

Merged
merged 4 commits into from
Jul 7, 2014

Conversation

conorbranagan
Copy link
Contributor

The option is in datadog.conf called check_timings.

# trying to connect to the local endpoint: http://169.254.169.254
# See http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html
# and https://developers.google.com/compute/docs/metadata
# for more information
# collect_instance_metadata: yes

# If enabled the collector will capture a metric for check run times.
# check_timings: false
Copy link

Choose a reason for hiding this comment

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

Tiny tiny nitpick, could you set the default to "no" instead of "false" for consistency purposes ?

@remh
Copy link

remh commented Jul 2, 2014

Looks great!
Can you add a small test for that ?

@conorbranagan
Copy link
Contributor Author

Updated and test added. Should be good to go if Travis passes...

@@ -59,7 +60,7 @@ def __init__(self, agentConfig, emitters, systemStats):
self.continue_running = True
self.metadata_cache = None
self.initialized_checks_d = []
self.init_failed_checks_d = []
self.init_failed_checks_d = {}
Copy link

Choose a reason for hiding this comment

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

Why that change ?

Copy link

Choose a reason for hiding this comment

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

Nevermind looks like you're fixing a bug..

@remh
Copy link

remh commented Jul 7, 2014

Looks good!

remh pushed a commit that referenced this pull request Jul 7, 2014
Instrument check runs time in collector when enabled
@remh remh merged commit 1a00ac5 into master Jul 7, 2014
@remh remh deleted the conor/instrument-check-run-times branch October 20, 2014 03:25
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