{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/7664","repository_url":"https://api.github.com/repos/grafana/grafana","labels_url":"https://api.github.com/repos/grafana/grafana/issues/7664/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/7664/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/7664/events","html_url":"https://github.com/grafana/grafana/issues/7664","id":210056008,"number":7664,"title":"[Feature request] Make $interval available in Prometheus template \"query\" field","user":{"login":"brian-brazil","id":7115638,"avatar_url":"https://avatars3.githubusercontent.com/u/7115638?v=3","gravatar_id":"","url":"https://api.github.com/users/brian-brazil","html_url":"https://github.com/brian-brazil","followers_url":"https://api.github.com/users/brian-brazil/followers","following_url":"https://api.github.com/users/brian-brazil/following{/other_user}","gists_url":"https://api.github.com/users/brian-brazil/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-brazil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-brazil/subscriptions","organizations_url":"https://api.github.com/users/brian-brazil/orgs","repos_url":"https://api.github.com/users/brian-brazil/repos","events_url":"https://api.github.com/users/brian-brazil/events{/privacy}","received_events_url":"https://api.github.com/users/brian-brazil/received_events","type":"User","site_admin":false},"labels":[{"id":274350203,"url":"https://api.github.com/repos/grafana/grafana/labels/datasource:%20Prometheus","name":"datasource: Prometheus","color":"009800","default":false},{"id":81198721,"url":"https://api.github.com/repos/grafana/grafana/labels/type:%20feature%20request","name":"type: feature request","color":"dddddd","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-24T14:03:49Z","updated_at":"2017-02-28T19:54:53Z","closed_at":null,"body":"Due to the evaluation model of Prometheus, topk() and friends don't work as expected as they're per step rather than across the whole graph. If we could have an expression like \"topk(rate(metric[$interval]), 5)\" that'd allow us to select the relevant timeseries via templating, and then graph them.\r\n\r\nThis should probably only work with the On Time Range Change setting.\r\n"},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/283144497","html_url":"https://github.com/grafana/grafana/issues/7664#issuecomment-283144497","issue_url":"https://api.github.com/repos/grafana/grafana/issues/7664","id":283144497,"user":{"login":"bspradling8","id":8116831,"avatar_url":"https://avatars2.githubusercontent.com/u/8116831?v=3","gravatar_id":"","url":"https://api.github.com/users/bspradling8","html_url":"https://github.com/bspradling8","followers_url":"https://api.github.com/users/bspradling8/followers","following_url":"https://api.github.com/users/bspradling8/following{/other_user}","gists_url":"https://api.github.com/users/bspradling8/gists{/gist_id}","starred_url":"https://api.github.com/users/bspradling8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bspradling8/subscriptions","organizations_url":"https://api.github.com/users/bspradling8/orgs","repos_url":"https://api.github.com/users/bspradling8/repos","events_url":"https://api.github.com/users/bspradling8/events{/privacy}","received_events_url":"https://api.github.com/users/bspradling8/received_events","type":"User","site_admin":false},"created_at":"2017-02-28T19:54:53Z","updated_at":"2017-02-28T19:54:53Z","body":"Did you create a templating variable of type `Interval`? I created a variable of type `Interval` and called it `interval`. My issue is that I would like to get the current time range as an interval for my query, but it seems that in the template variable, the lowest step you can have is 2 which divides the current time range in half which I don't want. Is it possible to make this 1 or have another way to get the entire time range as a variable?"}}
{"actor":{"display_login":"bspradling8"}}