Module yz_stat

yz_stat is a module for aggregating Yokozuna statistics, from administration to querying.

Behaviours: gen_server.

Description

yz_stat is a module for aggregating Yokozuna statistics, from administration to querying

Data Types

index_name()

index_name() = binary()

stat_name()

stat_name() = list()

Function Index

batch_end/1Send stat updates for a batch completion.
blocked_vnode/1Count of times the solrq had to block a vnode pass the vnode From into the function for redbugging, cannot see any value in overhead of doing stats by worker pool.
code_change/3
create_dynamic_stats/2Create dynamic stats for search index.
delete_dynamic_stats/2Delete dynamic stats for search index.
detected_repairs/1Send updates for aae repairs.
drain_cancel_timeout/0Send stat updates for a drain cancel timeout.
drain_end/1Send stat updates for a drain completion.
drain_fail/0Send stat updates for a drain failure.
drain_timeout/0Send stat updates for a drain timeout.
fuse_blown/1Update fuse recovered statistic.
fuse_recovered/1Update fuse recovered statistic.
get_stat/1Return the value for the stat with the given Name, or undefined if not found.
get_stat/2
get_stats/0Return current aggregation of all stats.
handle_call/3
handle_cast/2
handle_info/2
hwm_purged/1update the the number of purges that have occurred.
index_bad_entry/0Send stat updates for an index failure.
index_end/3Send stat updates for an index completion.
index_extract_fail/0Send stat updates for an index failure.
index_fail/0Send stat updates for an index failure.
init/1
initialize_fuse_stats/1Initialize the Fuse stats subsystem for a given fuse.
perform_update/1Notify specific metrics in exometer based on the StatUpdate term passed in.
queue_total_length/1update the total queue length to the specified value.
reset/0
search_end/1Send stat updates for search completion.
search_fail/0Send stat updates for a search failure.
start_link/0
stat_name/1
terminate/2

Function Details

batch_end/1

batch_end(ElapsedTime::integer()) -> ok

Send stat updates for a batch completion. ElapsedTime should be microseconds.

blocked_vnode/1

blocked_vnode(From) -> any()

Count of times the solrq had to block a vnode pass the vnode From into the function for redbugging, cannot see any value in overhead of doing stats by worker pool

code_change/3

code_change(OldVsn, State, Extra) -> any()

create_dynamic_stats/2

create_dynamic_stats(Index::index_name(), Stats::[atom()]) -> [ok]

Create dynamic stats for search index.

delete_dynamic_stats/2

delete_dynamic_stats(Index::index_name(), Stats::[atom()]) -> [ok]

Delete dynamic stats for search index.

detected_repairs/1

detected_repairs(Count::integer()) -> ok

Send updates for aae repairs.

drain_cancel_timeout/0

drain_cancel_timeout() -> ok

Send stat updates for a drain cancel timeout.

drain_end/1

drain_end(ElapsedTime::integer()) -> ok

Send stat updates for a drain completion. ElapsedTime should be microseconds.

drain_fail/0

drain_fail() -> ok

Send stat updates for a drain failure.

drain_timeout/0

drain_timeout() -> ok

Send stat updates for a drain timeout.

fuse_blown/1

fuse_blown(Index::index_name()) -> ok

Update fuse recovered statistic.

fuse_recovered/1

fuse_recovered(Index::index_name()) -> ok

Update fuse recovered statistic.

get_stat/1

get_stat(Name::[atom(), ...]) -> undefined | term()

Return the value for the stat with the given Name, or undefined if not found.

get_stat/2

get_stat(Name, SummaryName) -> any()

get_stats/0

get_stats() -> proplists:proplist() | {error, Reason::term()}

Return current aggregation of all stats.

handle_call/3

handle_call(Req, From, State) -> any()

handle_cast/2

handle_cast(Req, State) -> any()

handle_info/2

handle_info(Info, State) -> any()

hwm_purged/1

hwm_purged(NumPurged::non_neg_integer()) -> ok

update the the number of purges that have occurred

index_bad_entry/0

index_bad_entry() -> ok

Send stat updates for an index failure.

index_end/3

index_end(Index::index_name(), BatchSize::integer(), ElapsedTime::integer()) -> ok

Send stat updates for an index completion. ElapsedTime should be microseconds.

index_extract_fail/0

index_extract_fail() -> ok

Send stat updates for an index failure.

index_fail/0

index_fail() -> ok

Send stat updates for an index failure.

init/1

init(X1) -> any()

initialize_fuse_stats/1

initialize_fuse_stats(Name::atom()) -> ok

Initialize the Fuse stats subsystem for a given fuse.

perform_update/1

perform_update(StatUpdate::term()) -> ok

Notify specific metrics in exometer based on the StatUpdate term passed in.

queue_total_length/1

queue_total_length(Length::non_neg_integer()) -> ok

update the total queue length to the specified value

reset/0

reset() -> [{stat_name(), ok | {error, any()}}]

search_end/1

search_end(ElapsedTime::integer()) -> ok

Send stat updates for search completion. ElapsedTime should be microseconds.

search_fail/0

search_fail() -> ok

Send stat updates for a search failure.

start_link/0

start_link() -> any()

stat_name/1

stat_name(Name::riak_core_stat_q:path()) -> riak_core_stat_q:stat_name()

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc