added metrics using statsd.