{"action":"opened","number":8399,"pull_request":{"url":"https://api.github.com/repos/grafana/grafana/pulls/8399","id":121036122,"html_url":"https://github.com/grafana/grafana/pull/8399","diff_url":"https://github.com/grafana/grafana/pull/8399.diff","patch_url":"https://github.com/grafana/grafana/pull/8399.patch","issue_url":"https://api.github.com/repos/grafana/grafana/issues/8399","number":8399,"state":"open","locked":false,"title":"add Referer header to logs. This is useful to link datasource request…","user":{"login":"mk-dhia","id":26446500,"avatar_url":"https://avatars1.githubusercontent.com/u/26446500?v=3","gravatar_id":"","url":"https://api.github.com/users/mk-dhia","html_url":"https://github.com/mk-dhia","followers_url":"https://api.github.com/users/mk-dhia/followers","following_url":"https://api.github.com/users/mk-dhia/following{/other_user}","gists_url":"https://api.github.com/users/mk-dhia/gists{/gist_id}","starred_url":"https://api.github.com/users/mk-dhia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mk-dhia/subscriptions","organizations_url":"https://api.github.com/users/mk-dhia/orgs","repos_url":"https://api.github.com/users/mk-dhia/repos","events_url":"https://api.github.com/users/mk-dhia/events{/privacy}","received_events_url":"https://api.github.com/users/mk-dhia/received_events","type":"User","site_admin":false},"body":"Hello,\r\n\r\nWe are parsing Grafana logs to get some use stats, and we are try to monitor dashboard usage. But all dashboard request are against URL that are related to datasource and not the dashboard. The information of dashboard is in the referer header. I think it's a good idea to amend the referer header to the log. ","created_at":"2017-05-17T11:38:58Z","updated_at":"2017-05-17T11:38:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/grafana/grafana/pulls/8399/commits","review_comments_url":"https://api.github.com/repos/grafana/grafana/pulls/8399/comments","review_comment_url":"https://api.github.com/repos/grafana/grafana/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/8399/comments","statuses_url":"https://api.github.com/repos/grafana/grafana/statuses/747ab8435ca4699c8e518309ee331b28f25ba47c","head":{"label":"mk-dhia:master","ref":"master","sha":"747ab8435ca4699c8e518309ee331b28f25ba47c","user":{"login":"mk-dhia","id":26446500,"avatar_url":"https://avatars1.githubusercontent.com/u/26446500?v=3","gravatar_id":"","url":"https://api.github.com/users/mk-dhia","html_url":"https://github.com/mk-dhia","followers_url":"https://api.github.com/users/mk-dhia/followers","following_url":"https://api.github.com/users/mk-dhia/following{/other_user}","gists_url":"https://api.github.com/users/mk-dhia/gists{/gist_id}","starred_url":"https://api.github.com/users/mk-dhia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mk-dhia/subscriptions","organizations_url":"https://api.github.com/users/mk-dhia/orgs","repos_url":"https://api.github.com/users/mk-dhia/repos","events_url":"https://api.github.com/users/mk-dhia/events{/privacy}","received_events_url":"https://api.github.com/users/mk-dhia/received_events","type":"User","site_admin":false},"repo":{"id":91561580,"name":"grafana","full_name":"mk-dhia/grafana","owner":{"login":"mk-dhia","id":26446500,"avatar_url":"https://avatars1.githubusercontent.com/u/26446500?v=3","gravatar_id":"","url":"https://api.github.com/users/mk-dhia","html_url":"https://github.com/mk-dhia","followers_url":"https://api.github.com/users/mk-dhia/followers","following_url":"https://api.github.com/users/mk-dhia/following{/other_user}","gists_url":"https://api.github.com/users/mk-dhia/gists{/gist_id}","starred_url":"https://api.github.com/users/mk-dhia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mk-dhia/subscriptions","organizations_url":"https://api.github.com/users/mk-dhia/orgs","repos_url":"https://api.github.com/users/mk-dhia/repos","events_url":"https://api.github.com/users/mk-dhia/events{/privacy}","received_events_url":"https://api.github.com/users/mk-dhia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mk-dhia/grafana","description":"The tool for beautiful monitoring and metric analytics & dashboards for Graphite, InfluxDB & Prometheus & More","fork":true,"url":"https://api.github.com/repos/mk-dhia/grafana","forks_url":"https://api.github.com/repos/mk-dhia/grafana/forks","keys_url":"https://api.github.com/repos/mk-dhia/grafana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mk-dhia/grafana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mk-dhia/grafana/teams","hooks_url":"https://api.github.com/repos/mk-dhia/grafana/hooks","issue_events_url":"https://api.github.com/repos/mk-dhia/grafana/issues/events{/number}","events_url":"https://api.github.com/repos/mk-dhia/grafana/events","assignees_url":"https://api.github.com/repos/mk-dhia/grafana/assignees{/user}","branches_url":"https://api.github.com/repos/mk-dhia/grafana/branches{/branch}","tags_url":"https://api.github.com/repos/mk-dhia/grafana/tags","blobs_url":"https://api.github.com/repos/mk-dhia/grafana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mk-dhia/grafana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mk-dhia/grafana/git/refs{/sha}","trees_url":"https://api.github.com/repos/mk-dhia/grafana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mk-dhia/grafana/statuses/{sha}","languages_url":"https://api.github.com/repos/mk-dhia/grafana/languages","stargazers_url":"https://api.github.com/repos/mk-dhia/grafana/stargazers","contributors_url":"https://api.github.com/repos/mk-dhia/grafana/contributors","subscribers_url":"https://api.github.com/repos/mk-dhia/grafana/subscribers","subscription_url":"https://api.github.com/repos/mk-dhia/grafana/subscription","commits_url":"https://api.github.com/repos/mk-dhia/grafana/commits{/sha}","git_commits_url":"https://api.github.com/repos/mk-dhia/grafana/git/commits{/sha}","comments_url":"https://api.github.com/repos/mk-dhia/grafana/comments{/number}","issue_comment_url":"https://api.github.com/repos/mk-dhia/grafana/issues/comments{/number}","contents_url":"https://api.github.com/repos/mk-dhia/grafana/contents/{+path}","compare_url":"https://api.github.com/repos/mk-dhia/grafana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mk-dhia/grafana/merges","archive_url":"https://api.github.com/repos/mk-dhia/grafana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mk-dhia/grafana/downloads","issues_url":"https://api.github.com/repos/mk-dhia/grafana/issues{/number}","pulls_url":"https://api.github.com/repos/mk-dhia/grafana/pulls{/number}","milestones_url":"https://api.github.com/repos/mk-dhia/grafana/milestones{/number}","notifications_url":"https://api.github.com/repos/mk-dhia/grafana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mk-dhia/grafana/labels{/name}","releases_url":"https://api.github.com/repos/mk-dhia/grafana/releases{/id}","deployments_url":"https://api.github.com/repos/mk-dhia/grafana/deployments","created_at":"2017-05-17T09:56:40Z","updated_at":"2017-05-17T09:56:46Z","pushed_at":"2017-05-17T11:34:29Z","git_url":"git://github.com/mk-dhia/grafana.git","ssh_url":"git@github.com:mk-dhia/grafana.git","clone_url":"https://github.com/mk-dhia/grafana.git","svn_url":"https://github.com/mk-dhia/grafana","homepage":"https://grafana.com","size":106946,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"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":"grafana:master","ref":"master","sha":"d261f33c3de7dde83f111d6dbf0aab3a3bdfae35","user":{"login":"grafana","id":7195757,"avatar_url":"https://avatars3.githubusercontent.com/u/7195757?v=3","gravatar_id":"","url":"https://api.github.com/users/grafana","html_url":"https://github.com/grafana","followers_url":"https://api.github.com/users/grafana/followers","following_url":"https://api.github.com/users/grafana/following{/other_user}","gists_url":"https://api.github.com/users/grafana/gists{/gist_id}","starred_url":"https://api.github.com/users/grafana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grafana/subscriptions","organizations_url":"https://api.github.com/users/grafana/orgs","repos_url":"https://api.github.com/users/grafana/repos","events_url":"https://api.github.com/users/grafana/events{/privacy}","received_events_url":"https://api.github.com/users/grafana/received_events","type":"Organization","site_admin":false},"repo":{"id":15111821,"name":"grafana","full_name":"grafana/grafana","owner":{"login":"grafana","id":7195757,"avatar_url":"https://avatars3.githubusercontent.com/u/7195757?v=3","gravatar_id":"","url":"https://api.github.com/users/grafana","html_url":"https://github.com/grafana","followers_url":"https://api.github.com/users/grafana/followers","following_url":"https://api.github.com/users/grafana/following{/other_user}","gists_url":"https://api.github.com/users/grafana/gists{/gist_id}","starred_url":"https://api.github.com/users/grafana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grafana/subscriptions","organizations_url":"https://api.github.com/users/grafana/orgs","repos_url":"https://api.github.com/users/grafana/repos","events_url":"https://api.github.com/users/grafana/events{/privacy}","received_events_url":"https://api.github.com/users/grafana/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/grafana/grafana","description":"The tool for beautiful monitoring and metric analytics & dashboards for Graphite, InfluxDB & Prometheus & More","fork":false,"url":"https://api.github.com/repos/grafana/grafana","forks_url":"https://api.github.com/repos/grafana/grafana/forks","keys_url":"https://api.github.com/repos/grafana/grafana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grafana/grafana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grafana/grafana/teams","hooks_url":"https://api.github.com/repos/grafana/grafana/hooks","issue_events_url":"https://api.github.com/repos/grafana/grafana/issues/events{/number}","events_url":"https://api.github.com/repos/grafana/grafana/events","assignees_url":"https://api.github.com/repos/grafana/grafana/assignees{/user}","branches_url":"https://api.github.com/repos/grafana/grafana/branches{/branch}","tags_url":"https://api.github.com/repos/grafana/grafana/tags","blobs_url":"https://api.github.com/repos/grafana/grafana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grafana/grafana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grafana/grafana/git/refs{/sha}","trees_url":"https://api.github.com/repos/grafana/grafana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grafana/grafana/statuses/{sha}","languages_url":"https://api.github.com/repos/grafana/grafana/languages","stargazers_url":"https://api.github.com/repos/grafana/grafana/stargazers","contributors_url":"https://api.github.com/repos/grafana/grafana/contributors","subscribers_url":"https://api.github.com/repos/grafana/grafana/subscribers","subscription_url":"https://api.github.com/repos/grafana/grafana/subscription","commits_url":"https://api.github.com/repos/grafana/grafana/commits{/sha}","git_commits_url":"https://api.github.com/repos/grafana/grafana/git/commits{/sha}","comments_url":"https://api.github.com/repos/grafana/grafana/comments{/number}","issue_comment_url":"https://api.github.com/repos/grafana/grafana/issues/comments{/number}","contents_url":"https://api.github.com/repos/grafana/grafana/contents/{+path}","compare_url":"https://api.github.com/repos/grafana/grafana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grafana/grafana/merges","archive_url":"https://api.github.com/repos/grafana/grafana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grafana/grafana/downloads","issues_url":"https://api.github.com/repos/grafana/grafana/issues{/number}","pulls_url":"https://api.github.com/repos/grafana/grafana/pulls{/number}","milestones_url":"https://api.github.com/repos/grafana/grafana/milestones{/number}","notifications_url":"https://api.github.com/repos/grafana/grafana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grafana/grafana/labels{/name}","releases_url":"https://api.github.com/repos/grafana/grafana/releases{/id}","deployments_url":"https://api.github.com/repos/grafana/grafana/deployments","created_at":"2013-12-11T15:59:56Z","updated_at":"2017-05-17T10:55:35Z","pushed_at":"2017-05-17T11:28:02Z","git_url":"git://github.com/grafana/grafana.git","ssh_url":"git@github.com:grafana/grafana.git","clone_url":"https://github.com/grafana/grafana.git","svn_url":"https://github.com/grafana/grafana","homepage":"https://grafana.com","size":106952,"stargazers_count":15959,"watchers_count":15959,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2615,"mirror_url":null,"open_issues_count":1002,"forks":2615,"open_issues":1002,"watchers":15959,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grafana/grafana/pulls/8399"},"html":{"href":"https://github.com/grafana/grafana/pull/8399"},"issue":{"href":"https://api.github.com/repos/grafana/grafana/issues/8399"},"comments":{"href":"https://api.github.com/repos/grafana/grafana/issues/8399/comments"},"review_comments":{"href":"https://api.github.com/repos/grafana/grafana/pulls/8399/comments"},"review_comment":{"href":"https://api.github.com/repos/grafana/grafana/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grafana/grafana/pulls/8399/commits"},"statuses":{"href":"https://api.github.com/repos/grafana/grafana/statuses/747ab8435ca4699c8e518309ee331b28f25ba47c"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":2,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"mk-dhia"}}