{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/5744","repository_url":"https://api.github.com/repos/grafana/grafana","labels_url":"https://api.github.com/repos/grafana/grafana/issues/5744/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/5744/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/5744/events","html_url":"https://github.com/grafana/grafana/issues/5744","id":169749263,"number":5744,"title":"Sorted stacked graph","user":{"login":"superdump","id":302146,"avatar_url":"https://avatars.githubusercontent.com/u/302146?v=3","gravatar_id":"","url":"https://api.github.com/users/superdump","html_url":"https://github.com/superdump","followers_url":"https://api.github.com/users/superdump/followers","following_url":"https://api.github.com/users/superdump/following{/other_user}","gists_url":"https://api.github.com/users/superdump/gists{/gist_id}","starred_url":"https://api.github.com/users/superdump/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdump/subscriptions","organizations_url":"https://api.github.com/users/superdump/orgs","repos_url":"https://api.github.com/users/superdump/repos","events_url":"https://api.github.com/users/superdump/events{/privacy}","received_events_url":"https://api.github.com/users/superdump/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-06T14:37:05Z","updated_at":"2016-08-07T13:59:39Z","closed_at":"2016-08-07T09:13:11Z","body":"* **I'm submitting a ...**\r\n- [ ] Bug report\r\n- [x] Feature request\r\n- [ ] Question / Support request: **Please do not** open a github issue. [Support Options](http://grafana.org/support/)\r\n\r\nPlease include this information:\r\n- What Grafana version are you using?\r\n3.1.1\r\n\r\n- What datasource are you using?\r\nPrometheus and Elasticsearch\r\n\r\n- What OS are you running grafana on?\r\nLinux/Docker\r\n\r\n- What did you do?\r\nQueried container memory usage over time from Prometheus. Presented data as a graph of the memory usage with series split by containers.\r\n\r\n- What was the expected result?\r\nThe series are ordered according to the value for the series at a specific point in time, so that, for example, it is visually easy to recognise the most significant contributor to memory usage.\r\n\r\n- What happened instead?\r\nSeries were unordered and visual identification of most significant contributors to memory usage is more difficult.\r\n\r\n**IMPORTANT** If it relates to metric data viz:\r\n- An image or text representation of your metric query\r\nSee above.\r\n\r\n- The raw query and response for the network request (check this in chrome dev tools network tab, here you can see metric requests and other request, please include the request body and request response)\r\nAn example Prometheus container memory usage query could be:\r\n`sum(container_memory_usage_bytes{hostname=~\"^$hosts$\",name=~\".+\"}) by (name)`"},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/238083969","html_url":"https://github.com/grafana/grafana/issues/5744#issuecomment-238083969","issue_url":"https://api.github.com/repos/grafana/grafana/issues/5744","id":238083969,"user":{"login":"mtanda","id":224552,"avatar_url":"https://avatars.githubusercontent.com/u/224552?v=3","gravatar_id":"","url":"https://api.github.com/users/mtanda","html_url":"https://github.com/mtanda","followers_url":"https://api.github.com/users/mtanda/followers","following_url":"https://api.github.com/users/mtanda/following{/other_user}","gists_url":"https://api.github.com/users/mtanda/gists{/gist_id}","starred_url":"https://api.github.com/users/mtanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtanda/subscriptions","organizations_url":"https://api.github.com/users/mtanda/orgs","repos_url":"https://api.github.com/users/mtanda/repos","events_url":"https://api.github.com/users/mtanda/events{/privacy}","received_events_url":"https://api.github.com/users/mtanda/received_events","type":"User","site_admin":false},"created_at":"2016-08-07T13:59:39Z","updated_at":"2016-08-07T13:59:39Z","body":"I check this little.\r\nThe behavior of Prometheus API \"query\" and \"query_range\" seems to be different.\r\n\r\n\"query\" API: topk(5, foo) return metric list sorted by metric value\r\n\"query_range\" API: topk(5, foo) return metric list sorted by label values (alphabetical order)\r\n\r\n> Series order is the responsibility of the time series database\r\n\r\nIf follow this rule, the datasource plugin can't do anything."}}
{"actor":{"display_login":"mtanda"}}