-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add stats formatting for riak-admin and http stats output #304
Conversation
|
%% @doc Return formatted stats | ||
-spec get_formatted_stats() -> [term()]. | ||
get_formatted_stats() -> | ||
case yokozuna:is_enabled(index) andalso ?YZ_ENABLED of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for the yokozuna:is_enabled(index)
check. That check is to allow users to just disabled indexing or querying without disabling all of Yokozuna. We will want to be able to retrieve stats even if index is disabled.
I think we should rename the internal stat names to query as well to be consistent with external. Also, looking at Riak KV it seems it stores the formatted stats in the cache. In fact, KV considers the formatted stats to be "legacy". I think this was because at one point @russelldb was working on moving to the new system but we still needed to present the stats in the old way. Thus |
…g function to be used in riak_kv_stat_bc
Download custom jars from s3
@@ -30,7 +30,7 @@ | |||
%% -type microseconds() :: integer(). | |||
-define(SERVER, ?MODULE). | |||
-define(NOTIFY(A, B, Type, Arg), | |||
folsom_metrics:notify_existing_metric({?YZ_APP_NAME, A, B}, Arg, Type)). | |||
folsom_metrics:notify_existing_metric({search, A, B}, Arg, Type)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure all other systems using stats use the application name as first part of namespace. Part of me likes having the root of the namespace be search
as that's what yokozuna is for but a bigger part of me wants to stay consistent with other areas of Riak which all namespace based on application.
Change it back to ?YZ_APP_NAME
. The renaming will happen in the stats_map
.
The The
But there was an error for HTTP stats.
|
…g function to be used in riak_kv_stat_bc
Something weird is going on here. The commits all occur twice with different hashes. Perhaps a bad rebase? |
New PR: |
YZ stats are not currently displayed on the riak http stats endpoint, or by riak-admin status. Add YZ stats formatting appropriate for console output with 'riak-admin status' and the htts /stats endpoint. The stats namespace for Search is transformed to /search/[query | index]/... instead of 'yokozuna'.
This PR also depends on changes to riak_kv in order to publish the stats to the 2 interfaces:
basho/riak_kv#839
Example stats output:
search_stat_ts : 1392310824
search_query_fail_count : 0
search_query_fail_one : 0
search_index_throughput_count : 0
search_index_throughput_one : 0
search_index_fail_count : 0
search_index_fail_one : 0
search_query_throughput_count : 0
search_query_throughput_one : 0
search_query_latency_min : 0.0
search_query_latency_max : 0.0
search_query_latency_median : 0.0
search_query_latency_percentile_95 : 0.0
search_query_latency_percentile_99 : 0.0
search_index_latency_min : 0.0
search_index_latency_max : 0.0
search_index_latency_median : 0.0
search_index_latency_percentile_95 : 0.0
search_index_latency_percentile_99 : 0.0