Couchbase Server Moxi statistics

Couchbase Server Moxi statistics

Regular memcached clients can request statistics through the memcached stats command.

Moxi, as part of it’s support of memcached protocol, has support for the memcached stats command. The stats command accepts optional arguments, and in the case of Moxi, there is a stats proxy sub-command. A detailed description of statistics available through Moxi can be found in the Moxi 1.8 Manual.

For example, one simple client one may use is the commonly available netcat (output elided with ellipses):

$ echo "stats proxy" | nc localhost 11211 STAT basic:version 1.6.0 STAT basic:nthreads 5 … STAT proxy_main:conf_type dynamic STAT proxy_main:behavior:cycle 0 STAT proxy_main:behavior:downstream_max 4 STAT proxy_main:behavior:downstream_conn_max 0 STAT proxy_main:behavior:downstream_weight 0 … STAT proxy_main:stats:stat_configs 1 STAT proxy_main:stats:stat_config_fails 0 STAT proxy_main:stats:stat_proxy_starts 2 STAT proxy_main:stats:stat_proxy_start_fails 0 STAT proxy_main:stats:stat_proxy_existings 0 STAT proxy_main:stats:stat_proxy_shutdowns 0 STAT 11211:default:info:port 11211 STAT 11211:default:info:name default … STAT 11211:default:behavior:downstream_protocol 8 STAT 11211:default:behavior:downstream_timeout 0 STAT 11211:default:behavior:wait_queue_timeout 0 STAT 11211:default:behavior:time_stats 0 STAT 11211:default:behavior:connect_max_errors 0 STAT 11211:default:behavior:connect_retry_interval 0 STAT 11211:default:behavior:front_cache_max 200 STAT 11211:default:behavior:front_cache_lifespan 0 STAT 11211:default:behavior:front_cache_spec STAT 11211:default:behavior:front_cache_unspec STAT 11211:default:behavior:key_stats_max STAT 11211:default:behavior:key_stats_lifespan 0 STAT 11211:default:behavior:key_stats_spec STAT 11211:default:behavior:key_stats_unspec STAT 11211:default:behavior:optimize_set STAT 11211:default:behavior:usr default … STAT 11211:default:pstd_stats:num_upstream 1 STAT 11211:default:pstd_stats:tot_upstream 2 STAT 11211:default:pstd_stats:num_downstream_conn 1 STAT 11211:default:pstd_stats:tot_downstream_conn 1 STAT 11211:default:pstd_stats:tot_downstream_conn_acquired 1 STAT 11211:default:pstd_stats:tot_downstream_conn_released 1 STAT 11211:default:pstd_stats:tot_downstream_released 2 STAT 11211:default:pstd_stats:tot_downstream_reserved 1 STAT 11211:default:pstd_stats:tot_downstream_reserved_time 0 STAT 11211:default:pstd_stats:max_downstream_reserved_time 0 STAT 11211:default:pstd_stats:tot_downstream_freed 0 STAT 11211:default:pstd_stats:tot_downstream_quit_server 0 STAT 11211:default:pstd_stats:tot_downstream_max_reached 0 STAT 11211:default:pstd_stats:tot_downstream_create_failed 0 STAT 11211:default:pstd_stats:tot_downstream_connect 1 STAT 11211:default:pstd_stats:tot_downstream_connect_failed 0 STAT 11211:default:pstd_stats:tot_downstream_connect_timeout 0 STAT 11211:default:pstd_stats:tot_downstream_connect_interval 0 STAT 11211:default:pstd_stats:tot_downstream_connect_max_reached 0 … END