Vagrant VM for StatsD and Graphite with the help of @hectcastro's graphite, statsd, and node.js cookbooks.
You need to have Vagrant installed.
$ librarian-chef install
$ vagrant up
$ vagrant ssh
$ open http://localhost:8080
Graphite's credentials default to username root
and password root
.
from statsd import StatsClient
statsd = StatsClient()
statsd.incr('foo')
You can use the TCP Stats Interface
telnet 127.0.0.1 8126
or
echo counters | nc 127.0.0.1 8126