You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I figured it out why slave lag 0 was not being sent.
492 def dispatch_value(prefix, key, value, type, type_instance=None):
493 if not type_instance:
494 type_instance = key
495
496 log_verbose('Sending value: %s/%s=%s' % (prefix, type_instance, value))
497 if not value:
498 return
499 try:
500 value = int(value)
501 except ValueError:
502 value = float(value)
503
504 val = collectd.Values(plugin='mysql', plugin_instance=prefix)
505 val.type = type
506 val.type_instance = type_instance
507 val.values = [value]
508 val.dispatch()
Line 497, value 0 is caught and a return is issued, causing metrics (slave_lag) with values of 0 to not be sent. If I comment out 497 and 498, the value goes through.
There's something being dropped between the mysql plugin and collectd that I'm having a hard time tracking down.
mysql plugin verbose reports the following:
[2016-08-29 17:07:24] mysql plugin: Sending value: slave/slave_lag=0
But this metric never makes it through collectd. It just disappears. Now if the value is greater than 0, collectd passes it through just fine.
I don't see any setting where collectd drops zero valued metrics. I'm seeing this for a few other slave metrics as well. Am I missing something?
The text was updated successfully, but these errors were encountered: