Skip to content

Commit

Permalink
enable mysql replication metrics by default with the old style config f…
Browse files Browse the repository at this point in the history
…ix #445
  • Loading branch information
Remi Hakim committed Apr 11, 2013
1 parent 540a56e commit f6fa16f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions checks.d/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ def _collect_dict(self, metric_type, field_metric_map, query, cursor, tags):
self.log.exception("Cannot find %s in the columns %s" % (field, cursor.description))
cursor.close()
del cursor
except:
if self.log is not None:
self.log.exception("While running %s" % query)
except Exception, e:
self.log.debug("Error while running %s" % query)

def _get_version(self, db, host):
if host in self.mysql_version:
Expand Down Expand Up @@ -293,6 +292,7 @@ def parse_agent_config(agentConfig):
'sock': agentConfig.get('mysql_sock',''),
'user': agentConfig.get('mysql_user',''),
'pass': agentConfig.get('mysql_pass',''),
'options': {'replication': True},
}]
}

0 comments on commit f6fa16f

Please sign in to comment.