Split the metrics to graphite functionality and added a helper method to wire it up