invalid line received from pystatsd

Asked by borislavd

I'm using statsd 0.3.0, django-statsd-mozilla 0.2.1, and graphite 0.9.9. I'm getting an invalid line error in carbon:

20/01/2012 14:25:33 :: [listener] invalid line received from 192.168.16.1, ignoring, line=dev.test1:1|c

The request was sent as:

In [1]: from django_statsd.clients import statsd
In [2]: statsd.incr('test1')

and I have STATSD_PREFIX = 'dev' in my Django settings file.

Looking at the source of the statsd client, that is exactly what it sends, but that doesn't meet the graphite message format spec "metric_path value timestamp\n". Am I missing something?

TIA!

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Michael Leinartas (mleinartas) said :
#1

Graphite doesn't understand the statsd protocol itself - you need to run a statsd daemon to receive these packets and aggregate them for Graphite. There are a lot of variants to choose from:

http://joemiller.me/2011/09/21/list-of-statsd-server-implementations/

Be sure that the flushInterval configured in your statsd server matches the storage schema you've configured for Graphite (statsd's default is 10seconds)

Can you help with this problem?

Provide an answer of your own, or ask borislavd for more information if necessary.

To post a message you must log in.