From b0abcf91dd93a3984a960673d9dbbf849854583a Mon Sep 17 00:00:00 2001 From: Jon Anderson Date: Fri, 21 Feb 2014 22:20:15 -0500 Subject: [PATCH] added yokozuna stats --- src/riak_kv_stat_bc.erl | 3 ++- src/riak_kv_wm_stats.erl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/riak_kv_stat_bc.erl b/src/riak_kv_stat_bc.erl index 1e7f37f1bb..b97f3c6f3a 100644 --- a/src/riak_kv_stat_bc.erl +++ b/src/riak_kv_stat_bc.erl @@ -155,7 +155,8 @@ produce_stats() -> ring_stats(), config_stats(), app_stats(), - memory_stats() + memory_stats(), + yz_stat:search_stats() ]). %% Stats in folsom are stored with tuples as keys, the diff --git a/src/riak_kv_wm_stats.erl b/src/riak_kv_wm_stats.erl index 5028506fda..347173bc15 100644 --- a/src/riak_kv_wm_stats.erl +++ b/src/riak_kv_wm_stats.erl @@ -86,4 +86,4 @@ pretty_print(RD1, C1=#ctx{}) -> get_stats() -> {value, {disk, Disk}, Stats} = lists:keytake(disk, 1, riak_kv_stat:get_stats()), DiskFlat = [{struct, [{id, list_to_binary(Id)}, {size, Size}, {used, Used}]} || {Id, Size, Used} <- Disk], - lists:append([Stats, [{disk, DiskFlat}], riak_core_stat:get_stats()]). + lists:append([Stats, [{disk, DiskFlat}], riak_core_stat:get_stats(), yz_stat:search_stats()]).