So my attempt to troubleshoot this was a total hack but it worked for me.
Steps
- Edit protocol.py (
/opt/graphite/lib/carbon/protocols.py
on line 75 and add an additional log line
Before:
class MetricLineReceiver(MetricReceiver, LineOnlyReceiver):
delimiter = '\n'
def lineReceived(self, line):
try:
metric, value, timestamp = line.strip().split()
datapoint = (float(timestamp), float(value))
except:
log.listener('invalid line received from client %s, ignoring' % self.peerName )
return
self.metricReceived(metric, datapoint)
After:
class MetricLineReceiver(MetricReceiver, LineOnlyReceiver):
delimiter = '\n'
def lineReceived(self, line):
try:
metric, value, timestamp = line.strip().split()
datapoint = (float(timestamp), float(value))
except:
log.listener('invalid line received from client %s, ignoring' % self.peerName )
log.listener('invalid line - [ %s ]' % line)
return
self.metricReceived(metric, datapoint)
By doing this I was able to see exactly which metric was causing me grief and address it.
Hope that helps!