{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/pulls/comments/27080506","id":27080506,"diff_hunk":"@@ -0,0 +1,79 @@\n+// Copyright 2014 Google Inc. All Rights Reserved.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//     http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+package main\n+\n+import (\n+\t\"log\"\n+\t\"net/http\"\n+\t\"net/http/httputil\"\n+\t\"net/url\"\n+\t\"os\"\n+\t\"strings\"\n+\t\"text/template\"\n+)\n+\n+type Context struct {\n+}\n+\n+func (c *Context) Env() map[string]string {\n+\tenv := make(map[string]string)\n+\tfor _, i := range os.Environ() {\n+\t\tsep := strings.Index(i, \"=\")\n+\t\tenv[i[0:sep]] = i[sep+1:]\n+\t}\n+\treturn env\n+}\n+\n+func main() {\n+\tinfluxDbUrl := os.Getenv(\"INFLUXDB_URL\")","path":"grafana/main.go","position":40,"original_position":40,"commit_id":"d00072900ee8d930b9b5d66d5bdcadcd4bd4638a","original_commit_id":"d00072900ee8d930b9b5d66d5bdcadcd4bd4638a","user":{"login":"vishh","id":7063592,"avatar_url":"https://avatars.githubusercontent.com/u/7063592?v=3","gravatar_id":"","url":"https://api.github.com/users/vishh","html_url":"https://github.com/vishh","followers_url":"https://api.github.com/users/vishh/followers","following_url":"https://api.github.com/users/vishh/following{/other_user}","gists_url":"https://api.github.com/users/vishh/gists{/gist_id}","starred_url":"https://api.github.com/users/vishh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishh/subscriptions","organizations_url":"https://api.github.com/users/vishh/orgs","repos_url":"https://api.github.com/users/vishh/repos","events_url":"https://api.github.com/users/vishh/events{/privacy}","received_events_url":"https://api.github.com/users/vishh/received_events","type":"User","site_admin":false},"body":"\"INFLUXDB_URL\" is not specified in the dockerfile. Is this intentional? Can this be defaulted to the influxdb service name?","created_at":"2015-03-24T22:34:34Z","updated_at":"2015-03-24T22:34:34Z","html_url":"https://github.com/GoogleCloudPlatform/heapster/pull/183#discussion_r27080506","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/pulls/183","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/heapster/pulls/comments/27080506"},"html":{"href":"https://github.com/GoogleCloudPlatform/heapster/pull/183#discussion_r27080506"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/heapster/pulls/183"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/pulls/183","id":31835579,"html_url":"https://github.com/GoogleCloudPlatform/heapster/pull/183","diff_url":"https://github.com/GoogleCloudPlatform/heapster/pull/183.diff","patch_url":"https://github.com/GoogleCloudPlatform/heapster/pull/183.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/issues/183","number":183,"state":"open","locked":false,"title":"Switch to golang http server with reverse proxy to influxdb service","user":{"login":"jimmidyson","id":464659,"avatar_url":"https://avatars.githubusercontent.com/u/464659?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmidyson","html_url":"https://github.com/jimmidyson","followers_url":"https://api.github.com/users/jimmidyson/followers","following_url":"https://api.github.com/users/jimmidyson/following{/other_user}","gists_url":"https://api.github.com/users/jimmidyson/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmidyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmidyson/subscriptions","organizations_url":"https://api.github.com/users/jimmidyson/orgs","repos_url":"https://api.github.com/users/jimmidyson/repos","events_url":"https://api.github.com/users/jimmidyson/events{/privacy}","received_events_url":"https://api.github.com/users/jimmidyson/received_events","type":"User","site_admin":false},"body":"Following discussion in #182, #132, #135.","created_at":"2015-03-24T15:11:54Z","updated_at":"2015-03-24T22:34:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4ed8e8bcb14d8b22453dc245a83243777aced29","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/pulls/183/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/pulls/183/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/issues/183/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/statuses/d00072900ee8d930b9b5d66d5bdcadcd4bd4638a","head":{"label":"jimmidyson:grafana-golang-http-server","ref":"grafana-golang-http-server","sha":"d00072900ee8d930b9b5d66d5bdcadcd4bd4638a","user":{"login":"jimmidyson","id":464659,"avatar_url":"https://avatars.githubusercontent.com/u/464659?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmidyson","html_url":"https://github.com/jimmidyson","followers_url":"https://api.github.com/users/jimmidyson/followers","following_url":"https://api.github.com/users/jimmidyson/following{/other_user}","gists_url":"https://api.github.com/users/jimmidyson/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmidyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmidyson/subscriptions","organizations_url":"https://api.github.com/users/jimmidyson/orgs","repos_url":"https://api.github.com/users/jimmidyson/repos","events_url":"https://api.github.com/users/jimmidyson/events{/privacy}","received_events_url":"https://api.github.com/users/jimmidyson/received_events","type":"User","site_admin":false},"repo":{"id":28227262,"name":"heapster","full_name":"jimmidyson/heapster","owner":{"login":"jimmidyson","id":464659,"avatar_url":"https://avatars.githubusercontent.com/u/464659?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmidyson","html_url":"https://github.com/jimmidyson","followers_url":"https://api.github.com/users/jimmidyson/followers","following_url":"https://api.github.com/users/jimmidyson/following{/other_user}","gists_url":"https://api.github.com/users/jimmidyson/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmidyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmidyson/subscriptions","organizations_url":"https://api.github.com/users/jimmidyson/orgs","repos_url":"https://api.github.com/users/jimmidyson/repos","events_url":"https://api.github.com/users/jimmidyson/events{/privacy}","received_events_url":"https://api.github.com/users/jimmidyson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jimmidyson/heapster","description":"Monitor container resource usage of a Kubernetes cluster","fork":true,"url":"https://api.github.com/repos/jimmidyson/heapster","forks_url":"https://api.github.com/repos/jimmidyson/heapster/forks","keys_url":"https://api.github.com/repos/jimmidyson/heapster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jimmidyson/heapster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jimmidyson/heapster/teams","hooks_url":"https://api.github.com/repos/jimmidyson/heapster/hooks","issue_events_url":"https://api.github.com/repos/jimmidyson/heapster/issues/events{/number}","events_url":"https://api.github.com/repos/jimmidyson/heapster/events","assignees_url":"https://api.github.com/repos/jimmidyson/heapster/assignees{/user}","branches_url":"https://api.github.com/repos/jimmidyson/heapster/branches{/branch}","tags_url":"https://api.github.com/repos/jimmidyson/heapster/tags","blobs_url":"https://api.github.com/repos/jimmidyson/heapster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jimmidyson/heapster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jimmidyson/heapster/git/refs{/sha}","trees_url":"https://api.github.com/repos/jimmidyson/heapster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jimmidyson/heapster/statuses/{sha}","languages_url":"https://api.github.com/repos/jimmidyson/heapster/languages","stargazers_url":"https://api.github.com/repos/jimmidyson/heapster/stargazers","contributors_url":"https://api.github.com/repos/jimmidyson/heapster/contributors","subscribers_url":"https://api.github.com/repos/jimmidyson/heapster/subscribers","subscription_url":"https://api.github.com/repos/jimmidyson/heapster/subscription","commits_url":"https://api.github.com/repos/jimmidyson/heapster/commits{/sha}","git_commits_url":"https://api.github.com/repos/jimmidyson/heapster/git/commits{/sha}","comments_url":"https://api.github.com/repos/jimmidyson/heapster/comments{/number}","issue_comment_url":"https://api.github.com/repos/jimmidyson/heapster/issues/comments{/number}","contents_url":"https://api.github.com/repos/jimmidyson/heapster/contents/{+path}","compare_url":"https://api.github.com/repos/jimmidyson/heapster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jimmidyson/heapster/merges","archive_url":"https://api.github.com/repos/jimmidyson/heapster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jimmidyson/heapster/downloads","issues_url":"https://api.github.com/repos/jimmidyson/heapster/issues{/number}","pulls_url":"https://api.github.com/repos/jimmidyson/heapster/pulls{/number}","milestones_url":"https://api.github.com/repos/jimmidyson/heapster/milestones{/number}","notifications_url":"https://api.github.com/repos/jimmidyson/heapster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jimmidyson/heapster/labels{/name}","releases_url":"https://api.github.com/repos/jimmidyson/heapster/releases{/id}","created_at":"2014-12-19T11:41:10Z","updated_at":"2015-03-06T10:17:43Z","pushed_at":"2015-03-24T17:40:42Z","git_url":"git://github.com/jimmidyson/heapster.git","ssh_url":"git@github.com:jimmidyson/heapster.git","clone_url":"https://github.com/jimmidyson/heapster.git","svn_url":"https://github.com/jimmidyson/heapster","homepage":"","size":17697,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"9ea7e6f379c1860fabefc0c3ce86dc36a173c157","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":23272510,"name":"heapster","full_name":"GoogleCloudPlatform/heapster","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/heapster","description":"Monitor container resource usage of a Kubernetes cluster","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/heapster","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/heapster/releases{/id}","created_at":"2014-08-24T03:50:18Z","updated_at":"2015-03-24T17:33:30Z","pushed_at":"2015-03-24T21:52:10Z","git_url":"git://github.com/GoogleCloudPlatform/heapster.git","ssh_url":"git@github.com:GoogleCloudPlatform/heapster.git","clone_url":"https://github.com/GoogleCloudPlatform/heapster.git","svn_url":"https://github.com/GoogleCloudPlatform/heapster","homepage":"","size":20193,"stargazers_count":233,"watchers_count":233,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":38,"forks":41,"open_issues":38,"watchers":233,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/heapster/pulls/183"},"html":{"href":"https://github.com/GoogleCloudPlatform/heapster/pull/183"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/heapster/issues/183"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/heapster/issues/183/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/heapster/pulls/183/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/heapster/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/heapster/pulls/183/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/heapster/statuses/d00072900ee8d930b9b5d66d5bdcadcd4bd4638a"}}}}