{"action":"created","issue":{"url":"https://api.github.com/repos/elasticsearch/kibana/issues/2601","labels_url":"https://api.github.com/repos/elasticsearch/kibana/issues/2601/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/kibana/issues/2601/comments","events_url":"https://api.github.com/repos/elasticsearch/kibana/issues/2601/events","html_url":"https://github.com/elasticsearch/kibana/pull/2601","id":53929138,"number":2601,"title":"Extended stats Agg","user":{"login":"spenceralger","id":1329312,"avatar_url":"https://avatars.githubusercontent.com/u/1329312?v=3","gravatar_id":"","url":"https://api.github.com/users/spenceralger","html_url":"https://github.com/spenceralger","followers_url":"https://api.github.com/users/spenceralger/followers","following_url":"https://api.github.com/users/spenceralger/following{/other_user}","gists_url":"https://api.github.com/users/spenceralger/gists{/gist_id}","starred_url":"https://api.github.com/users/spenceralger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spenceralger/subscriptions","organizations_url":"https://api.github.com/users/spenceralger/orgs","repos_url":"https://api.github.com/users/spenceralger/repos","events_url":"https://api.github.com/users/spenceralger/events{/privacy}","received_events_url":"https://api.github.com/users/spenceralger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elasticsearch/kibana/labels/review","name":"review","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"w33ble","id":404731,"avatar_url":"https://avatars.githubusercontent.com/u/404731?v=3","gravatar_id":"","url":"https://api.github.com/users/w33ble","html_url":"https://github.com/w33ble","followers_url":"https://api.github.com/users/w33ble/followers","following_url":"https://api.github.com/users/w33ble/following{/other_user}","gists_url":"https://api.github.com/users/w33ble/gists{/gist_id}","starred_url":"https://api.github.com/users/w33ble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w33ble/subscriptions","organizations_url":"https://api.github.com/users/w33ble/orgs","repos_url":"https://api.github.com/users/w33ble/repos","events_url":"https://api.github.com/users/w33ble/events{/privacy}","received_events_url":"https://api.github.com/users/w33ble/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/elasticsearch/kibana/milestones/3","labels_url":"https://api.github.com/repos/elasticsearch/kibana/milestones/3/labels","id":815688,"number":3,"title":"4.0.0-RC1","description":"","creator":{"login":"rashidkpc","id":1250387,"avatar_url":"https://avatars.githubusercontent.com/u/1250387?v=3","gravatar_id":"","url":"https://api.github.com/users/rashidkpc","html_url":"https://github.com/rashidkpc","followers_url":"https://api.github.com/users/rashidkpc/followers","following_url":"https://api.github.com/users/rashidkpc/following{/other_user}","gists_url":"https://api.github.com/users/rashidkpc/gists{/gist_id}","starred_url":"https://api.github.com/users/rashidkpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rashidkpc/subscriptions","organizations_url":"https://api.github.com/users/rashidkpc/orgs","repos_url":"https://api.github.com/users/rashidkpc/repos","events_url":"https://api.github.com/users/rashidkpc/events{/privacy}","received_events_url":"https://api.github.com/users/rashidkpc/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":144,"state":"open","created_at":"2014-10-06T19:58:40Z","updated_at":"2015-01-20T15:14:43Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-01-09T23:31:25Z","updated_at":"2015-01-21T01:15:43Z","closed_at":"2015-01-19T19:56:46Z","pull_request":{"url":"https://api.github.com/repos/elasticsearch/kibana/pulls/2601","html_url":"https://github.com/elasticsearch/kibana/pull/2601","diff_url":"https://github.com/elasticsearch/kibana/pull/2601.diff","patch_url":"https://github.com/elasticsearch/kibana/pull/2601.patch"},"body":"Added the extended stats agg, which includes the ability to choose which of the extended stats you want (count, min, max, avg, sum, sum_of_squares, variance, std_deviation) Closes #541 \r\n\r\n![image](https://cloud.githubusercontent.com/assets/1329312/5770735/c671dde8-9cec-11e4-8c67-1858b35c5183.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/elasticsearch/kibana/issues/comments/70767676","html_url":"https://github.com/elasticsearch/kibana/pull/2601#issuecomment-70767676","issue_url":"https://api.github.com/repos/elasticsearch/kibana/issues/2601","id":70767676,"user":{"login":"spenceralger","id":1329312,"avatar_url":"https://avatars.githubusercontent.com/u/1329312?v=3","gravatar_id":"","url":"https://api.github.com/users/spenceralger","html_url":"https://github.com/spenceralger","followers_url":"https://api.github.com/users/spenceralger/followers","following_url":"https://api.github.com/users/spenceralger/following{/other_user}","gists_url":"https://api.github.com/users/spenceralger/gists{/gist_id}","starred_url":"https://api.github.com/users/spenceralger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spenceralger/subscriptions","organizations_url":"https://api.github.com/users/spenceralger/orgs","repos_url":"https://api.github.com/users/spenceralger/repos","events_url":"https://api.github.com/users/spenceralger/events{/privacy}","received_events_url":"https://api.github.com/users/spenceralger/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T01:15:43Z","updated_at":"2015-01-21T01:15:43Z","body":"@jwalton you can definitely do this the latest master.\r\n\r\n**Case 1:**\r\nto plot `rss`, `heapTotal`, and `headUsed` over time you would probably want to start with a chart. Then create three metric aggregations calculating the `average` of each field you are interested in. Then you could create a single bucket aggregation, using a `date_histogram` on your `timestamp` field.\r\n\r\nHere is what that would look like in the visualize editor:\r\n![image](https://cloud.githubusercontent.com/assets/1329312/5829487/217e2c1e-a0d0-11e4-8ec2-8a9646eb6791.png)\r\n\r\n\r\n**Case 2:**\r\nFirst, setup a chart as described in Case 1. Then, add `pid` to the mix by adding a sub-aggregation under the `date_histogram` using the `terms` aggregation on the `pid` field.\r\n\r\nHope that helps!"}}