{"action":"created","comment":{"url":"https://api.github.com/repos/DBCDK/holdings-items/pulls/comments/202246227","pull_request_review_id":136908757,"id":202246227,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjI0NjIyNw==","diff_hunk":"@@ -0,0 +1,113 @@\n+/*\n+ * Copyright (C) 2018 DBC A/S (http://dbc.dk/)\n+ *\n+ * This is part of holdings-items\n+ *\n+ * holdings-items is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU Affero General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * holdings-items is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU Affero General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Affero General Public License\n+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+ */\n+package dk.dbc.holdingsitems.kafkabridge.monitor;\n+\n+import com.codahale.metrics.Counter;\n+import com.codahale.metrics.JmxReporter;\n+import com.codahale.metrics.Meter;\n+import com.codahale.metrics.MetricRegistry;\n+import com.codahale.metrics.Timer;\n+import dk.dbc.holdingsitems.kafkabridge.Config;\n+//import dk.dbc.holdingsitems.indexer.Config;\n+import java.lang.reflect.Member;\n+import javax.annotation.PostConstruct;\n+import javax.annotation.PreDestroy;\n+import javax.ejb.Singleton;\n+import javax.ejb.Startup;\n+import javax.enterprise.inject.Produces;\n+import javax.enterprise.inject.spi.InjectionPoint;\n+import javax.inject.Inject;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+/**\n+ *\n+ * @author DBC {@literal <dbc.dk>}\n+ */\n+@Singleton\n+@Startup\n+public class JmxMetrics {","path":"kafka-bridge/src/main/java/dk/dbc/holdingsitems/kafkabridge/monitor/JmxMetrics.java","position":45,"original_position":45,"commit_id":"7d5eae5abaacba0754eed66446f83116e0e78ce7","original_commit_id":"7d5eae5abaacba0754eed66446f83116e0e78ce7","user":{"login":"mb-dbc-dk","id":1897553,"node_id":"MDQ6VXNlcjE4OTc1NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1897553?v=4","gravatar_id":"","url":"https://api.github.com/users/mb-dbc-dk","html_url":"https://github.com/mb-dbc-dk","followers_url":"https://api.github.com/users/mb-dbc-dk/followers","following_url":"https://api.github.com/users/mb-dbc-dk/following{/other_user}","gists_url":"https://api.github.com/users/mb-dbc-dk/gists{/gist_id}","starred_url":"https://api.github.com/users/mb-dbc-dk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mb-dbc-dk/subscriptions","organizations_url":"https://api.github.com/users/mb-dbc-dk/orgs","repos_url":"https://api.github.com/users/mb-dbc-dk/repos","events_url":"https://api.github.com/users/mb-dbc-dk/events{/privacy}","received_events_url":"https://api.github.com/users/mb-dbc-dk/received_events","type":"User","site_admin":false},"body":"Jag har lidt en plan... ;-)","created_at":"2018-07-13T05:22:16Z","updated_at":"2018-07-13T05:22:17Z","html_url":"https://github.com/DBCDK/holdings-items/pull/5#discussion_r202246227","pull_request_url":"https://api.github.com/repos/DBCDK/holdings-items/pulls/5","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/DBCDK/holdings-items/pulls/comments/202246227"},"html":{"href":"https://github.com/DBCDK/holdings-items/pull/5#discussion_r202246227"},"pull_request":{"href":"https://api.github.com/repos/DBCDK/holdings-items/pulls/5"}},"in_reply_to_id":201953747},"pull_request":{"url":"https://api.github.com/repos/DBCDK/holdings-items/pulls/5","id":200637769,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwNjM3NzY5","html_url":"https://github.com/DBCDK/holdings-items/pull/5","diff_url":"https://github.com/DBCDK/holdings-items/pull/5.diff","patch_url":"https://github.com/DBCDK/holdings-items/pull/5.patch","issue_url":"https://api.github.com/repos/DBCDK/holdings-items/issues/5","number":5,"state":"open","locked":false,"title":"Queue changes to items as json, and send to kafka","user":{"login":"mb-dbc-dk","id":1897553,"node_id":"MDQ6VXNlcjE4OTc1NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1897553?v=4","gravatar_id":"","url":"https://api.github.com/users/mb-dbc-dk","html_url":"https://github.com/mb-dbc-dk","followers_url":"https://api.github.com/users/mb-dbc-dk/followers","following_url":"https://api.github.com/users/mb-dbc-dk/following{/other_user}","gists_url":"https://api.github.com/users/mb-dbc-dk/gists{/gist_id}","starred_url":"https://api.github.com/users/mb-dbc-dk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mb-dbc-dk/subscriptions","organizations_url":"https://api.github.com/users/mb-dbc-dk/orgs","repos_url":"https://api.github.com/users/mb-dbc-dk/repos","events_url":"https://api.github.com/users/mb-dbc-dk/events{/privacy}","received_events_url":"https://api.github.com/users/mb-dbc-dk/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-11T09:25:16Z","updated_at":"2018-07-13T05:22:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"528c236639b2ea92c071300f9baa961e21473526","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DBCDK/holdings-items/pulls/5/commits","review_comments_url":"https://api.github.com/repos/DBCDK/holdings-items/pulls/5/comments","review_comment_url":"https://api.github.com/repos/DBCDK/holdings-items/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DBCDK/holdings-items/issues/5/comments","statuses_url":"https://api.github.com/repos/DBCDK/holdings-items/statuses/7d5eae5abaacba0754eed66446f83116e0e78ce7","head":{"label":"DBCDK:json-queue","ref":"json-queue","sha":"7d5eae5abaacba0754eed66446f83116e0e78ce7","user":{"login":"DBCDK","id":555633,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1NTYzMw==","avatar_url":"https://avatars0.githubusercontent.com/u/555633?v=4","gravatar_id":"","url":"https://api.github.com/users/DBCDK","html_url":"https://github.com/DBCDK","followers_url":"https://api.github.com/users/DBCDK/followers","following_url":"https://api.github.com/users/DBCDK/following{/other_user}","gists_url":"https://api.github.com/users/DBCDK/gists{/gist_id}","starred_url":"https://api.github.com/users/DBCDK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DBCDK/subscriptions","organizations_url":"https://api.github.com/users/DBCDK/orgs","repos_url":"https://api.github.com/users/DBCDK/repos","events_url":"https://api.github.com/users/DBCDK/events{/privacy}","received_events_url":"https://api.github.com/users/DBCDK/received_events","type":"Organization","site_admin":false},"repo":{"id":124209374,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQyMDkzNzQ=","name":"holdings-items","full_name":"DBCDK/holdings-items","owner":{"login":"DBCDK","id":555633,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1NTYzMw==","avatar_url":"https://avatars0.githubusercontent.com/u/555633?v=4","gravatar_id":"","url":"https://api.github.com/users/DBCDK","html_url":"https://github.com/DBCDK","followers_url":"https://api.github.com/users/DBCDK/followers","following_url":"https://api.github.com/users/DBCDK/following{/other_user}","gists_url":"https://api.github.com/users/DBCDK/gists{/gist_id}","starred_url":"https://api.github.com/users/DBCDK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DBCDK/subscriptions","organizations_url":"https://api.github.com/users/DBCDK/orgs","repos_url":"https://api.github.com/users/DBCDK/repos","events_url":"https://api.github.com/users/DBCDK/events{/privacy}","received_events_url":"https://api.github.com/users/DBCDK/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DBCDK/holdings-items","description":null,"fork":false,"url":"https://api.github.com/repos/DBCDK/holdings-items","forks_url":"https://api.github.com/repos/DBCDK/holdings-items/forks","keys_url":"https://api.github.com/repos/DBCDK/holdings-items/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DBCDK/holdings-items/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DBCDK/holdings-items/teams","hooks_url":"https://api.github.com/repos/DBCDK/holdings-items/hooks","issue_events_url":"https://api.github.com/repos/DBCDK/holdings-items/issues/events{/number}","events_url":"https://api.github.com/repos/DBCDK/holdings-items/events","assignees_url":"https://api.github.com/repos/DBCDK/holdings-items/assignees{/user}","branches_url":"https://api.github.com/repos/DBCDK/holdings-items/branches{/branch}","tags_url":"https://api.github.com/repos/DBCDK/holdings-items/tags","blobs_url":"https://api.github.com/repos/DBCDK/holdings-items/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DBCDK/holdings-items/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DBCDK/holdings-items/git/refs{/sha}","trees_url":"https://api.github.com/repos/DBCDK/holdings-items/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DBCDK/holdings-items/statuses/{sha}","languages_url":"https://api.github.com/repos/DBCDK/holdings-items/languages","stargazers_url":"https://api.github.com/repos/DBCDK/holdings-items/stargazers","contributors_url":"https://api.github.com/repos/DBCDK/holdings-items/contributors","subscribers_url":"https://api.github.com/repos/DBCDK/holdings-items/subscribers","subscription_url":"https://api.github.com/repos/DBCDK/holdings-items/subscription","commits_url":"https://api.github.com/repos/DBCDK/holdings-items/commits{/sha}","git_commits_url":"https://api.github.com/repos/DBCDK/holdings-items/git/commits{/sha}","comments_url":"https://api.github.com/repos/DBCDK/holdings-items/comments{/number}","issue_comment_url":"https://api.github.com/repos/DBCDK/holdings-items/issues/comments{/number}","contents_url":"https://api.github.com/repos/DBCDK/holdings-items/contents/{+path}","compare_url":"https://api.github.com/repos/DBCDK/holdings-items/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DBCDK/holdings-items/merges","archive_url":"https://api.github.com/repos/DBCDK/holdings-items/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DBCDK/holdings-items/downloads","issues_url":"https://api.github.com/repos/DBCDK/holdings-items/issues{/number}","pulls_url":"https://api.github.com/repos/DBCDK/holdings-items/pulls{/number}","milestones_url":"https://api.github.com/repos/DBCDK/holdings-items/milestones{/number}","notifications_url":"https://api.github.com/repos/DBCDK/holdings-items/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DBCDK/holdings-items/labels{/name}","releases_url":"https://api.github.com/repos/DBCDK/holdings-items/releases{/id}","deployments_url":"https://api.github.com/repos/DBCDK/holdings-items/deployments","created_at":"2018-03-07T09:07:50Z","updated_at":"2018-06-27T08:24:25Z","pushed_at":"2018-07-11T09:25:17Z","git_url":"git://github.com/DBCDK/holdings-items.git","ssh_url":"git@github.com:DBCDK/holdings-items.git","clone_url":"https://github.com/DBCDK/holdings-items.git","svn_url":"https://github.com/DBCDK/holdings-items","homepage":null,"size":237,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"DBCDK:master","ref":"master","sha":"6bcecb11c683c7f0bc3e67ec4548687935852427","user":{"login":"DBCDK","id":555633,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1NTYzMw==","avatar_url":"https://avatars0.githubusercontent.com/u/555633?v=4","gravatar_id":"","url":"https://api.github.com/users/DBCDK","html_url":"https://github.com/DBCDK","followers_url":"https://api.github.com/users/DBCDK/followers","following_url":"https://api.github.com/users/DBCDK/following{/other_user}","gists_url":"https://api.github.com/users/DBCDK/gists{/gist_id}","starred_url":"https://api.github.com/users/DBCDK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DBCDK/subscriptions","organizations_url":"https://api.github.com/users/DBCDK/orgs","repos_url":"https://api.github.com/users/DBCDK/repos","events_url":"https://api.github.com/users/DBCDK/events{/privacy}","received_events_url":"https://api.github.com/users/DBCDK/received_events","type":"Organization","site_admin":false},"repo":{"id":124209374,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQyMDkzNzQ=","name":"holdings-items","full_name":"DBCDK/holdings-items","owner":{"login":"DBCDK","id":555633,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1NTYzMw==","avatar_url":"https://avatars0.githubusercontent.com/u/555633?v=4","gravatar_id":"","url":"https://api.github.com/users/DBCDK","html_url":"https://github.com/DBCDK","followers_url":"https://api.github.com/users/DBCDK/followers","following_url":"https://api.github.com/users/DBCDK/following{/other_user}","gists_url":"https://api.github.com/users/DBCDK/gists{/gist_id}","starred_url":"https://api.github.com/users/DBCDK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DBCDK/subscriptions","organizations_url":"https://api.github.com/users/DBCDK/orgs","repos_url":"https://api.github.com/users/DBCDK/repos","events_url":"https://api.github.com/users/DBCDK/events{/privacy}","received_events_url":"https://api.github.com/users/DBCDK/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DBCDK/holdings-items","description":null,"fork":false,"url":"https://api.github.com/repos/DBCDK/holdings-items","forks_url":"https://api.github.com/repos/DBCDK/holdings-items/forks","keys_url":"https://api.github.com/repos/DBCDK/holdings-items/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DBCDK/holdings-items/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DBCDK/holdings-items/teams","hooks_url":"https://api.github.com/repos/DBCDK/holdings-items/hooks","issue_events_url":"https://api.github.com/repos/DBCDK/holdings-items/issues/events{/number}","events_url":"https://api.github.com/repos/DBCDK/holdings-items/events","assignees_url":"https://api.github.com/repos/DBCDK/holdings-items/assignees{/user}","branches_url":"https://api.github.com/repos/DBCDK/holdings-items/branches{/branch}","tags_url":"https://api.github.com/repos/DBCDK/holdings-items/tags","blobs_url":"https://api.github.com/repos/DBCDK/holdings-items/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DBCDK/holdings-items/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DBCDK/holdings-items/git/refs{/sha}","trees_url":"https://api.github.com/repos/DBCDK/holdings-items/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DBCDK/holdings-items/statuses/{sha}","languages_url":"https://api.github.com/repos/DBCDK/holdings-items/languages","stargazers_url":"https://api.github.com/repos/DBCDK/holdings-items/stargazers","contributors_url":"https://api.github.com/repos/DBCDK/holdings-items/contributors","subscribers_url":"https://api.github.com/repos/DBCDK/holdings-items/subscribers","subscription_url":"https://api.github.com/repos/DBCDK/holdings-items/subscription","commits_url":"https://api.github.com/repos/DBCDK/holdings-items/commits{/sha}","git_commits_url":"https://api.github.com/repos/DBCDK/holdings-items/git/commits{/sha}","comments_url":"https://api.github.com/repos/DBCDK/holdings-items/comments{/number}","issue_comment_url":"https://api.github.com/repos/DBCDK/holdings-items/issues/comments{/number}","contents_url":"https://api.github.com/repos/DBCDK/holdings-items/contents/{+path}","compare_url":"https://api.github.com/repos/DBCDK/holdings-items/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DBCDK/holdings-items/merges","archive_url":"https://api.github.com/repos/DBCDK/holdings-items/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DBCDK/holdings-items/downloads","issues_url":"https://api.github.com/repos/DBCDK/holdings-items/issues{/number}","pulls_url":"https://api.github.com/repos/DBCDK/holdings-items/pulls{/number}","milestones_url":"https://api.github.com/repos/DBCDK/holdings-items/milestones{/number}","notifications_url":"https://api.github.com/repos/DBCDK/holdings-items/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DBCDK/holdings-items/labels{/name}","releases_url":"https://api.github.com/repos/DBCDK/holdings-items/releases{/id}","deployments_url":"https://api.github.com/repos/DBCDK/holdings-items/deployments","created_at":"2018-03-07T09:07:50Z","updated_at":"2018-06-27T08:24:25Z","pushed_at":"2018-07-11T09:25:17Z","git_url":"git://github.com/DBCDK/holdings-items.git","ssh_url":"git@github.com:DBCDK/holdings-items.git","clone_url":"https://github.com/DBCDK/holdings-items.git","svn_url":"https://github.com/DBCDK/holdings-items","homepage":null,"size":237,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DBCDK/holdings-items/pulls/5"},"html":{"href":"https://github.com/DBCDK/holdings-items/pull/5"},"issue":{"href":"https://api.github.com/repos/DBCDK/holdings-items/issues/5"},"comments":{"href":"https://api.github.com/repos/DBCDK/holdings-items/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/DBCDK/holdings-items/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/DBCDK/holdings-items/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DBCDK/holdings-items/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/DBCDK/holdings-items/statuses/7d5eae5abaacba0754eed66446f83116e0e78ce7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mb-dbc-dk"}}