-
Notifications
You must be signed in to change notification settings - Fork 813
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
Conversation
# 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 |
There was a problem hiding this comment.
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 ?
Looks great! |
For consistency with the rest of config.
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 = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why that change ?
There was a problem hiding this comment.
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..
Looks good! |
Instrument check runs time in collector when enabled
The option is in
datadog.conf
calledcheck_timings
.