Skip to content
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

Use 'tree' style stat names, and riak_core_stat_q #428

Merged
merged 5 commits into from
Nov 15, 2012

Conversation

russelldb
Copy link
Member

Use riak core stat query for riak_kv_stat get_stats
Add new read repair dimensioned stat aggregations to stat blob

Depends on riak_core pr - basho/riak_core#252

@russelldb russelldb mentioned this pull request Nov 6, 2012
Key = [element(N, Name) || N <- Fields],
join(Key).

recursive_join(BaseName, Aggregates) ->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name recursive_join was a little vague for me. Maybe a comment explaining how it's flattening the nested stat tree, creating a flat list of stats with names prepended by BaseName_?

Technically there is no bound to the number of buckets one can
create, and no limit the length of a bucket name. The erlang atom
table is a finite resource and atom sapce is not reclaimed so
creating unbounded atoms of any length is a bad idea.
Re-name and better comment confusing `recursive_join` fun.
Remove redundant call to `lists:flatten` as once is enough.
Correct markdown style escapes to edoc style.
@russelldb
Copy link
Member Author

Pushed a commit that addresses review comments.

@beerriot
Copy link

Looks great, +1!

@russelldb russelldb merged commit 684ec86 into gh412-vnode-stats Nov 15, 2012
@ghost ghost assigned russelldb Nov 16, 2012
@seancribbs seancribbs deleted the gh412-tree-stats branch April 1, 2015 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants