{"action":"created","comment":{"url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/pulls/comments/232454787","pull_request_review_id":173664197,"id":232454787,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjQ1NDc4Nw==","diff_hunk":"@@ -68,12 +70,37 @@ server {\n       metric_connections:set(ngx.var.connections_reading, {\"reading\"})\n       metric_connections:set(ngx.var.connections_waiting, {\"waiting\"})\n       metric_connections:set(ngx.var.connections_writing, {\"writing\"})\n-      prometheus:collect()\n+      ngx.header.content_type = \"text/plain\"\n+      ngx.print(prometheus:collect())\n     ';\n   }\n }\n ```\n \n+Stream","path":"README.md","position":21,"original_position":21,"commit_id":"bf94aa760c68bada6d4d6315c0028a2ff6f9a537","original_commit_id":"bf94aa760c68bada6d4d6315c0028a2ff6f9a537","user":{"login":"stas-dubrovskyi","id":17026603,"node_id":"MDQ6VXNlcjE3MDI2NjAz","avatar_url":"https://avatars3.githubusercontent.com/u/17026603?v=4","gravatar_id":"","url":"https://api.github.com/users/stas-dubrovskyi","html_url":"https://github.com/stas-dubrovskyi","followers_url":"https://api.github.com/users/stas-dubrovskyi/followers","following_url":"https://api.github.com/users/stas-dubrovskyi/following{/other_user}","gists_url":"https://api.github.com/users/stas-dubrovskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/stas-dubrovskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stas-dubrovskyi/subscriptions","organizations_url":"https://api.github.com/users/stas-dubrovskyi/orgs","repos_url":"https://api.github.com/users/stas-dubrovskyi/repos","events_url":"https://api.github.com/users/stas-dubrovskyi/events{/privacy}","received_events_url":"https://api.github.com/users/stas-dubrovskyi/received_events","type":"User","site_admin":false},"body":"Sure","created_at":"2018-11-10T15:10:23Z","updated_at":"2018-11-10T15:10:23Z","html_url":"https://github.com/knyar/nginx-lua-prometheus/pull/42#discussion_r232454787","pull_request_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/pulls/42","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/knyar/nginx-lua-prometheus/pulls/comments/232454787"},"html":{"href":"https://github.com/knyar/nginx-lua-prometheus/pull/42#discussion_r232454787"},"pull_request":{"href":"https://api.github.com/repos/knyar/nginx-lua-prometheus/pulls/42"}},"in_reply_to_id":232454442},"pull_request":{"url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/pulls/42","id":229837422,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5ODM3NDIy","html_url":"https://github.com/knyar/nginx-lua-prometheus/pull/42","diff_url":"https://github.com/knyar/nginx-lua-prometheus/pull/42.diff","patch_url":"https://github.com/knyar/nginx-lua-prometheus/pull/42.patch","issue_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/issues/42","number":42,"state":"open","locked":false,"title":"Stream module support","user":{"login":"stas-dubrovskyi","id":17026603,"node_id":"MDQ6VXNlcjE3MDI2NjAz","avatar_url":"https://avatars3.githubusercontent.com/u/17026603?v=4","gravatar_id":"","url":"https://api.github.com/users/stas-dubrovskyi","html_url":"https://github.com/stas-dubrovskyi","followers_url":"https://api.github.com/users/stas-dubrovskyi/followers","following_url":"https://api.github.com/users/stas-dubrovskyi/following{/other_user}","gists_url":"https://api.github.com/users/stas-dubrovskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/stas-dubrovskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stas-dubrovskyi/subscriptions","organizations_url":"https://api.github.com/users/stas-dubrovskyi/orgs","repos_url":"https://api.github.com/users/stas-dubrovskyi/repos","events_url":"https://api.github.com/users/stas-dubrovskyi/events{/privacy}","received_events_url":"https://api.github.com/users/stas-dubrovskyi/received_events","type":"User","site_admin":false},"body":"Hello, \r\n\r\nThank you for your work.\r\n\r\nUnfortunately there is no way to share dict between http and stream module in Nginx, so for monitoring stream module statistic minor changes needed.\r\n\r\nBR","created_at":"2018-11-09T22:31:08Z","updated_at":"2018-11-10T15:10:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0483e61f72f741eb2d3fd78ed0a7c0bc810f7ad5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/pulls/42/commits","review_comments_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/pulls/42/comments","review_comment_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/issues/42/comments","statuses_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/statuses/bf94aa760c68bada6d4d6315c0028a2ff6f9a537","head":{"label":"cleverdec:master","ref":"master","sha":"bf94aa760c68bada6d4d6315c0028a2ff6f9a537","user":{"login":"cleverdec","id":42780651,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNzgwNjUx","avatar_url":"https://avatars2.githubusercontent.com/u/42780651?v=4","gravatar_id":"","url":"https://api.github.com/users/cleverdec","html_url":"https://github.com/cleverdec","followers_url":"https://api.github.com/users/cleverdec/followers","following_url":"https://api.github.com/users/cleverdec/following{/other_user}","gists_url":"https://api.github.com/users/cleverdec/gists{/gist_id}","starred_url":"https://api.github.com/users/cleverdec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cleverdec/subscriptions","organizations_url":"https://api.github.com/users/cleverdec/orgs","repos_url":"https://api.github.com/users/cleverdec/repos","events_url":"https://api.github.com/users/cleverdec/events{/privacy}","received_events_url":"https://api.github.com/users/cleverdec/received_events","type":"Organization","site_admin":false},"repo":{"id":156923150,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY5MjMxNTA=","name":"nginx-lua-prometheus","full_name":"cleverdec/nginx-lua-prometheus","private":false,"owner":{"login":"cleverdec","id":42780651,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNzgwNjUx","avatar_url":"https://avatars2.githubusercontent.com/u/42780651?v=4","gravatar_id":"","url":"https://api.github.com/users/cleverdec","html_url":"https://github.com/cleverdec","followers_url":"https://api.github.com/users/cleverdec/followers","following_url":"https://api.github.com/users/cleverdec/following{/other_user}","gists_url":"https://api.github.com/users/cleverdec/gists{/gist_id}","starred_url":"https://api.github.com/users/cleverdec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cleverdec/subscriptions","organizations_url":"https://api.github.com/users/cleverdec/orgs","repos_url":"https://api.github.com/users/cleverdec/repos","events_url":"https://api.github.com/users/cleverdec/events{/privacy}","received_events_url":"https://api.github.com/users/cleverdec/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cleverdec/nginx-lua-prometheus","description":"Prometheus metric library for Nginx written in Lua","fork":true,"url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus","forks_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/forks","keys_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/teams","hooks_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/hooks","issue_events_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/issues/events{/number}","events_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/events","assignees_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/assignees{/user}","branches_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/branches{/branch}","tags_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/tags","blobs_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/git/refs{/sha}","trees_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/statuses/{sha}","languages_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/languages","stargazers_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/stargazers","contributors_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/contributors","subscribers_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/subscribers","subscription_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/subscription","commits_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/commits{/sha}","git_commits_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/git/commits{/sha}","comments_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/comments{/number}","issue_comment_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/issues/comments{/number}","contents_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/contents/{+path}","compare_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/merges","archive_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/downloads","issues_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/issues{/number}","pulls_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/pulls{/number}","milestones_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/milestones{/number}","notifications_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/labels{/name}","releases_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/releases{/id}","deployments_url":"https://api.github.com/repos/cleverdec/nginx-lua-prometheus/deployments","created_at":"2018-11-09T22:06:03Z","updated_at":"2018-11-09T23:03:05Z","pushed_at":"2018-11-09T23:03:03Z","git_url":"git://github.com/cleverdec/nginx-lua-prometheus.git","ssh_url":"git@github.com:cleverdec/nginx-lua-prometheus.git","clone_url":"https://github.com/cleverdec/nginx-lua-prometheus.git","svn_url":"https://github.com/cleverdec/nginx-lua-prometheus","homepage":"","size":67,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"knyar:master","ref":"master","sha":"6982f250cf6e73c7f398869e3769d76bf56e2ee2","user":{"login":"knyar","id":1687799,"node_id":"MDQ6VXNlcjE2ODc3OTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1687799?v=4","gravatar_id":"","url":"https://api.github.com/users/knyar","html_url":"https://github.com/knyar","followers_url":"https://api.github.com/users/knyar/followers","following_url":"https://api.github.com/users/knyar/following{/other_user}","gists_url":"https://api.github.com/users/knyar/gists{/gist_id}","starred_url":"https://api.github.com/users/knyar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knyar/subscriptions","organizations_url":"https://api.github.com/users/knyar/orgs","repos_url":"https://api.github.com/users/knyar/repos","events_url":"https://api.github.com/users/knyar/events{/privacy}","received_events_url":"https://api.github.com/users/knyar/received_events","type":"User","site_admin":false},"repo":{"id":54273831,"node_id":"MDEwOlJlcG9zaXRvcnk1NDI3MzgzMQ==","name":"nginx-lua-prometheus","full_name":"knyar/nginx-lua-prometheus","private":false,"owner":{"login":"knyar","id":1687799,"node_id":"MDQ6VXNlcjE2ODc3OTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1687799?v=4","gravatar_id":"","url":"https://api.github.com/users/knyar","html_url":"https://github.com/knyar","followers_url":"https://api.github.com/users/knyar/followers","following_url":"https://api.github.com/users/knyar/following{/other_user}","gists_url":"https://api.github.com/users/knyar/gists{/gist_id}","starred_url":"https://api.github.com/users/knyar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knyar/subscriptions","organizations_url":"https://api.github.com/users/knyar/orgs","repos_url":"https://api.github.com/users/knyar/repos","events_url":"https://api.github.com/users/knyar/events{/privacy}","received_events_url":"https://api.github.com/users/knyar/received_events","type":"User","site_admin":false},"html_url":"https://github.com/knyar/nginx-lua-prometheus","description":"Prometheus metric library for Nginx written in Lua","fork":false,"url":"https://api.github.com/repos/knyar/nginx-lua-prometheus","forks_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/forks","keys_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/teams","hooks_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/hooks","issue_events_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/issues/events{/number}","events_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/events","assignees_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/assignees{/user}","branches_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/branches{/branch}","tags_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/tags","blobs_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/git/refs{/sha}","trees_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/statuses/{sha}","languages_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/languages","stargazers_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/stargazers","contributors_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/contributors","subscribers_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/subscribers","subscription_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/subscription","commits_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/commits{/sha}","git_commits_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/git/commits{/sha}","comments_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/comments{/number}","issue_comment_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/issues/comments{/number}","contents_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/contents/{+path}","compare_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/merges","archive_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/downloads","issues_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/issues{/number}","pulls_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/pulls{/number}","milestones_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/milestones{/number}","notifications_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/labels{/name}","releases_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/releases{/id}","deployments_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/deployments","created_at":"2016-03-19T15:51:04Z","updated_at":"2018-11-09T23:16:10Z","pushed_at":"2018-11-09T23:03:04Z","git_url":"git://github.com/knyar/nginx-lua-prometheus.git","ssh_url":"git@github.com:knyar/nginx-lua-prometheus.git","clone_url":"https://github.com/knyar/nginx-lua-prometheus.git","svn_url":"https://github.com/knyar/nginx-lua-prometheus","homepage":"","size":58,"stargazers_count":467,"watchers_count":467,"language":"Lua","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":60,"open_issues":1,"watchers":467,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/knyar/nginx-lua-prometheus/pulls/42"},"html":{"href":"https://github.com/knyar/nginx-lua-prometheus/pull/42"},"issue":{"href":"https://api.github.com/repos/knyar/nginx-lua-prometheus/issues/42"},"comments":{"href":"https://api.github.com/repos/knyar/nginx-lua-prometheus/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/knyar/nginx-lua-prometheus/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/knyar/nginx-lua-prometheus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/knyar/nginx-lua-prometheus/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/knyar/nginx-lua-prometheus/statuses/bf94aa760c68bada6d4d6315c0028a2ff6f9a537"}},"author_association":"NONE"}}
{"actor":{"display_login":"stas-dubrovskyi"}}