Rebarized version of https://github.com/wooga/estatsd/