{"action":"opened","number":794,"pull_request":{"url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/794","id":110874889,"html_url":"https://github.com/rackerlabs/blueflood/pull/794","diff_url":"https://github.com/rackerlabs/blueflood/pull/794.diff","patch_url":"https://github.com/rackerlabs/blueflood/pull/794.patch","issue_url":"https://api.github.com/repos/rackerlabs/blueflood/issues/794","number":794,"state":"open","locked":false,"title":"Code changes to avoid return duplicates from metric_name search","user":{"login":"ChandraAddala","id":1525859,"avatar_url":"https://avatars3.githubusercontent.com/u/1525859?v=3","gravatar_id":"","url":"https://api.github.com/users/ChandraAddala","html_url":"https://github.com/ChandraAddala","followers_url":"https://api.github.com/users/ChandraAddala/followers","following_url":"https://api.github.com/users/ChandraAddala/following{/other_user}","gists_url":"https://api.github.com/users/ChandraAddala/gists{/gist_id}","starred_url":"https://api.github.com/users/ChandraAddala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChandraAddala/subscriptions","organizations_url":"https://api.github.com/users/ChandraAddala/orgs","repos_url":"https://api.github.com/users/ChandraAddala/repos","events_url":"https://api.github.com/users/ChandraAddala/events{/privacy}","received_events_url":"https://api.github.com/users/ChandraAddala/received_events","type":"User","site_admin":false},"body":"The metric_name/search API, sometimes returns duplicate data. This happens esp when the data is present in multiple indexes. Since we query from an alias in prod which points to multiple indexes this returns duplicate data as shown below. This is causing issues with grafana + blueflood integration. This PR addresses this issue by eliminating duplicates.\r\n\r\n```\r\ncurl -XGET 'http://localhost:2500/v2.0/<tenantid>/metric_name/search?query=ord.instance_metrics.ord.a0001.xxxx.vif_0_rx'| python -m json.tool\r\n\r\n[ \r\n    { \"ord.instance_metrics.ord.a0001.xxxx.vif_0_rx\": true },\r\n    { \"ord.instance_metrics.ord.a0001.xxxx.vif_0_rx\": true }\r\n]\r\n```","created_at":"2017-03-15T15:43:36Z","updated_at":"2017-03-15T15:43:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/794/commits","review_comments_url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/794/comments","review_comment_url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackerlabs/blueflood/issues/794/comments","statuses_url":"https://api.github.com/repos/rackerlabs/blueflood/statuses/045154fdef9e49706fb1931caea5167f127d536b","head":{"label":"ChandraAddala:remove-duplicates-metric-name-search","ref":"remove-duplicates-metric-name-search","sha":"045154fdef9e49706fb1931caea5167f127d536b","user":{"login":"ChandraAddala","id":1525859,"avatar_url":"https://avatars3.githubusercontent.com/u/1525859?v=3","gravatar_id":"","url":"https://api.github.com/users/ChandraAddala","html_url":"https://github.com/ChandraAddala","followers_url":"https://api.github.com/users/ChandraAddala/followers","following_url":"https://api.github.com/users/ChandraAddala/following{/other_user}","gists_url":"https://api.github.com/users/ChandraAddala/gists{/gist_id}","starred_url":"https://api.github.com/users/ChandraAddala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChandraAddala/subscriptions","organizations_url":"https://api.github.com/users/ChandraAddala/orgs","repos_url":"https://api.github.com/users/ChandraAddala/repos","events_url":"https://api.github.com/users/ChandraAddala/events{/privacy}","received_events_url":"https://api.github.com/users/ChandraAddala/received_events","type":"User","site_admin":false},"repo":{"id":45928272,"name":"blueflood","full_name":"ChandraAddala/blueflood","owner":{"login":"ChandraAddala","id":1525859,"avatar_url":"https://avatars3.githubusercontent.com/u/1525859?v=3","gravatar_id":"","url":"https://api.github.com/users/ChandraAddala","html_url":"https://github.com/ChandraAddala","followers_url":"https://api.github.com/users/ChandraAddala/followers","following_url":"https://api.github.com/users/ChandraAddala/following{/other_user}","gists_url":"https://api.github.com/users/ChandraAddala/gists{/gist_id}","starred_url":"https://api.github.com/users/ChandraAddala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChandraAddala/subscriptions","organizations_url":"https://api.github.com/users/ChandraAddala/orgs","repos_url":"https://api.github.com/users/ChandraAddala/repos","events_url":"https://api.github.com/users/ChandraAddala/events{/privacy}","received_events_url":"https://api.github.com/users/ChandraAddala/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ChandraAddala/blueflood","description":"A distributed system designed to ingest and process time series data","fork":true,"url":"https://api.github.com/repos/ChandraAddala/blueflood","forks_url":"https://api.github.com/repos/ChandraAddala/blueflood/forks","keys_url":"https://api.github.com/repos/ChandraAddala/blueflood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChandraAddala/blueflood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChandraAddala/blueflood/teams","hooks_url":"https://api.github.com/repos/ChandraAddala/blueflood/hooks","issue_events_url":"https://api.github.com/repos/ChandraAddala/blueflood/issues/events{/number}","events_url":"https://api.github.com/repos/ChandraAddala/blueflood/events","assignees_url":"https://api.github.com/repos/ChandraAddala/blueflood/assignees{/user}","branches_url":"https://api.github.com/repos/ChandraAddala/blueflood/branches{/branch}","tags_url":"https://api.github.com/repos/ChandraAddala/blueflood/tags","blobs_url":"https://api.github.com/repos/ChandraAddala/blueflood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChandraAddala/blueflood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChandraAddala/blueflood/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChandraAddala/blueflood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChandraAddala/blueflood/statuses/{sha}","languages_url":"https://api.github.com/repos/ChandraAddala/blueflood/languages","stargazers_url":"https://api.github.com/repos/ChandraAddala/blueflood/stargazers","contributors_url":"https://api.github.com/repos/ChandraAddala/blueflood/contributors","subscribers_url":"https://api.github.com/repos/ChandraAddala/blueflood/subscribers","subscription_url":"https://api.github.com/repos/ChandraAddala/blueflood/subscription","commits_url":"https://api.github.com/repos/ChandraAddala/blueflood/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChandraAddala/blueflood/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChandraAddala/blueflood/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChandraAddala/blueflood/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChandraAddala/blueflood/contents/{+path}","compare_url":"https://api.github.com/repos/ChandraAddala/blueflood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChandraAddala/blueflood/merges","archive_url":"https://api.github.com/repos/ChandraAddala/blueflood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChandraAddala/blueflood/downloads","issues_url":"https://api.github.com/repos/ChandraAddala/blueflood/issues{/number}","pulls_url":"https://api.github.com/repos/ChandraAddala/blueflood/pulls{/number}","milestones_url":"https://api.github.com/repos/ChandraAddala/blueflood/milestones{/number}","notifications_url":"https://api.github.com/repos/ChandraAddala/blueflood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChandraAddala/blueflood/labels{/name}","releases_url":"https://api.github.com/repos/ChandraAddala/blueflood/releases{/id}","deployments_url":"https://api.github.com/repos/ChandraAddala/blueflood/deployments","created_at":"2015-11-10T17:25:47Z","updated_at":"2016-02-03T15:45:28Z","pushed_at":"2017-03-15T15:35:32Z","git_url":"git://github.com/ChandraAddala/blueflood.git","ssh_url":"git@github.com:ChandraAddala/blueflood.git","clone_url":"https://github.com/ChandraAddala/blueflood.git","svn_url":"https://github.com/ChandraAddala/blueflood","homepage":"http://www.blueflood.io","size":10982,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"rackerlabs:master","ref":"master","sha":"17b8b981b3f193ea18f490ae2931cd92a958be28","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars2.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":10081109,"name":"blueflood","full_name":"rackerlabs/blueflood","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars2.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/blueflood","description":"A distributed system designed to ingest and process time series data","fork":false,"url":"https://api.github.com/repos/rackerlabs/blueflood","forks_url":"https://api.github.com/repos/rackerlabs/blueflood/forks","keys_url":"https://api.github.com/repos/rackerlabs/blueflood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/blueflood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/blueflood/teams","hooks_url":"https://api.github.com/repos/rackerlabs/blueflood/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/blueflood/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/blueflood/events","assignees_url":"https://api.github.com/repos/rackerlabs/blueflood/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/blueflood/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/blueflood/tags","blobs_url":"https://api.github.com/repos/rackerlabs/blueflood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/blueflood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/blueflood/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/blueflood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/blueflood/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/blueflood/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/blueflood/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/blueflood/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/blueflood/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/blueflood/subscription","commits_url":"https://api.github.com/repos/rackerlabs/blueflood/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/blueflood/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/blueflood/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/blueflood/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/blueflood/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/blueflood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/blueflood/merges","archive_url":"https://api.github.com/repos/rackerlabs/blueflood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/blueflood/downloads","issues_url":"https://api.github.com/repos/rackerlabs/blueflood/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/blueflood/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/blueflood/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/blueflood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/blueflood/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/blueflood/releases{/id}","deployments_url":"https://api.github.com/repos/rackerlabs/blueflood/deployments","created_at":"2013-05-15T14:50:39Z","updated_at":"2017-03-13T12:42:44Z","pushed_at":"2017-03-14T17:43:52Z","git_url":"git://github.com/rackerlabs/blueflood.git","ssh_url":"git@github.com:rackerlabs/blueflood.git","clone_url":"https://github.com/rackerlabs/blueflood.git","svn_url":"https://github.com/rackerlabs/blueflood","homepage":"http://www.blueflood.io","size":11184,"stargazers_count":520,"watchers_count":520,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":78,"mirror_url":null,"open_issues_count":34,"forks":78,"open_issues":34,"watchers":520,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/794"},"html":{"href":"https://github.com/rackerlabs/blueflood/pull/794"},"issue":{"href":"https://api.github.com/repos/rackerlabs/blueflood/issues/794"},"comments":{"href":"https://api.github.com/repos/rackerlabs/blueflood/issues/794/comments"},"review_comments":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/794/comments"},"review_comment":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/794/commits"},"statuses":{"href":"https://api.github.com/repos/rackerlabs/blueflood/statuses/045154fdef9e49706fb1931caea5167f127d536b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":44,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"ChandraAddala"}}