Eventually we will want to replace this with statsd. (imported from commit 64246e9f2d13d72f53d009a5e3e456bc6be6296b)