{"action":"opened","number":555,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/pulls/555","id":168494882,"html_url":"https://github.com/apache/incubator-servicecomb-java-chassis/pull/555","diff_url":"https://github.com/apache/incubator-servicecomb-java-chassis/pull/555.diff","patch_url":"https://github.com/apache/incubator-servicecomb-java-chassis/pull/555.patch","issue_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/issues/555","number":555,"state":"open","locked":false,"title":"[SCB-327] Update metrics publish data module","user":{"login":"zhengyangyong","id":374335,"avatar_url":"https://avatars0.githubusercontent.com/u/374335?v=4","gravatar_id":"","url":"https://api.github.com/users/zhengyangyong","html_url":"https://github.com/zhengyangyong","followers_url":"https://api.github.com/users/zhengyangyong/followers","following_url":"https://api.github.com/users/zhengyangyong/following{/other_user}","gists_url":"https://api.github.com/users/zhengyangyong/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengyangyong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengyangyong/subscriptions","organizations_url":"https://api.github.com/users/zhengyangyong/orgs","repos_url":"https://api.github.com/users/zhengyangyong/repos","events_url":"https://api.github.com/users/zhengyangyong/events{/privacy}","received_events_url":"https://api.github.com/users/zhengyangyong/received_events","type":"User","site_admin":false},"body":"Follow this checklist to help us incorporate your contribution quickly and easily:\r\n\r\n - [ ] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/SCB) filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.\r\n - [ ] Each commit in the pull request should have a meaningful subject line and body.\r\n - [ ] Format the pull request title like `[SCB-XXX] Fixes bug in ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA issue.\r\n - [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.\r\n - [ ] Run `mvn clean install` to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.\r\n - [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).\r\n\r\n---\r\nRe-organize comment of PR : https://github.com/apache/incubator-servicecomb-java-chassis/pull/550\r\nadjust metrics publish format to spring cloud netflix style\r\nBefore:\r\nservicecomb.instance.system.cpu.load\r\nservicecomb.instance.system.cpu.runningThreads\r\nservicecomb.instance.system.heap.init\r\nservicecomb.instance.system.heap.max\r\nservicecomb.instance.system.heap.commit\r\nservicecomb.instance.system.heap.used\r\nservicecomb.instance.system.nonHeap.init\r\nservicecomb.instance.system.nonHeap.max\r\nservicecomb.instance.system.nonHeap.commit\r\nservicecomb.instance.system.nonHeap.used\r\nservicecomb.instance &#124; operationName.producer.waitInQueue.count\r\nservicecomb.instance &#124; operationName.producer.lifeTimeInQueue.average\r\nservicecomb.instance &#124; operationName.producer.lifeTimeInQueue.max\r\nservicecomb.instance &#124; operationName.producer.lifeTimeInQueue.min\r\nservicecomb.instance &#124; operationName.producer.executionTime.average\r\nservicecomb.instance &#124; operationName.producer.executionTime.max\r\nservicecomb.instance &#124; operationName.producer.executionTime.min\r\nservicecomb.instance &#124; operationName.producer.producerLatency.average\r\nservicecomb.instance &#124; operationName.producer.producerLatency.max\r\nservicecomb.instance &#124; operationName.producer.producerLatency.min\r\nservicecomb.instance &#124; operationName.producer.producerCall.total\r\nservicecomb.instance &#124; operationName.producer.producerCall.tps\r\nservicecomb.instance &#124; operationName.consumer.consumerLatency.average\r\nservicecomb.instance &#124; operationName.consumer.consumerLatency.max\r\nservicecomb.instance &#124; operationName.consumer.consumerLatency.min\r\nservicecomb.instance &#124; operationName.consumer.consumerCall.total\r\nservicecomb.instance &#124; operationName.consumer.consumerCall.tps\r\n\r\nCurrent:\r\njvm(statistic=gauge,name={name})\r\n{name} include :\r\n**cpuLoad,cpuRunningThreads,heapInit,heapMax,heapCommit,\r\nheapUsed,nonHeapInit,nonHeapMax,nonHeapCommit,nonHeapUsed**\r\n\r\n\r\nservicecomb.invocation(operation={operationName},role={role},stage={stage},statistic={statistic},status={status})\r\n\r\n| TagName       | TagValue                  | \r\n| :---------- | :--------------------- |\r\n| operation | Operation Name |\r\n| role | consume,producer |\r\n| stage | queue,execution,whole |\r\n| statistic | tps,totalCount,count,totalTime,max,waitInQueue (can compute latency = totalTime/count) |\r\n| status | statusCode like 200, 404 ... etc|\r\n\r\nA output sample:\r\n![tim 20180206161636](https://user-images.githubusercontent.com/374335/35859674-fa02673a-0b7b-11e8-9219-4bf0ab3a1c8a.png)","created_at":"2018-02-12T03:36:47Z","updated_at":"2018-02-12T03:36:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/pulls/555/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/pulls/555/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/issues/555/comments","statuses_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/statuses/feddcce8aa6b1817144c76a3863f8162d945c7d2","head":{"label":"zhengyangyong:SCB-327-2","ref":"SCB-327-2","sha":"feddcce8aa6b1817144c76a3863f8162d945c7d2","user":{"login":"zhengyangyong","id":374335,"avatar_url":"https://avatars0.githubusercontent.com/u/374335?v=4","gravatar_id":"","url":"https://api.github.com/users/zhengyangyong","html_url":"https://github.com/zhengyangyong","followers_url":"https://api.github.com/users/zhengyangyong/followers","following_url":"https://api.github.com/users/zhengyangyong/following{/other_user}","gists_url":"https://api.github.com/users/zhengyangyong/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengyangyong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengyangyong/subscriptions","organizations_url":"https://api.github.com/users/zhengyangyong/orgs","repos_url":"https://api.github.com/users/zhengyangyong/repos","events_url":"https://api.github.com/users/zhengyangyong/events{/privacy}","received_events_url":"https://api.github.com/users/zhengyangyong/received_events","type":"User","site_admin":false},"repo":{"id":111650806,"name":"ServiceComb-Java-Chassis","full_name":"zhengyangyong/ServiceComb-Java-Chassis","owner":{"login":"zhengyangyong","id":374335,"avatar_url":"https://avatars0.githubusercontent.com/u/374335?v=4","gravatar_id":"","url":"https://api.github.com/users/zhengyangyong","html_url":"https://github.com/zhengyangyong","followers_url":"https://api.github.com/users/zhengyangyong/followers","following_url":"https://api.github.com/users/zhengyangyong/following{/other_user}","gists_url":"https://api.github.com/users/zhengyangyong/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengyangyong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengyangyong/subscriptions","organizations_url":"https://api.github.com/users/zhengyangyong/orgs","repos_url":"https://api.github.com/users/zhengyangyong/repos","events_url":"https://api.github.com/users/zhengyangyong/events{/privacy}","received_events_url":"https://api.github.com/users/zhengyangyong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhengyangyong/ServiceComb-Java-Chassis","description":"ServiceComb Java Chassis is a Software Development Kit (SDK) for rapid development of microservices in Java, providing service registration, service discovery, dynamic routing, and service management features","fork":true,"url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis","forks_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/forks","keys_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/teams","hooks_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/hooks","issue_events_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/issues/events{/number}","events_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/events","assignees_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/assignees{/user}","branches_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/branches{/branch}","tags_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/tags","blobs_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/statuses/{sha}","languages_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/languages","stargazers_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/stargazers","contributors_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/contributors","subscribers_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/subscribers","subscription_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/subscription","commits_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/contents/{+path}","compare_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/merges","archive_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/downloads","issues_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/issues{/number}","pulls_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/pulls{/number}","milestones_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/milestones{/number}","notifications_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/labels{/name}","releases_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/releases{/id}","deployments_url":"https://api.github.com/repos/zhengyangyong/ServiceComb-Java-Chassis/deployments","created_at":"2017-11-22T07:30:21Z","updated_at":"2017-11-22T07:30:25Z","pushed_at":"2018-02-12T03:34:03Z","git_url":"git://github.com/zhengyangyong/ServiceComb-Java-Chassis.git","ssh_url":"git@github.com:zhengyangyong/ServiceComb-Java-Chassis.git","clone_url":"https://github.com/zhengyangyong/ServiceComb-Java-Chassis.git","svn_url":"https://github.com/zhengyangyong/ServiceComb-Java-Chassis","homepage":null,"size":7696,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"9720cfc5c9f7ea2e7902a821ef031203ddfd8808","user":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":91674936,"name":"incubator-servicecomb-java-chassis","full_name":"apache/incubator-servicecomb-java-chassis","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-servicecomb-java-chassis","description":"ServiceComb Java Chassis is a Software Development Kit (SDK) for rapid development of microservices in Java, providing service registration, service discovery, dynamic routing, and service management features","fork":false,"url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis","forks_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/forks","keys_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/teams","hooks_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/events","assignees_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/tags","blobs_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/subscription","commits_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/merges","archive_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/downloads","issues_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/deployments","created_at":"2017-05-18T09:29:30Z","updated_at":"2018-02-11T08:28:24Z","pushed_at":"2018-02-12T02:35:00Z","git_url":"git://github.com/apache/incubator-servicecomb-java-chassis.git","ssh_url":"git@github.com:apache/incubator-servicecomb-java-chassis.git","clone_url":"https://github.com/apache/incubator-servicecomb-java-chassis.git","svn_url":"https://github.com/apache/incubator-servicecomb-java-chassis","homepage":null,"size":7345,"stargazers_count":390,"watchers_count":390,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":227,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":227,"open_issues":34,"watchers":390,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/pulls/555"},"html":{"href":"https://github.com/apache/incubator-servicecomb-java-chassis/pull/555"},"issue":{"href":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/issues/555"},"comments":{"href":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/issues/555/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/pulls/555/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/pulls/555/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-servicecomb-java-chassis/statuses/feddcce8aa6b1817144c76a3863f8162d945c7d2"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":3,"additions":1191,"deletions":2700,"changed_files":83}}
{"actor":{"display_login":"zhengyangyong"}}