Refactored metrics parsing

I refactored the metrics parsing to match our namespacing up with the
current statsd measurements. This should do the trick. It's a bit of a
hack, but it beats writing C code to insert the hostname into the end of
that line... :)