{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/22381","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/22381/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/22381/comments","events_url":"https://api.github.com/repos/apache/spark/issues/22381/events","html_url":"https://github.com/apache/spark/pull/22381","id":358629127,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MzE4OTMy","number":22381,"title":"[SPARK-25394][CORE] Add an application status metrics source","user":{"login":"skonto","id":7945591,"node_id":"MDQ6VXNlcjc5NDU1OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/7945591?v=4","gravatar_id":"","url":"https://api.github.com/users/skonto","html_url":"https://github.com/skonto","followers_url":"https://api.github.com/users/skonto/followers","following_url":"https://api.github.com/users/skonto/following{/other_user}","gists_url":"https://api.github.com/users/skonto/gists{/gist_id}","starred_url":"https://api.github.com/users/skonto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skonto/subscriptions","organizations_url":"https://api.github.com/users/skonto/orgs","repos_url":"https://api.github.com/users/skonto/repos","events_url":"https://api.github.com/users/skonto/events{/privacy}","received_events_url":"https://api.github.com/users/skonto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-10T13:43:17Z","updated_at":"2018-09-10T21:09:20Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/22381","html_url":"https://github.com/apache/spark/pull/22381","diff_url":"https://github.com/apache/spark/pull/22381.diff","patch_url":"https://github.com/apache/spark/pull/22381.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\n- Exposes several metrics regarding application status as a source, useful to scrape them via jmx instead of mining the metrics rest api.  Example use case: prometheus + jmx exporter.\r\n- Metrics are gathered when a job ends at the AppStatusListener side, could be more fine-grained but most metrics like tasks completed are also counted by executors. More metrics could be exposed in the future to avoid scraping executors in some scenarios.\r\n\r\n## How was this patch tested?\r\n\r\nThis was manually tested with jmx source enabled and prometheus server on k8s:\r\n![metrics](https://user-images.githubusercontent.com/7945591/45300945-63064d00-b518-11e8-812a-d9b4155ba0c0.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/420061913","html_url":"https://github.com/apache/spark/pull/22381#issuecomment-420061913","issue_url":"https://api.github.com/repos/apache/spark/issues/22381","id":420061913,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDA2MTkxMw==","user":{"login":"AmplabJenkins","id":4031291,"node_id":"MDQ6VXNlcjQwMzEyOTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4031291?v=4","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T21:09:20Z","updated_at":"2018-09-10T21:09:20Z","author_association":"NONE","body":"Merged build finished. Test PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}