-
Notifications
You must be signed in to change notification settings - Fork 812
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
Fixed warning on SHOW SLAVE STATUS #809
Conversation
Thanks @ive Could you log something in debug level when result[col_idx] is None ? |
Sure, updated PR 2014-01-29 08:52:29,569 | DEBUG | dd.collector | checks.mysql(mysql.py:91) | Connected to MySQL |
Thanks! |
Fixed warning on SHOW SLAVE STATUS
Hello,
This PR fixes warning that occurs to us running datadog for monitoring mysql slave. Here is example:
2014-01-28 11:10:16,760 | ERROR | dd.collector | checks.mysql(mysql.py:233) | Error while running SHOW SLAVE STATUS
Traceback (most recent call last):
File "/usr/share/datadog/agent/checks.d/mysql.py", line 226, in _collect_dict
self.gauge(metric, float(result[col_idx]), tags=tags)
TypeError: float() argument must be a string or a number
This is not a big problem - but it's annoying while running "datadog-agent info" command and also garbage collector.log.