The latest versions of moxi have improved proxy-related stats:
telnet 127.0.0.1 11211 stats proxy
Alternatively:
echo "stats proxy" | nc HOST 11211The above will provide statistics about the moxi proxy itself, not from asking the memcached/membase servers for cluster-wide statistics.
The proxy-related stats can tell you information about the moxi process, including:
how it's been configured
how many buckets it's handling
per-bucket statistics
number of connections, requests, errors, retries, etc.
The stats proxy output will looks like:
$ echo stats proxy | nc 127.0.0.1 11211 STAT basic:version 1.6.1rc1 STAT basic:nthreads 5 STAT basic:hostname stevenmb.local STAT memcached:settings:maxbytes 67108864 STAT memcached:settings:maxconns 1024 STAT memcached:settings:tcpport 0 .... STAT 11211:[ <NULL_BUCKET> ]:pstd_stats:tot_upstream_paused 0 STAT 11211:[ <NULL_BUCKET> ]:pstd_stats:tot_upstream_unpaused 0 STAT 11211:[ <NULL_BUCKET> ]:pstd_stats:err_oom 0 STAT 11211:[ <NULL_BUCKET> ]:pstd_stats:err_upstream_write_prep 0 STAT 11211:[ <NULL_BUCKET> ]:pstd_stats:err_downstream_write_prep 0 END
Let's walk through each section.