basho/riak_kv — pull request #981 by jtuple (2014-06-13 08:34:14+00:00)
Title: Add basic stats for strongly consistent operations

Consistent gets/puts now correctly increment `vnode_gets`/`vnode_puts` the same as normal gets/puts. Prior to this commit, gets incremented the relevant stat but puts did not.

Consistent operations now maintain per-operation stats that are similar to the node/FSM stats for normal gets/puts. This includes operation counts, latency percentiles, and object size percentiles.

Future work is needed to support per-bucket stats, detailed `riak_ensemble` stats that track FSM stages / interesting events (eg. object rewrites after leader change), etc. But, these basic stats should be good enough for 2.0.

Addresses #876