Adding the DeprecationWarning when stats_endpoint is used without statsd