implementation of statsd plugin