{"action":"opened","number":2398,"pull_request":{"url":"https://api.github.com/repos/grafana/grafana/pulls/2398","id":40822144,"html_url":"https://github.com/grafana/grafana/pull/2398","diff_url":"https://github.com/grafana/grafana/pull/2398.diff","patch_url":"https://github.com/grafana/grafana/pull/2398.patch","issue_url":"https://api.github.com/repos/grafana/grafana/issues/2398","number":2398,"state":"open","locked":false,"title":"Support `$`-replacements in KairosDB like the InfluxDB datasource.","user":{"login":"csm","id":39441,"avatar_url":"https://avatars.githubusercontent.com/u/39441?v=3","gravatar_id":"","url":"https://api.github.com/users/csm","html_url":"https://github.com/csm","followers_url":"https://api.github.com/users/csm/followers","following_url":"https://api.github.com/users/csm/following{/other_user}","gists_url":"https://api.github.com/users/csm/gists{/gist_id}","starred_url":"https://api.github.com/users/csm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csm/subscriptions","organizations_url":"https://api.github.com/users/csm/orgs","repos_url":"https://api.github.com/users/csm/repos","events_url":"https://api.github.com/users/csm/events{/privacy}","received_events_url":"https://api.github.com/users/csm/received_events","type":"User","site_admin":false},"body":"The InfluxDB 0.8 datasource let you add the following in your alias:\r\n\r\n* `$g`, which gets replaced by the grouping value (here, if there are multiple group by columns, they're made into a comma-separated list).\r\n* `$s`, replaced by the series name.\r\n* `$<n>`, for integers `n`, gets replaced by the nth element of the series name, split by periods.\r\n\r\nWe are looking to add this so the KairosDB datasource has closer parity with the InfluxDB datasource, which we had been using before. We also don't like that you can't control what grouping labels get added to series names.","created_at":"2015-07-24T22:35:10Z","updated_at":"2015-07-24T22:35:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d105e3de2465c1f8ab43d0a5c3effd04f16b7f1c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/grafana/grafana/pulls/2398/commits","review_comments_url":"https://api.github.com/repos/grafana/grafana/pulls/2398/comments","review_comment_url":"https://api.github.com/repos/grafana/grafana/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/2398/comments","statuses_url":"https://api.github.com/repos/grafana/grafana/statuses/9c865d9c427f55573652908d59c9ef84914afe48","head":{"label":"csm:kairos-series-alias","ref":"kairos-series-alias","sha":"9c865d9c427f55573652908d59c9ef84914afe48","user":{"login":"csm","id":39441,"avatar_url":"https://avatars.githubusercontent.com/u/39441?v=3","gravatar_id":"","url":"https://api.github.com/users/csm","html_url":"https://github.com/csm","followers_url":"https://api.github.com/users/csm/followers","following_url":"https://api.github.com/users/csm/following{/other_user}","gists_url":"https://api.github.com/users/csm/gists{/gist_id}","starred_url":"https://api.github.com/users/csm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csm/subscriptions","organizations_url":"https://api.github.com/users/csm/orgs","repos_url":"https://api.github.com/users/csm/repos","events_url":"https://api.github.com/users/csm/events{/privacy}","received_events_url":"https://api.github.com/users/csm/received_events","type":"User","site_admin":false},"repo":{"id":28984532,"name":"grafana","full_name":"csm/grafana","owner":{"login":"csm","id":39441,"avatar_url":"https://avatars.githubusercontent.com/u/39441?v=3","gravatar_id":"","url":"https://api.github.com/users/csm","html_url":"https://github.com/csm","followers_url":"https://api.github.com/users/csm/followers","following_url":"https://api.github.com/users/csm/following{/other_user}","gists_url":"https://api.github.com/users/csm/gists{/gist_id}","starred_url":"https://api.github.com/users/csm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csm/subscriptions","organizations_url":"https://api.github.com/users/csm/orgs","repos_url":"https://api.github.com/users/csm/repos","events_url":"https://api.github.com/users/csm/events{/privacy}","received_events_url":"https://api.github.com/users/csm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/csm/grafana","description":"Grafana - A Graphite & InfluxDB Dashboard and Graph Editor","fork":true,"url":"https://api.github.com/repos/csm/grafana","forks_url":"https://api.github.com/repos/csm/grafana/forks","keys_url":"https://api.github.com/repos/csm/grafana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/csm/grafana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/csm/grafana/teams","hooks_url":"https://api.github.com/repos/csm/grafana/hooks","issue_events_url":"https://api.github.com/repos/csm/grafana/issues/events{/number}","events_url":"https://api.github.com/repos/csm/grafana/events","assignees_url":"https://api.github.com/repos/csm/grafana/assignees{/user}","branches_url":"https://api.github.com/repos/csm/grafana/branches{/branch}","tags_url":"https://api.github.com/repos/csm/grafana/tags","blobs_url":"https://api.github.com/repos/csm/grafana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/csm/grafana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/csm/grafana/git/refs{/sha}","trees_url":"https://api.github.com/repos/csm/grafana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/csm/grafana/statuses/{sha}","languages_url":"https://api.github.com/repos/csm/grafana/languages","stargazers_url":"https://api.github.com/repos/csm/grafana/stargazers","contributors_url":"https://api.github.com/repos/csm/grafana/contributors","subscribers_url":"https://api.github.com/repos/csm/grafana/subscribers","subscription_url":"https://api.github.com/repos/csm/grafana/subscription","commits_url":"https://api.github.com/repos/csm/grafana/commits{/sha}","git_commits_url":"https://api.github.com/repos/csm/grafana/git/commits{/sha}","comments_url":"https://api.github.com/repos/csm/grafana/comments{/number}","issue_comment_url":"https://api.github.com/repos/csm/grafana/issues/comments{/number}","contents_url":"https://api.github.com/repos/csm/grafana/contents/{+path}","compare_url":"https://api.github.com/repos/csm/grafana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/csm/grafana/merges","archive_url":"https://api.github.com/repos/csm/grafana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/csm/grafana/downloads","issues_url":"https://api.github.com/repos/csm/grafana/issues{/number}","pulls_url":"https://api.github.com/repos/csm/grafana/pulls{/number}","milestones_url":"https://api.github.com/repos/csm/grafana/milestones{/number}","notifications_url":"https://api.github.com/repos/csm/grafana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/csm/grafana/labels{/name}","releases_url":"https://api.github.com/repos/csm/grafana/releases{/id}","created_at":"2015-01-08T20:29:38Z","updated_at":"2015-01-08T20:29:39Z","pushed_at":"2015-07-24T22:33:30Z","git_url":"git://github.com/csm/grafana.git","ssh_url":"git@github.com:csm/grafana.git","clone_url":"https://github.com/csm/grafana.git","svn_url":"https://github.com/csm/grafana","homepage":"http://grafana.org","size":65478,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"grafana:master","ref":"master","sha":"07b5995e8579f30ecdecd673bb69e8d27dd214d9","user":{"login":"grafana","id":7195757,"avatar_url":"https://avatars.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://avatars.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":"Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB","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}","created_at":"2013-12-11T15:59:56Z","updated_at":"2015-07-24T21:54:26Z","pushed_at":"2015-07-24T22:35:11Z","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":"http://grafana.org","size":105992,"stargazers_count":6181,"watchers_count":6181,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":843,"mirror_url":null,"open_issues_count":415,"forks":843,"open_issues":415,"watchers":6181,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grafana/grafana/pulls/2398"},"html":{"href":"https://github.com/grafana/grafana/pull/2398"},"issue":{"href":"https://api.github.com/repos/grafana/grafana/issues/2398"},"comments":{"href":"https://api.github.com/repos/grafana/grafana/issues/2398/comments"},"review_comments":{"href":"https://api.github.com/repos/grafana/grafana/pulls/2398/comments"},"review_comment":{"href":"https://api.github.com/repos/grafana/grafana/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grafana/grafana/pulls/2398/commits"},"statuses":{"href":"https://api.github.com/repos/grafana/grafana/statuses/9c865d9c427f55573652908d59c9ef84914afe48"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":29,"deletions":10,"changed_files":1}}