{"action":"closed","number":8,"pull_request":{"url":"https://api.github.com/repos/jkvor/redo/pulls/8","id":33247157,"html_url":"https://github.com/jkvor/redo/pull/8","diff_url":"https://github.com/jkvor/redo/pull/8.diff","patch_url":"https://github.com/jkvor/redo/pull/8.patch","issue_url":"https://api.github.com/repos/jkvor/redo/issues/8","number":8,"state":"closed","locked":false,"title":"Extract redis stats","user":{"login":"bigkevmcd","id":867746,"avatar_url":"https://avatars.githubusercontent.com/u/867746?v=3","gravatar_id":"","url":"https://api.github.com/users/bigkevmcd","html_url":"https://github.com/bigkevmcd","followers_url":"https://api.github.com/users/bigkevmcd/followers","following_url":"https://api.github.com/users/bigkevmcd/following{/other_user}","gists_url":"https://api.github.com/users/bigkevmcd/gists{/gist_id}","starred_url":"https://api.github.com/users/bigkevmcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigkevmcd/subscriptions","organizations_url":"https://api.github.com/users/bigkevmcd/orgs","repos_url":"https://api.github.com/users/bigkevmcd/repos","events_url":"https://api.github.com/users/bigkevmcd/events{/privacy}","received_events_url":"https://api.github.com/users/bigkevmcd/received_events","type":"User","site_admin":false},"body":"This is an RFC version, it extracts and parses the metrics from Redis.\r\n\r\nsomething like this works...\r\n\r\n```Erlang\r\n1> {ok, Conn} = redo:start_link().\r\n2> Result = redo_stats:get_stats(Conn).\r\n3> proplists:get_value(<<\"Memory\">>, Result).\r\n[{<<\"mem_allocator\">>,<<\"libc\">>},\r\n {<<\"mem_fragmentation_ratio\">>,<<\"1.40\">>},\r\n {<<\"used_memory_lua\">>,<<\"35840\">>},\r\n {<<\"used_memory_peak_human\">>,<<\"2.46M\">>},\r\n {<<\"used_memory_peak\">>,<<\"2574336\">>},\r\n {<<\"used_memory_rss\">>,<<\"3600384\">>},\r\n {<<\"used_memory_human\">>,<<\"2.46M\">>},\r\n {<<\"used_memory\">>,<<\"2574336\">>}]\r\n```","created_at":"2015-04-14T11:09:17Z","updated_at":"2015-04-14T11:10:20Z","closed_at":"2015-04-14T11:10:20Z","merged_at":null,"merge_commit_sha":"aeb18cbdd42dc3f1ac1408d75a2bd1dc4b70fe31","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jkvor/redo/pulls/8/commits","review_comments_url":"https://api.github.com/repos/jkvor/redo/pulls/8/comments","review_comment_url":"https://api.github.com/repos/jkvor/redo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jkvor/redo/issues/8/comments","statuses_url":"https://api.github.com/repos/jkvor/redo/statuses/67eb118d46db01b57b5730b5cdef4f3bdaa7e767","head":{"label":"heroku:bigkevmcd-extract-redis-stats","ref":"bigkevmcd-extract-redis-stats","sha":"67eb118d46db01b57b5730b5cdef4f3bdaa7e767","user":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":17851547,"name":"redo","full_name":"heroku/redo","owner":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/redo","description":"pipelined erlang redis client","fork":true,"url":"https://api.github.com/repos/heroku/redo","forks_url":"https://api.github.com/repos/heroku/redo/forks","keys_url":"https://api.github.com/repos/heroku/redo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/redo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/redo/teams","hooks_url":"https://api.github.com/repos/heroku/redo/hooks","issue_events_url":"https://api.github.com/repos/heroku/redo/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/redo/events","assignees_url":"https://api.github.com/repos/heroku/redo/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/redo/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/redo/tags","blobs_url":"https://api.github.com/repos/heroku/redo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/redo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/redo/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/redo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/redo/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/redo/languages","stargazers_url":"https://api.github.com/repos/heroku/redo/stargazers","contributors_url":"https://api.github.com/repos/heroku/redo/contributors","subscribers_url":"https://api.github.com/repos/heroku/redo/subscribers","subscription_url":"https://api.github.com/repos/heroku/redo/subscription","commits_url":"https://api.github.com/repos/heroku/redo/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/redo/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/redo/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/redo/issues/comments{/number}","contents_url":"https://api.github.com/repos/heroku/redo/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/redo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/redo/merges","archive_url":"https://api.github.com/repos/heroku/redo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/redo/downloads","issues_url":"https://api.github.com/repos/heroku/redo/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/redo/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/redo/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/redo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/redo/labels{/name}","releases_url":"https://api.github.com/repos/heroku/redo/releases{/id}","created_at":"2014-03-18T02:46:37Z","updated_at":"2015-04-14T10:58:02Z","pushed_at":"2015-04-14T10:59:05Z","git_url":"git://github.com/heroku/redo.git","ssh_url":"git@github.com:heroku/redo.git","clone_url":"https://github.com/heroku/redo.git","svn_url":"https://github.com/heroku/redo","homepage":"","size":266,"stargazers_count":6,"watchers_count":6,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":6,"default_branch":"master"}},"base":{"label":"jkvor:master","ref":"master","sha":"7c7eaef4cd65271e2fc4ea88587e848407cf0762","user":{"login":"jkvor","id":27577,"avatar_url":"https://avatars.githubusercontent.com/u/27577?v=3","gravatar_id":"","url":"https://api.github.com/users/jkvor","html_url":"https://github.com/jkvor","followers_url":"https://api.github.com/users/jkvor/followers","following_url":"https://api.github.com/users/jkvor/following{/other_user}","gists_url":"https://api.github.com/users/jkvor/gists{/gist_id}","starred_url":"https://api.github.com/users/jkvor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkvor/subscriptions","organizations_url":"https://api.github.com/users/jkvor/orgs","repos_url":"https://api.github.com/users/jkvor/repos","events_url":"https://api.github.com/users/jkvor/events{/privacy}","received_events_url":"https://api.github.com/users/jkvor/received_events","type":"User","site_admin":false},"repo":{"id":1643977,"name":"redo","full_name":"jkvor/redo","owner":{"login":"jkvor","id":27577,"avatar_url":"https://avatars.githubusercontent.com/u/27577?v=3","gravatar_id":"","url":"https://api.github.com/users/jkvor","html_url":"https://github.com/jkvor","followers_url":"https://api.github.com/users/jkvor/followers","following_url":"https://api.github.com/users/jkvor/following{/other_user}","gists_url":"https://api.github.com/users/jkvor/gists{/gist_id}","starred_url":"https://api.github.com/users/jkvor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkvor/subscriptions","organizations_url":"https://api.github.com/users/jkvor/orgs","repos_url":"https://api.github.com/users/jkvor/repos","events_url":"https://api.github.com/users/jkvor/events{/privacy}","received_events_url":"https://api.github.com/users/jkvor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jkvor/redo","description":"pipelined erlang redis client","fork":false,"url":"https://api.github.com/repos/jkvor/redo","forks_url":"https://api.github.com/repos/jkvor/redo/forks","keys_url":"https://api.github.com/repos/jkvor/redo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jkvor/redo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jkvor/redo/teams","hooks_url":"https://api.github.com/repos/jkvor/redo/hooks","issue_events_url":"https://api.github.com/repos/jkvor/redo/issues/events{/number}","events_url":"https://api.github.com/repos/jkvor/redo/events","assignees_url":"https://api.github.com/repos/jkvor/redo/assignees{/user}","branches_url":"https://api.github.com/repos/jkvor/redo/branches{/branch}","tags_url":"https://api.github.com/repos/jkvor/redo/tags","blobs_url":"https://api.github.com/repos/jkvor/redo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jkvor/redo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jkvor/redo/git/refs{/sha}","trees_url":"https://api.github.com/repos/jkvor/redo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jkvor/redo/statuses/{sha}","languages_url":"https://api.github.com/repos/jkvor/redo/languages","stargazers_url":"https://api.github.com/repos/jkvor/redo/stargazers","contributors_url":"https://api.github.com/repos/jkvor/redo/contributors","subscribers_url":"https://api.github.com/repos/jkvor/redo/subscribers","subscription_url":"https://api.github.com/repos/jkvor/redo/subscription","commits_url":"https://api.github.com/repos/jkvor/redo/commits{/sha}","git_commits_url":"https://api.github.com/repos/jkvor/redo/git/commits{/sha}","comments_url":"https://api.github.com/repos/jkvor/redo/comments{/number}","issue_comment_url":"https://api.github.com/repos/jkvor/redo/issues/comments{/number}","contents_url":"https://api.github.com/repos/jkvor/redo/contents/{+path}","compare_url":"https://api.github.com/repos/jkvor/redo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jkvor/redo/merges","archive_url":"https://api.github.com/repos/jkvor/redo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jkvor/redo/downloads","issues_url":"https://api.github.com/repos/jkvor/redo/issues{/number}","pulls_url":"https://api.github.com/repos/jkvor/redo/pulls{/number}","milestones_url":"https://api.github.com/repos/jkvor/redo/milestones{/number}","notifications_url":"https://api.github.com/repos/jkvor/redo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jkvor/redo/labels{/name}","releases_url":"https://api.github.com/repos/jkvor/redo/releases{/id}","created_at":"2011-04-21T05:33:49Z","updated_at":"2015-03-27T04:53:02Z","pushed_at":"2015-04-14T11:09:17Z","git_url":"git://github.com/jkvor/redo.git","ssh_url":"git@github.com:jkvor/redo.git","clone_url":"https://github.com/jkvor/redo.git","svn_url":"https://github.com/jkvor/redo","homepage":"","size":324,"stargazers_count":61,"watchers_count":61,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":3,"forks":17,"open_issues":3,"watchers":61,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jkvor/redo/pulls/8"},"html":{"href":"https://github.com/jkvor/redo/pull/8"},"issue":{"href":"https://api.github.com/repos/jkvor/redo/issues/8"},"comments":{"href":"https://api.github.com/repos/jkvor/redo/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/jkvor/redo/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/jkvor/redo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jkvor/redo/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/jkvor/redo/statuses/67eb118d46db01b57b5730b5cdef4f3bdaa7e767"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":7,"additions":18,"deletions":27,"changed_files":3}}