{"action":"created","issue":{"url":"https://api.github.com/repos/apache/flink/issues/2146","repository_url":"https://api.github.com/repos/apache/flink","labels_url":"https://api.github.com/repos/apache/flink/issues/2146/labels{/name}","comments_url":"https://api.github.com/repos/apache/flink/issues/2146/comments","events_url":"https://api.github.com/repos/apache/flink/issues/2146/events","html_url":"https://github.com/apache/flink/pull/2146","id":161652922,"number":2146,"title":"[FLINK-1550/FLINK-4057] Add JobManager Metrics","user":{"login":"zentol","id":5725237,"avatar_url":"https://avatars.githubusercontent.com/u/5725237?v=3","gravatar_id":"","url":"https://api.github.com/users/zentol","html_url":"https://github.com/zentol","followers_url":"https://api.github.com/users/zentol/followers","following_url":"https://api.github.com/users/zentol/following{/other_user}","gists_url":"https://api.github.com/users/zentol/gists{/gist_id}","starred_url":"https://api.github.com/users/zentol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zentol/subscriptions","organizations_url":"https://api.github.com/users/zentol/orgs","repos_url":"https://api.github.com/users/zentol/repos","events_url":"https://api.github.com/users/zentol/events{/privacy}","received_events_url":"https://api.github.com/users/zentol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-06-22T11:04:48Z","updated_at":"2016-06-29T11:41:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/2146","html_url":"https://github.com/apache/flink/pull/2146","diff_url":"https://github.com/apache/flink/pull/2146.diff","patch_url":"https://github.com/apache/flink/pull/2146.patch"},"body":"This PR relies on #2145.\r\n\r\nThis PR exposes several Metrics on the JobManager.\r\n\r\nThe first change made was the separation of the \"metrics.jmx.port\" key into 2 version, one 1 Task- and JobManagers respectively. (\"(job/task)manager.metrics.jmx.port\") This was necessary since otherwise you could never access TM metrics in a local setup.\r\n\r\nNext up the metric infrastructure was introduced in the JM.\r\n\r\nThis includes \r\n* defining a new Scope format key (metrics.scope.jm) and default Scope format\r\n* add a JobManagerMetricGroup\r\n* refactoring the old TaskManager(Job)Group so that the JobMetricGroup can be used by both JM and TM\r\n* creating/teardown MetricRegistry/JobManagerMetricGroup in the JobManager\r\n\r\nNow metrics could be added.\r\n\r\nIn the JobManager scope we have:\r\n* JMV metrics, which are a copy&paste from the TM\r\n* availableSlots, totalSlots\r\n* numRegisteredTaskManagers\r\n* numRunningJobs\r\n\r\nAdding these was straight-forward.\r\n\r\nIn the Job scope we have\r\n* lastCheckpointSize\r\n* lastCheckpointDuration\r\n\r\nFor this we have to pass a metricGroup through the ExecutionGraph into the CheckpointCoordinator."},"comment":{"url":"https://api.github.com/repos/apache/flink/issues/comments/229332024","html_url":"https://github.com/apache/flink/pull/2146#issuecomment-229332024","issue_url":"https://api.github.com/repos/apache/flink/issues/2146","id":229332024,"user":{"login":"tillrohrmann","id":5756858,"avatar_url":"https://avatars.githubusercontent.com/u/5756858?v=3","gravatar_id":"","url":"https://api.github.com/users/tillrohrmann","html_url":"https://github.com/tillrohrmann","followers_url":"https://api.github.com/users/tillrohrmann/followers","following_url":"https://api.github.com/users/tillrohrmann/following{/other_user}","gists_url":"https://api.github.com/users/tillrohrmann/gists{/gist_id}","starred_url":"https://api.github.com/users/tillrohrmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tillrohrmann/subscriptions","organizations_url":"https://api.github.com/users/tillrohrmann/orgs","repos_url":"https://api.github.com/users/tillrohrmann/repos","events_url":"https://api.github.com/users/tillrohrmann/events{/privacy}","received_events_url":"https://api.github.com/users/tillrohrmann/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T11:41:31Z","updated_at":"2016-06-29T11:41:31Z","body":"The `JobManagerHARecoveryTest.testJobRecoveryWhenLosingLeadership` uses a `BlockingInvokable`, for example."}}
{"actor":{"display_login":"tillrohrmann"}}