Refactor write_graphite plugin using collectd::plugin resource type
Refactor write_riemann plugin using collectd::plugin resource type