imeyer/simple-graphite — pull request #6 by mckern (2013-05-13 03:25:48+00:00)
Title: Add UDP support

I had a need to send metrics to Graphite (not StatsD), so I extended simple-graphite to include UDP support. The new features should be drop-in and backwards compatable.

This included creating a new subclass (Graphite::Socket) to support the differences in connecting to TCPSocket vs. UDPSocket, as well as defining default port configurations for each protocol. I also updated the Rspec tests to understand UDP mocks and UDP operations. While I was in there, I reworded test names a little; if that's a problem, mea culpa.

The work in Graphite::Socket is based in part on work from the MIT licensed gem
"logstash-logger", by David Butler.