{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/Sentinel/issues/167","repository_url":"https://api.github.com/repos/alibaba/Sentinel","labels_url":"https://api.github.com/repos/alibaba/Sentinel/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/Sentinel/issues/167/comments","events_url":"https://api.github.com/repos/alibaba/Sentinel/issues/167/events","html_url":"https://github.com/alibaba/Sentinel/pull/167","id":368135740,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxMzgwMjY5","number":167,"title":"抽象监控上报，增加推送到Prometheus的模块","user":{"login":"konglz","id":2261374,"node_id":"MDQ6VXNlcjIyNjEzNzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2261374?v=4","gravatar_id":"","url":"https://api.github.com/users/konglz","html_url":"https://github.com/konglz","followers_url":"https://api.github.com/users/konglz/followers","following_url":"https://api.github.com/users/konglz/following{/other_user}","gists_url":"https://api.github.com/users/konglz/gists{/gist_id}","starred_url":"https://api.github.com/users/konglz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konglz/subscriptions","organizations_url":"https://api.github.com/users/konglz/orgs","repos_url":"https://api.github.com/users/konglz/repos","events_url":"https://api.github.com/users/konglz/events{/privacy}","received_events_url":"https://api.github.com/users/konglz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-09T10:08:42Z","updated_at":"2018-10-09T10:08:49Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/alibaba/Sentinel/pulls/167","html_url":"https://github.com/alibaba/Sentinel/pull/167","diff_url":"https://github.com/alibaba/Sentinel/pull/167.diff","patch_url":"https://github.com/alibaba/Sentinel/pull/167.patch"},"body":"<!--  Thanks for submitting a pull request! Here are some tips for you:\r\n1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/Sentinel/blob/master/CONTRIBUTING.md\r\n2. Please make sure the PR has a corresponding issue.\r\n-->\r\n\r\n### Describe what this PR does / why we need it\r\n\r\n* 抽象监控上报\r\n\r\n* 增加推送到Prometheus的模块\r\n\r\n### Does this pull request fix one issue?\r\n\r\n<!--If that, add \"Fixes #xxxx\" below in the next line. For example, Fixes #15. Otherwise, add \"NONE\" -->\r\n\r\n### Describe how you did it\r\n\r\n* 抽象监控上报，修改了sentinel-core\r\n\r\n* 增加推送到Prometheus的模块：sentinel-transport-prometheus-push\r\n\r\n### Describe how to verify it\r\n\r\n* 配置好Prometheus Server和Prometheus  PushGateway\r\n\r\n* 增加一对JVM参数，例如：-Dsentinel.prometheus.gateway=127.0.0.1:9091 -Dsentinel.web.port=8080\r\n\r\n    * sentinel.prometheus.gateway是Prometheus  PushGateway的ip和端口号，不传默认取127.0.0.1:9091\r\n\r\n    * sentinel.web.port是应用的web端口号，如无web端口，随便传1个即可，不传默认取0\r\n\r\n* 在Prometheus Server上收到5个标签，分别是：\r\n\r\n    * SENTINEL_BLOCKED_QPS\r\n\r\n    * SENTINEL_EXCEPTION_COUNT\r\n\r\n    * SENTINEL_PASSED_QPS\r\n\r\n    * SENTINEL_RT\r\n\r\n    * SENTINEL_SUCCESS_QPS\r\n\r\n* 在Prometheus Server上看到，每个标签包含如下label：\r\n\r\n    * language=java\r\n\r\n    * appName\r\n\r\n    * host\r\n\r\n    * port\r\n\r\n    * instance=ip:port\r\n\r\n    * resource\r\n\r\n\r\n### Special notes for reviews"},"comment":{"url":"https://api.github.com/repos/alibaba/Sentinel/issues/comments/428136498","html_url":"https://github.com/alibaba/Sentinel/pull/167#issuecomment-428136498","issue_url":"https://api.github.com/repos/alibaba/Sentinel/issues/167","id":428136498,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODEzNjQ5OA==","user":{"login":"CLAassistant","id":11571300,"node_id":"MDQ6VXNlcjExNTcxMzAw","avatar_url":"https://avatars1.githubusercontent.com/u/11571300?v=4","gravatar_id":"","url":"https://api.github.com/users/CLAassistant","html_url":"https://github.com/CLAassistant","followers_url":"https://api.github.com/users/CLAassistant/followers","following_url":"https://api.github.com/users/CLAassistant/following{/other_user}","gists_url":"https://api.github.com/users/CLAassistant/gists{/gist_id}","starred_url":"https://api.github.com/users/CLAassistant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CLAassistant/subscriptions","organizations_url":"https://api.github.com/users/CLAassistant/orgs","repos_url":"https://api.github.com/users/CLAassistant/repos","events_url":"https://api.github.com/users/CLAassistant/events{/privacy}","received_events_url":"https://api.github.com/users/CLAassistant/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T10:08:49Z","updated_at":"2018-10-09T10:08:49Z","author_association":"NONE","body":"[![CLA assistant check](https://cla-assistant.io/pull/badge/not_signed)](https://cla-assistant.io/alibaba/Sentinel?pullRequest=167) <br/>Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our [Contributor License Agreement](https://cla-assistant.io/alibaba/Sentinel?pullRequest=167) before we can accept your contribution.<br/><sub>You have signed the CLA already but the status is still pending? Let us [recheck](https://cla-assistant.io/check/alibaba/Sentinel?pullRequest=167) it.</sub>"}}
{"actor":{"display_login":"CLAassistant"}}