{"action":"created","comment":{"url":"https://api.github.com/repos/prometheus/client_java/pulls/comments/31033442","id":31033442,"diff_hunk":"@@ -0,0 +1,93 @@\n+package io.prometheus.client.log4j;\n+\n+import io.prometheus.client.CollectorRegistry;\n+import io.prometheus.client.Counter;\n+import org.apache.log4j.Appender;\n+import org.apache.log4j.AppenderSkeleton;\n+import org.apache.log4j.Level;\n+import org.apache.log4j.spi.LoggingEvent;\n+\n+\n+public class InstrumentedAppender extends AppenderSkeleton {\n+    \n+\tprivate final CollectorRegistry registry;\n+\n+    private Counter all;","path":"simpleclient_log4j/src/main/java/io/prometheus/client/log4j/InstrumentedAppender.java","position":15,"original_position":15,"commit_id":"6aecd681bf528d8f9ffeebc441890fe2897db423","original_commit_id":"6aecd681bf528d8f9ffeebc441890fe2897db423","user":{"login":"willfleury","id":10163928,"avatar_url":"https://avatars.githubusercontent.com/u/10163928?v=3","gravatar_id":"","url":"https://api.github.com/users/willfleury","html_url":"https://github.com/willfleury","followers_url":"https://api.github.com/users/willfleury/followers","following_url":"https://api.github.com/users/willfleury/following{/other_user}","gists_url":"https://api.github.com/users/willfleury/gists{/gist_id}","starred_url":"https://api.github.com/users/willfleury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willfleury/subscriptions","organizations_url":"https://api.github.com/users/willfleury/orgs","repos_url":"https://api.github.com/users/willfleury/repos","events_url":"https://api.github.com/users/willfleury/events{/privacy}","received_events_url":"https://api.github.com/users/willfleury/received_events","type":"User","site_admin":false},"body":"Yeah, when using labels it makes sense","created_at":"2015-05-26T13:41:24Z","updated_at":"2015-05-26T13:41:24Z","html_url":"https://github.com/prometheus/client_java/pull/74#discussion_r31033442","pull_request_url":"https://api.github.com/repos/prometheus/client_java/pulls/74","_links":{"self":{"href":"https://api.github.com/repos/prometheus/client_java/pulls/comments/31033442"},"html":{"href":"https://github.com/prometheus/client_java/pull/74#discussion_r31033442"},"pull_request":{"href":"https://api.github.com/repos/prometheus/client_java/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/prometheus/client_java/pulls/74","id":36194024,"html_url":"https://github.com/prometheus/client_java/pull/74","diff_url":"https://github.com/prometheus/client_java/pull/74.diff","patch_url":"https://github.com/prometheus/client_java/pull/74.patch","issue_url":"https://api.github.com/repos/prometheus/client_java/issues/74","number":74,"state":"open","locked":false,"title":"add support for log4j and logback appenders","user":{"login":"willfleury","id":10163928,"avatar_url":"https://avatars.githubusercontent.com/u/10163928?v=3","gravatar_id":"","url":"https://api.github.com/users/willfleury","html_url":"https://github.com/willfleury","followers_url":"https://api.github.com/users/willfleury/followers","following_url":"https://api.github.com/users/willfleury/following{/other_user}","gists_url":"https://api.github.com/users/willfleury/gists{/gist_id}","starred_url":"https://api.github.com/users/willfleury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willfleury/subscriptions","organizations_url":"https://api.github.com/users/willfleury/orgs","repos_url":"https://api.github.com/users/willfleury/repos","events_url":"https://api.github.com/users/willfleury/events{/privacy}","received_events_url":"https://api.github.com/users/willfleury/received_events","type":"User","site_admin":false},"body":"Also cleaned up the poms a bit","created_at":"2015-05-26T11:45:19Z","updated_at":"2015-05-26T13:41:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"faa3941024c016e90d6d4f0da8f331a3dd653b82","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/prometheus/client_java/pulls/74/commits","review_comments_url":"https://api.github.com/repos/prometheus/client_java/pulls/74/comments","review_comment_url":"https://api.github.com/repos/prometheus/client_java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prometheus/client_java/issues/74/comments","statuses_url":"https://api.github.com/repos/prometheus/client_java/statuses/6aecd681bf528d8f9ffeebc441890fe2897db423","head":{"label":"willfleury:master","ref":"master","sha":"6aecd681bf528d8f9ffeebc441890fe2897db423","user":{"login":"willfleury","id":10163928,"avatar_url":"https://avatars.githubusercontent.com/u/10163928?v=3","gravatar_id":"","url":"https://api.github.com/users/willfleury","html_url":"https://github.com/willfleury","followers_url":"https://api.github.com/users/willfleury/followers","following_url":"https://api.github.com/users/willfleury/following{/other_user}","gists_url":"https://api.github.com/users/willfleury/gists{/gist_id}","starred_url":"https://api.github.com/users/willfleury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willfleury/subscriptions","organizations_url":"https://api.github.com/users/willfleury/orgs","repos_url":"https://api.github.com/users/willfleury/repos","events_url":"https://api.github.com/users/willfleury/events{/privacy}","received_events_url":"https://api.github.com/users/willfleury/received_events","type":"User","site_admin":false},"repo":{"id":36292142,"name":"client_java","full_name":"willfleury/client_java","owner":{"login":"willfleury","id":10163928,"avatar_url":"https://avatars.githubusercontent.com/u/10163928?v=3","gravatar_id":"","url":"https://api.github.com/users/willfleury","html_url":"https://github.com/willfleury","followers_url":"https://api.github.com/users/willfleury/followers","following_url":"https://api.github.com/users/willfleury/following{/other_user}","gists_url":"https://api.github.com/users/willfleury/gists{/gist_id}","starred_url":"https://api.github.com/users/willfleury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willfleury/subscriptions","organizations_url":"https://api.github.com/users/willfleury/orgs","repos_url":"https://api.github.com/users/willfleury/repos","events_url":"https://api.github.com/users/willfleury/events{/privacy}","received_events_url":"https://api.github.com/users/willfleury/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/willfleury/client_java","description":"Prometheus instrumentation library for JVM applications","fork":true,"url":"https://api.github.com/repos/willfleury/client_java","forks_url":"https://api.github.com/repos/willfleury/client_java/forks","keys_url":"https://api.github.com/repos/willfleury/client_java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willfleury/client_java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willfleury/client_java/teams","hooks_url":"https://api.github.com/repos/willfleury/client_java/hooks","issue_events_url":"https://api.github.com/repos/willfleury/client_java/issues/events{/number}","events_url":"https://api.github.com/repos/willfleury/client_java/events","assignees_url":"https://api.github.com/repos/willfleury/client_java/assignees{/user}","branches_url":"https://api.github.com/repos/willfleury/client_java/branches{/branch}","tags_url":"https://api.github.com/repos/willfleury/client_java/tags","blobs_url":"https://api.github.com/repos/willfleury/client_java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willfleury/client_java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willfleury/client_java/git/refs{/sha}","trees_url":"https://api.github.com/repos/willfleury/client_java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willfleury/client_java/statuses/{sha}","languages_url":"https://api.github.com/repos/willfleury/client_java/languages","stargazers_url":"https://api.github.com/repos/willfleury/client_java/stargazers","contributors_url":"https://api.github.com/repos/willfleury/client_java/contributors","subscribers_url":"https://api.github.com/repos/willfleury/client_java/subscribers","subscription_url":"https://api.github.com/repos/willfleury/client_java/subscription","commits_url":"https://api.github.com/repos/willfleury/client_java/commits{/sha}","git_commits_url":"https://api.github.com/repos/willfleury/client_java/git/commits{/sha}","comments_url":"https://api.github.com/repos/willfleury/client_java/comments{/number}","issue_comment_url":"https://api.github.com/repos/willfleury/client_java/issues/comments{/number}","contents_url":"https://api.github.com/repos/willfleury/client_java/contents/{+path}","compare_url":"https://api.github.com/repos/willfleury/client_java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willfleury/client_java/merges","archive_url":"https://api.github.com/repos/willfleury/client_java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willfleury/client_java/downloads","issues_url":"https://api.github.com/repos/willfleury/client_java/issues{/number}","pulls_url":"https://api.github.com/repos/willfleury/client_java/pulls{/number}","milestones_url":"https://api.github.com/repos/willfleury/client_java/milestones{/number}","notifications_url":"https://api.github.com/repos/willfleury/client_java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willfleury/client_java/labels{/name}","releases_url":"https://api.github.com/repos/willfleury/client_java/releases{/id}","created_at":"2015-05-26T11:41:52Z","updated_at":"2015-05-26T11:41:52Z","pushed_at":"2015-05-26T11:49:57Z","git_url":"git://github.com/willfleury/client_java.git","ssh_url":"git@github.com:willfleury/client_java.git","clone_url":"https://github.com/willfleury/client_java.git","svn_url":"https://github.com/willfleury/client_java","homepage":"","size":1960,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"prometheus:master","ref":"master","sha":"800f7b83dc0fad405cc8347ebdc6b5913d891953","user":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"repo":{"id":7997879,"name":"client_java","full_name":"prometheus/client_java","owner":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prometheus/client_java","description":"Prometheus instrumentation library for JVM applications","fork":false,"url":"https://api.github.com/repos/prometheus/client_java","forks_url":"https://api.github.com/repos/prometheus/client_java/forks","keys_url":"https://api.github.com/repos/prometheus/client_java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prometheus/client_java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prometheus/client_java/teams","hooks_url":"https://api.github.com/repos/prometheus/client_java/hooks","issue_events_url":"https://api.github.com/repos/prometheus/client_java/issues/events{/number}","events_url":"https://api.github.com/repos/prometheus/client_java/events","assignees_url":"https://api.github.com/repos/prometheus/client_java/assignees{/user}","branches_url":"https://api.github.com/repos/prometheus/client_java/branches{/branch}","tags_url":"https://api.github.com/repos/prometheus/client_java/tags","blobs_url":"https://api.github.com/repos/prometheus/client_java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prometheus/client_java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prometheus/client_java/git/refs{/sha}","trees_url":"https://api.github.com/repos/prometheus/client_java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prometheus/client_java/statuses/{sha}","languages_url":"https://api.github.com/repos/prometheus/client_java/languages","stargazers_url":"https://api.github.com/repos/prometheus/client_java/stargazers","contributors_url":"https://api.github.com/repos/prometheus/client_java/contributors","subscribers_url":"https://api.github.com/repos/prometheus/client_java/subscribers","subscription_url":"https://api.github.com/repos/prometheus/client_java/subscription","commits_url":"https://api.github.com/repos/prometheus/client_java/commits{/sha}","git_commits_url":"https://api.github.com/repos/prometheus/client_java/git/commits{/sha}","comments_url":"https://api.github.com/repos/prometheus/client_java/comments{/number}","issue_comment_url":"https://api.github.com/repos/prometheus/client_java/issues/comments{/number}","contents_url":"https://api.github.com/repos/prometheus/client_java/contents/{+path}","compare_url":"https://api.github.com/repos/prometheus/client_java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prometheus/client_java/merges","archive_url":"https://api.github.com/repos/prometheus/client_java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prometheus/client_java/downloads","issues_url":"https://api.github.com/repos/prometheus/client_java/issues{/number}","pulls_url":"https://api.github.com/repos/prometheus/client_java/pulls{/number}","milestones_url":"https://api.github.com/repos/prometheus/client_java/milestones{/number}","notifications_url":"https://api.github.com/repos/prometheus/client_java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prometheus/client_java/labels{/name}","releases_url":"https://api.github.com/repos/prometheus/client_java/releases{/id}","created_at":"2013-02-03T22:55:49Z","updated_at":"2015-05-20T08:20:52Z","pushed_at":"2015-05-26T11:49:57Z","git_url":"git://github.com/prometheus/client_java.git","ssh_url":"git@github.com:prometheus/client_java.git","clone_url":"https://github.com/prometheus/client_java.git","svn_url":"https://github.com/prometheus/client_java","homepage":"","size":1960,"stargazers_count":15,"watchers_count":15,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":9,"mirror_url":null,"open_issues_count":7,"forks":9,"open_issues":7,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prometheus/client_java/pulls/74"},"html":{"href":"https://github.com/prometheus/client_java/pull/74"},"issue":{"href":"https://api.github.com/repos/prometheus/client_java/issues/74"},"comments":{"href":"https://api.github.com/repos/prometheus/client_java/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/prometheus/client_java/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/prometheus/client_java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prometheus/client_java/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/prometheus/client_java/statuses/6aecd681bf528d8f9ffeebc441890fe2897db423"}}}}