Merge branch 'cloudwatch' of https://github.com/mtanda/grafana into cloudwatch

This commit is contained in:
Torkel Ödegaard
2015-08-31 15:45:49 +02:00
93 changed files with 25533 additions and 5 deletions

View File

@ -72,8 +72,12 @@ func ProxyDataSourceRequest(c *middleware.Context) {
return
}
proxyPath := c.Params("*")
proxy := NewReverseProxy(&query.Result, proxyPath)
proxy.Transport = dataProxyTransport
proxy.ServeHTTP(c.RW(), c.Req.Request)
if query.Result.Type == m.DS_CLOUDWATCH {
ProxyCloudWatchDataSourceRequest(c)
} else {
proxyPath := c.Params("*")
proxy := NewReverseProxy(&query.Result, proxyPath)
proxy.Transport = dataProxyTransport
proxy.ServeHTTP(c.RW(), c.Req.Request)
}
}