Search code examples
metricsgraphitecodahale-metrics

Graphite : invalid line received from client (codahale metrics)


I received errors in carbon when trying to using metrics for graphite :

[listener] invalid line received from client HOST:PORT, ignoring

So, I tried to add some logs in /opt/graphite/lib/carbon/protocols.py like this.

And I see in logs this errors:

28/07/2015 10:21:14 :: [listener] invalid line - [ tta(S'com.unnyworld.db.dbclient.request_time.auth.max' ]
28/07/2015 10:21:14 :: [listener] invalid line - [ (L1438078874L ]
28/07/2015 10:21:14 :: [listener] invalid line - [ S'5' ]

And if we looking for normal request, it looks like:

28/07/2015 10:31:07 :: [listener] nice line - [ stats.counters.statsd.bad_lines_seen.rate 0 1438079468 ]

What's problem here? Is it carbon problem? Or is it metrics problem? And how can I resolve it?

Metrics version is 3.1.2

Carbon version 0.9.x


Solution

  • My mistake. I sent data to 2003 port, but it's only for plain text.

    You should use 2004 port if using pickle protocol, like mentioned here.