UnixSocketStatsClient
statsd = UnixSocketStatsClient(socket_path='/var/run/stats.sock')
The UnixSocketStatsClient class has a very similar interface to
TCPStatsClient, but internally it uses Unix Domain sockets instead
of TCP. These are the main differences when using UnixSocketStatsClient
compared to StatsClient:
The
socket_pathparameter is required. It has no default.The
host,portandipv6parameters are not allowed.The application process must have permission to write to the socket.