kiip/statsite — Issue #3: Not passing the data onto carbon
Author: gerhard
Created: 2011-11-30 16:43:37+00:00
State: open

I can send data to graphite directly using the following:

echo "local.random.diceroll 4 `date +%s`" | nc ${SERVER} ${PORT};

Even though I can see that statsite is running and the 8125 port is listening, none of the data that I'm sending to it gets passed onto graphite

$ netstat -uap
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 *:8125 *:* 29355/python

Statsite conf:

# Settings for the "collector" which is the UDP listener
[collector]
host = 0.0.0.0
port = 8125

# Specify settings for the metrics "store" which is where graphite is
[store]
host = 127.0.0.1
port = 2003

# not sure if this works properly, maybe only in a future version...
[flush]
interval = 60

I am running statsite as follows:

statsite -c /opt/graphite/conf/statsite.conf
2011-11-30 16:40:04,517 INFO:statsite.statsite:85
Statsite v0.4.0

[components]
. collector:
. aggregator:
. store:

[configuration]
{ 'aggregator': { },
'aliveness_check': { 'enabled': False,
'host': '0.0.0.0',
'port': 8325},
'collector': { 'host': '0.0.0.0', 'port': '8125'},
'flush': { 'interval': '60'},
'flush_interval': 10,
'log_level': 'info',
'metrics': { },
'store': { 'host': '127.0.0.1', 'port': '2003'}}

2011-11-30 16:40:04,519 INFO:statsite.statsite:111 Statsite starting

This is how I'm sending data to statsite

echo "metric.1:60|kv|@`date +%s`" | nc 127.0.0.1 8125