{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/6250","repository_url":"https://api.github.com/repos/grafana/grafana","labels_url":"https://api.github.com/repos/grafana/grafana/issues/6250/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/6250/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/6250/events","html_url":"https://github.com/grafana/grafana/issues/6250","id":182501685,"number":6250,"title":"[Bug] Escaping values in template queries with Prometheus data source breaks","user":{"login":"RichiH","id":754723,"avatar_url":"https://avatars.githubusercontent.com/u/754723?v=3","gravatar_id":"","url":"https://api.github.com/users/RichiH","html_url":"https://github.com/RichiH","followers_url":"https://api.github.com/users/RichiH/followers","following_url":"https://api.github.com/users/RichiH/following{/other_user}","gists_url":"https://api.github.com/users/RichiH/gists{/gist_id}","starred_url":"https://api.github.com/users/RichiH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichiH/subscriptions","organizations_url":"https://api.github.com/users/RichiH/orgs","repos_url":"https://api.github.com/users/RichiH/repos","events_url":"https://api.github.com/users/RichiH/events{/privacy}","received_events_url":"https://api.github.com/users/RichiH/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"bergquist","id":618863,"avatar_url":"https://avatars.githubusercontent.com/u/618863?v=3","gravatar_id":"","url":"https://api.github.com/users/bergquist","html_url":"https://github.com/bergquist","followers_url":"https://api.github.com/users/bergquist/followers","following_url":"https://api.github.com/users/bergquist/following{/other_user}","gists_url":"https://api.github.com/users/bergquist/gists{/gist_id}","starred_url":"https://api.github.com/users/bergquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergquist/subscriptions","organizations_url":"https://api.github.com/users/bergquist/orgs","repos_url":"https://api.github.com/users/bergquist/repos","events_url":"https://api.github.com/users/bergquist/events{/privacy}","received_events_url":"https://api.github.com/users/bergquist/received_events","type":"User","site_admin":false},"assignees":[{"login":"bergquist","id":618863,"avatar_url":"https://avatars.githubusercontent.com/u/618863?v=3","gravatar_id":"","url":"https://api.github.com/users/bergquist","html_url":"https://github.com/bergquist","followers_url":"https://api.github.com/users/bergquist/followers","following_url":"https://api.github.com/users/bergquist/following{/other_user}","gists_url":"https://api.github.com/users/bergquist/gists{/gist_id}","starred_url":"https://api.github.com/users/bergquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergquist/subscriptions","organizations_url":"https://api.github.com/users/bergquist/orgs","repos_url":"https://api.github.com/users/bergquist/repos","events_url":"https://api.github.com/users/bergquist/events{/privacy}","received_events_url":"https://api.github.com/users/bergquist/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-10-12T11:28:49Z","updated_at":"2016-10-14T14:34:27Z","closed_at":"2016-10-12T13:23:56Z","body":"Grafana v3.1.1 (commit: a4d2708) with Prometheus 1.2.1 on CentOS\r\n\r\nI am using a template query and the request in the background is wrong:\r\n\r\n`label_values(power_consumption_joule_total{datacenter=\"$datacenters\",room=\"$datacenter_rooms\"},fuse)` -> `https://<foo>/api/datasources/proxy/1/api/v1/series?match[]=power_consumption_joule_total%7Bdatacenter%3D%22<bar>%22%2Croom%3D%22SV3%5C%5C.2%22%7D&start=1476184997.709&end=1476271397.709`\r\n\r\n`label_values(power_consumption_joule_total{datacenter=\"$datacenters\",room=\"SV3.2\"},fuse)` -> `https://<foo>/api/datasources/proxy/1/api/v1/series?match[]=power_consumption_joule_total%7Bdatacenter%3D%22<bar>%22%2Croom%3D%22SV3.2%22%7D&start=1476184984.963&end=1476271384.963`\r\n\r\n`$datacenter_rooms` is, of course, \"SV3.2\".\r\n\r\nAs you can see, the literal dot is a literal dot. In the template value version, it's replaced with `%5C%5C.`"},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/253817661","html_url":"https://github.com/grafana/grafana/issues/6250#issuecomment-253817661","issue_url":"https://api.github.com/repos/grafana/grafana/issues/6250","id":253817661,"user":{"login":"torkelo","id":10999,"avatar_url":"https://avatars.githubusercontent.com/u/10999?v=3","gravatar_id":"","url":"https://api.github.com/users/torkelo","html_url":"https://github.com/torkelo","followers_url":"https://api.github.com/users/torkelo/followers","following_url":"https://api.github.com/users/torkelo/following{/other_user}","gists_url":"https://api.github.com/users/torkelo/gists{/gist_id}","starred_url":"https://api.github.com/users/torkelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torkelo/subscriptions","organizations_url":"https://api.github.com/users/torkelo/orgs","repos_url":"https://api.github.com/users/torkelo/repos","events_url":"https://api.github.com/users/torkelo/events{/privacy}","received_events_url":"https://api.github.com/users/torkelo/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T14:34:27Z","updated_at":"2016-10-14T14:34:27Z","body":"but I agree some info on how it works in the UI would be good "}}
{"actor":{"display_login":"torkelo"}}