{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/2060","labels_url":"https://api.github.com/repos/coreos/etcd/issues/2060/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/2060/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/2060/events","html_url":"https://github.com/coreos/etcd/pull/2060","id":53727853,"number":2060,"title":"rafthttp: add stream metrics","user":{"login":"yichengq","id":2976232,"avatar_url":"https://avatars.githubusercontent.com/u/2976232?v=3","gravatar_id":"","url":"https://api.github.com/users/yichengq","html_url":"https://github.com/yichengq","followers_url":"https://api.github.com/users/yichengq/followers","following_url":"https://api.github.com/users/yichengq/following{/other_user}","gists_url":"https://api.github.com/users/yichengq/gists{/gist_id}","starred_url":"https://api.github.com/users/yichengq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yichengq/subscriptions","organizations_url":"https://api.github.com/users/yichengq/orgs","repos_url":"https://api.github.com/users/yichengq/repos","events_url":"https://api.github.com/users/yichengq/events{/privacy}","received_events_url":"https://api.github.com/users/yichengq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-08T08:56:35Z","updated_at":"2015-01-12T20:26:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/coreos/etcd/pulls/2060","html_url":"https://github.com/coreos/etcd/pull/2060","diff_url":"https://github.com/coreos/etcd/pull/2060.diff","patch_url":"https://github.com/coreos/etcd/pull/2060.patch"},"body":"http endpoint: `/v2/stats/transport`\r\nformat:\r\n```\r\nunihorn@CoreOS ~/g/s/g/a/kafka> curl http://127.0.0.1:4002/v2/stats/transport | python -m json.tool\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100   110    0   110    0     0  89576      0 --:--:-- --:--:-- --:--:--  107k\r\n{\r\n    \"924e2e83e93f2560\": {\r\n        \"stream\": {\r\n            \"bytes_recieved\": 385,\r\n            \"entries_received\": 5,\r\n            \"last_index_received\": 18307\r\n        }\r\n    }\r\n}\r\nunihorn@CoreOS ~/g/s/g/a/kafka> curl http://127.0.0.1:4003/v2/stats/transport | python -m json.tool\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100   200    0   200    0     0   131k      0 --:--:-- --:--:-- --:--:--  195k\r\n{\r\n    \"6e3bd23ae5f1eae0\": {\r\n        \"stream\": {\r\n            \"bytes_sent\": 1078,\r\n            \"entries_sent\": 14,\r\n            \"last_index_sent\": 18316\r\n        }\r\n    },\r\n    \"a8266ecf031671f3\": {\r\n        \"stream\": {\r\n            \"bytes_sent\": 1078,\r\n            \"entries_sent\": 14,\r\n            \"last_index_sent\": 18316\r\n        }\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/69639432","html_url":"https://github.com/coreos/etcd/pull/2060#issuecomment-69639432","issue_url":"https://api.github.com/repos/coreos/etcd/issues/2060","id":69639432,"user":{"login":"xiang90","id":4479947,"avatar_url":"https://avatars.githubusercontent.com/u/4479947?v=3","gravatar_id":"","url":"https://api.github.com/users/xiang90","html_url":"https://github.com/xiang90","followers_url":"https://api.github.com/users/xiang90/followers","following_url":"https://api.github.com/users/xiang90/following{/other_user}","gists_url":"https://api.github.com/users/xiang90/gists{/gist_id}","starred_url":"https://api.github.com/users/xiang90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiang90/subscriptions","organizations_url":"https://api.github.com/users/xiang90/orgs","repos_url":"https://api.github.com/users/xiang90/repos","events_url":"https://api.github.com/users/xiang90/events{/privacy}","received_events_url":"https://api.github.com/users/xiang90/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T20:26:38Z","updated_at":"2015-01-12T20:26:38Z","body":"@yichengq How about this:\r\nhaving a global group called etcd.\r\neach etcd member has a subgroup named as its id. \r\nthen we do not need to pass the group thing around."}}