For ubuntu:
sudo add-apt-repository ppa:muffinresearch/graphite
sudo apt-get update
sudo apt-get install python-graphite
[default]
default = true
servers = 127.0.0.1:17124
# ^ should be the port defined as graphite_listen_port
[relay]
# metrics should report to that ip/port
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2005
# you don't need to talk to this interface
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2006
CACHE_SERVERS = localhost
MAX_QUEUE_SIZE = 10000
sudo carbon-relay --debug --config=/etc/carbon/carbon.conf --rules=/etc/carbon/relay-rules.conf start
tail -F /var/log/ddforwarder.log | grep graphite
And you should see things like
Posted metric: datadog.graphite.foo
For instance
curl -L https://gist.github.com/3219398 > graphite.py
python graphite.py # adjust the ports as needed (should be the line receiver)