payload: {"action":"created","comment":{"url":"https://api.github.com/repos/openshift/cincinnati/pulls/comments/265977046","pull_request_review_id":215027851,"id":265977046,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2NTk3NzA0Ng==","diff_hunk":"@@ -17,13 +17,34 @@ use cincinnati::{plugins, AbstractRelease, Graph, Release, CONTENT_TYPE};\n use commons::GraphError;\n use config;\n use failure::Error;\n+use prometheus::{Counter, IntGauge};\n use registry::{self, Registry};\n use serde_json;\n use std::collections::{HashMap, HashSet};\n use std::sync::{Arc, RwLock};\n use std::thread;\n \n+lazy_static! {\n+    static ref GRAPH_DAG_NODES: IntGauge = register_int_gauge!(\n+        \"cincinnati_gb_graph_dag_nodes\",\n+        \"Number of nodes (releases) in the graph.\"","path":"graph-builder/src/graph.rs","position":null,"original_position":14,"commit_id":"5bbe1d640c4c0d65978304de306859c4c6fc108c","original_commit_id":"89df9942330d413289aa8ab169ebbce0058892b2","user":{"login":"steveeJ","id":1181362,"node_id":"MDQ6VXNlcjExODEzNjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1181362?v=4","gravatar_id":"","url":"https://api.github.com/users/steveeJ","html_url":"https://github.com/steveeJ","followers_url":"https://api.github.com/users/steveeJ/followers","following_url":"https://api.github.com/users/steveeJ/following{/other_user}","gists_url":"https://api.github.com/users/steveeJ/gists{/gist_id}","starred_url":"https://api.github.com/users/steveeJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveeJ/subscriptions","organizations_url":"https://api.github.com/users/steveeJ/orgs","repos_url":"https://api.github.com/users/steveeJ/repos","events_url":"https://api.github.com/users/steveeJ/events{/privacy}","received_events_url":"https://api.github.com/users/steveeJ/received_events","type":"User","site_admin":false},"body":"With the same motivation as explained below, trying to find high-level names: `graph_releases_final` and for the below `graph_releases_raw`?","created_at":"2019-03-15T13:21:45Z","updated_at":"2019-03-15T13:21:45Z","html_url":"https://github.com/openshift/cincinnati/pull/72#discussion_r265977046","pull_request_url":"https://api.github.com/repos/openshift/cincinnati/pulls/72","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/openshift/cincinnati/pulls/comments/265977046"},"html":{"href":"https://github.com/openshift/cincinnati/pull/72#discussion_r265977046"},"pull_request":{"href":"https://api.github.com/repos/openshift/cincinnati/pulls/72"}},"in_reply_to_id":265599363},"pull_request":{"url":"https://api.github.com/repos/openshift/cincinnati/pulls/72","id":261183567,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYxMTgzNTY3","html_url":"https://github.com/openshift/cincinnati/pull/72","diff_url":"https://github.com/openshift/cincinnati/pull/72.diff","patch_url":"https://github.com/openshift/cincinnati/pull/72.patch","issue_url":"https://api.github.com/repos/openshift/cincinnati/issues/72","number":72,"state":"open","locked":false,"title":"graph-builder: instrument and expose graph metrics","user":{"login":"lucab","id":98086,"node_id":"MDQ6VXNlcjk4MDg2","avatar_url":"https://avatars1.githubusercontent.com/u/98086?v=4","gravatar_id":"","url":"https://api.github.com/users/lucab","html_url":"https://github.com/lucab","followers_url":"https://api.github.com/users/lucab/followers","following_url":"https://api.github.com/users/lucab/following{/other_user}","gists_url":"https://api.github.com/users/lucab/gists{/gist_id}","starred_url":"https://api.github.com/users/lucab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucab/subscriptions","organizations_url":"https://api.github.com/users/lucab/orgs","repos_url":"https://api.github.com/users/lucab/repos","events_url":"https://api.github.com/users/lucab/events{/privacy}","received_events_url":"https://api.github.com/users/lucab/received_events","type":"User","site_admin":false},"body":"This adds a status service to serve graph-builder `/metrics` endpoint.\r\nIt is initially hardcoded to bind to `0.0.0.0:9080` (pending configuration rework).\r\nIt also adds initial instrumentation to record basic metrics about incoming\r\nrequests, total and failed scrapes, fetched releases, and nodes recorded in the\r\nprocessed DAG.\r\n\r\nRef: https://jira.coreos.com/browse/CORS-1015\r\n/cc @steveeJ ","created_at":"2019-03-14T14:07:59Z","updated_at":"2019-03-15T13:21:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bcb696f79a2dcfc9b1dfe29b5289ddd59fc878f3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1081019134,"node_id":"MDU6TGFiZWwxMDgxMDE5MTM0","url":"https://api.github.com/repos/openshift/cincinnati/labels/approved","name":"approved","color":"0ffa16","default":false},{"id":1081014628,"node_id":"MDU6TGFiZWwxMDgxMDE0NjI4","url":"https://api.github.com/repos/openshift/cincinnati/labels/size/L","name":"size/L","color":"ee9900","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openshift/cincinnati/pulls/72/commits","review_comments_url":"https://api.github.com/repos/openshift/cincinnati/pulls/72/comments","review_comment_url":"https://api.github.com/repos/openshift/cincinnati/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/cincinnati/issues/72/comments","statuses_url":"https://api.github.com/repos/openshift/cincinnati/statuses/5bbe1d640c4c0d65978304de306859c4c6fc108c","head":{"label":"lucab:ups/gb-metrics","ref":"ups/gb-metrics","sha":"5bbe1d640c4c0d65978304de306859c4c6fc108c","user":{"login":"lucab","id":98086,"node_id":"MDQ6VXNlcjk4MDg2","avatar_url":"https://avatars1.githubusercontent.com/u/98086?v=4","gravatar_id":"","url":"https://api.github.com/users/lucab","html_url":"https://github.com/lucab","followers_url":"https://api.github.com/users/lucab/followers","following_url":"https://api.github.com/users/lucab/following{/other_user}","gists_url":"https://api.github.com/users/lucab/gists{/gist_id}","starred_url":"https://api.github.com/users/lucab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucab/subscriptions","organizations_url":"https://api.github.com/users/lucab/orgs","repos_url":"https://api.github.com/users/lucab/repos","events_url":"https://api.github.com/users/lucab/events{/privacy}","received_events_url":"https://api.github.com/users/lucab/received_events","type":"User","site_admin":false},"repo":{"id":146867980,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY4Njc5ODA=","name":"cincinnati","full_name":"lucab/cincinnati","private":false,"owner":{"login":"lucab","id":98086,"node_id":"MDQ6VXNlcjk4MDg2","avatar_url":"https://avatars1.githubusercontent.com/u/98086?v=4","gravatar_id":"","url":"https://api.github.com/users/lucab","html_url":"https://github.com/lucab","followers_url":"https://api.github.com/users/lucab/followers","following_url":"https://api.github.com/users/lucab/following{/other_user}","gists_url":"https://api.github.com/users/lucab/gists{/gist_id}","starred_url":"https://api.github.com/users/lucab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucab/subscriptions","organizations_url":"https://api.github.com/users/lucab/orgs","repos_url":"https://api.github.com/users/lucab/repos","events_url":"https://api.github.com/users/lucab/events{/privacy}","received_events_url":"https://api.github.com/users/lucab/received_events","type":"User","site_admin":false},"html_url":"https://github.com/lucab/cincinnati","description":null,"fork":true,"url":"https://api.github.com/repos/lucab/cincinnati","forks_url":"https://api.github.com/repos/lucab/cincinnati/forks","keys_url":"https://api.github.com/repos/lucab/cincinnati/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lucab/cincinnati/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lucab/cincinnati/teams","hooks_url":"https://api.github.com/repos/lucab/cincinnati/hooks","issue_events_url":"https://api.github.com/repos/lucab/cincinnati/issues/events{/number}","events_url":"https://api.github.com/repos/lucab/cincinnati/events","assignees_url":"https://api.github.com/repos/lucab/cincinnati/assignees{/user}","branches_url":"https://api.github.com/repos/lucab/cincinnati/branches{/branch}","tags_url":"https://api.github.com/repos/lucab/cincinnati/tags","blobs_url":"https://api.github.com/repos/lucab/cincinnati/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lucab/cincinnati/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lucab/cincinnati/git/refs{/sha}","trees_url":"https://api.github.com/repos/lucab/cincinnati/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lucab/cincinnati/statuses/{sha}","languages_url":"https://api.github.com/repos/lucab/cincinnati/languages","stargazers_url":"https://api.github.com/repos/lucab/cincinnati/stargazers","contributors_url":"https://api.github.com/repos/lucab/cincinnati/contributors","subscribers_url":"https://api.github.com/repos/lucab/cincinnati/subscribers","subscription_url":"https://api.github.com/repos/lucab/cincinnati/subscription","commits_url":"https://api.github.com/repos/lucab/cincinnati/commits{/sha}","git_commits_url":"https://api.github.com/repos/lucab/cincinnati/git/commits{/sha}","comments_url":"https://api.github.com/repos/lucab/cincinnati/comments{/number}","issue_comment_url":"https://api.github.com/repos/lucab/cincinnati/issues/comments{/number}","contents_url":"https://api.github.com/repos/lucab/cincinnati/contents/{+path}","compare_url":"https://api.github.com/repos/lucab/cincinnati/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lucab/cincinnati/merges","archive_url":"https://api.github.com/repos/lucab/cincinnati/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lucab/cincinnati/downloads","issues_url":"https://api.github.com/repos/lucab/cincinnati/issues{/number}","pulls_url":"https://api.github.com/repos/lucab/cincinnati/pulls{/number}","milestones_url":"https://api.github.com/repos/lucab/cincinnati/milestones{/number}","notifications_url":"https://api.github.com/repos/lucab/cincinnati/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lucab/cincinnati/labels{/name}","releases_url":"https://api.github.com/repos/lucab/cincinnati/releases{/id}","deployments_url":"https://api.github.com/repos/lucab/cincinnati/deployments","created_at":"2018-08-31T09:02:36Z","updated_at":"2018-09-11T21:31:02Z","pushed_at":"2019-03-15T10:03:27Z","git_url":"git://github.com/lucab/cincinnati.git","ssh_url":"git@github.com:lucab/cincinnati.git","clone_url":"https://github.com/lucab/cincinnati.git","svn_url":"https://github.com/lucab/cincinnati","homepage":null,"size":454,"stargazers_count":0,"watchers_count":0,"language":"Rust","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":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openshift:master","ref":"master","sha":"635e98de400160979c16a2d657d4c4731405a176","user":{"login":"openshift","id":792337,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5MjMzNw==","avatar_url":"https://avatars3.githubusercontent.com/u/792337?v=4","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":141004926,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEwMDQ5MjY=","name":"cincinnati","full_name":"openshift/cincinnati","private":false,"owner":{"login":"openshift","id":792337,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5MjMzNw==","avatar_url":"https://avatars3.githubusercontent.com/u/792337?v=4","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openshift/cincinnati","description":null,"fork":false,"url":"https://api.github.com/repos/openshift/cincinnati","forks_url":"https://api.github.com/repos/openshift/cincinnati/forks","keys_url":"https://api.github.com/repos/openshift/cincinnati/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift/cincinnati/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift/cincinnati/teams","hooks_url":"https://api.github.com/repos/openshift/cincinnati/hooks","issue_events_url":"https://api.github.com/repos/openshift/cincinnati/issues/events{/number}","events_url":"https://api.github.com/repos/openshift/cincinnati/events","assignees_url":"https://api.github.com/repos/openshift/cincinnati/assignees{/user}","branches_url":"https://api.github.com/repos/openshift/cincinnati/branches{/branch}","tags_url":"https://api.github.com/repos/openshift/cincinnati/tags","blobs_url":"https://api.github.com/repos/openshift/cincinnati/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift/cincinnati/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift/cincinnati/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift/cincinnati/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift/cincinnati/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift/cincinnati/languages","stargazers_url":"https://api.github.com/repos/openshift/cincinnati/stargazers","contributors_url":"https://api.github.com/repos/openshift/cincinnati/contributors","subscribers_url":"https://api.github.com/repos/openshift/cincinnati/subscribers","subscription_url":"https://api.github.com/repos/openshift/cincinnati/subscription","commits_url":"https://api.github.com/repos/openshift/cincinnati/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift/cincinnati/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift/cincinnati/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift/cincinnati/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift/cincinnati/contents/{+path}","compare_url":"https://api.github.com/repos/openshift/cincinnati/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift/cincinnati/merges","archive_url":"https://api.github.com/repos/openshift/cincinnati/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift/cincinnati/downloads","issues_url":"https://api.github.com/repos/openshift/cincinnati/issues{/number}","pulls_url":"https://api.github.com/repos/openshift/cincinnati/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift/cincinnati/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift/cincinnati/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift/cincinnati/labels{/name}","releases_url":"https://api.github.com/repos/openshift/cincinnati/releases{/id}","deployments_url":"https://api.github.com/repos/openshift/cincinnati/deployments","created_at":"2018-07-15T06:45:59Z","updated_at":"2019-03-13T14:26:09Z","pushed_at":"2019-03-15T10:03:28Z","git_url":"git://github.com/openshift/cincinnati.git","ssh_url":"git@github.com:openshift/cincinnati.git","clone_url":"https://github.com/openshift/cincinnati.git","svn_url":"https://github.com/openshift/cincinnati","homepage":null,"size":391,"stargazers_count":6,"watchers_count":6,"language":"Rust","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":9,"open_issues":5,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/cincinnati/pulls/72"},"html":{"href":"https://github.com/openshift/cincinnati/pull/72"},"issue":{"href":"https://api.github.com/repos/openshift/cincinnati/issues/72"},"comments":{"href":"https://api.github.com/repos/openshift/cincinnati/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/cincinnati/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/cincinnati/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/cincinnati/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/cincinnati/statuses/5bbe1d640c4c0d65978304de306859c4c6fc108c"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"steveeJ"}}