{"action":"created","issue":{"url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1104","labels_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1104/labels{/name}","comments_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1104/comments","events_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1104/events","html_url":"https://github.com/bosun-monitor/bosun/issues/1104","id":91027718,"number":1104,"title":"Custom down sample window / function does not work in template graphs","user":{"login":"gbrayut","id":304401,"avatar_url":"https://avatars.githubusercontent.com/u/304401?v=3","gravatar_id":"","url":"https://api.github.com/users/gbrayut","html_url":"https://github.com/gbrayut","followers_url":"https://api.github.com/users/gbrayut/followers","following_url":"https://api.github.com/users/gbrayut/following{/other_user}","gists_url":"https://api.github.com/users/gbrayut/gists{/gist_id}","starred_url":"https://api.github.com/users/gbrayut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbrayut/subscriptions","organizations_url":"https://api.github.com/users/gbrayut/orgs","repos_url":"https://api.github.com/users/gbrayut/repos","events_url":"https://api.github.com/users/gbrayut/events{/privacy}","received_events_url":"https://api.github.com/users/gbrayut/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bosun-monitor/bosun/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-25T17:33:04Z","updated_at":"2015-07-18T17:24:51Z","closed_at":null,"body":"Using `q(\"sum:600s-avg:traffic.haproxy.server_tr_max{server=ny-service0*}\", \"1h\", \"\")` in a template graph produces the same graph as if the 600s-avg was omitted, so it appears that template graphs do not support custom down samples. The expression produces the desired result when used on the expression page."},"comment":{"url":"https://api.github.com/repos/bosun-monitor/bosun/issues/comments/122569748","html_url":"https://github.com/bosun-monitor/bosun/issues/1104#issuecomment-122569748","issue_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1104","id":122569748,"user":{"login":"kylebrandt","id":1692624,"avatar_url":"https://avatars.githubusercontent.com/u/1692624?v=3","gravatar_id":"","url":"https://api.github.com/users/kylebrandt","html_url":"https://github.com/kylebrandt","followers_url":"https://api.github.com/users/kylebrandt/followers","following_url":"https://api.github.com/users/kylebrandt/following{/other_user}","gists_url":"https://api.github.com/users/kylebrandt/gists{/gist_id}","starred_url":"https://api.github.com/users/kylebrandt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylebrandt/subscriptions","organizations_url":"https://api.github.com/users/kylebrandt/orgs","repos_url":"https://api.github.com/users/kylebrandt/repos","events_url":"https://api.github.com/users/kylebrandt/events{/privacy}","received_events_url":"https://api.github.com/users/kylebrandt/received_events","type":"User","site_admin":false},"created_at":"2015-07-18T17:24:51Z","updated_at":"2015-07-18T17:24:51Z","body":"It would be nice to have this regardless, but do you have example of this being slow? I didn't find that when setting the time in the config page to ensure that I was hitting TSDB cache. There will be the automatic downsampling so the number of data points should be sane.\r\n\r\nAlso as a work around we could use the window() function, but that can generate a lot of tsdb queries depending on what you are doing."}}