Data source proxy, and session timeout fix for influxdb, #1667

This commit is contained in:
Torkel Ödegaard
2015-04-07 09:50:03 +02:00
parent 22adf0d06e
commit b5112aeee2
3 changed files with 8 additions and 78 deletions

View File

@@ -10,7 +10,7 @@ function (angular, _, config, kbn, moment) {
var module = angular.module('grafana.services');
module.factory('ElasticDatasource', function($q, $http, templateSrv) {
module.factory('ElasticDatasource', function($q, backendSrv, templateSrv) {
function ElasticDatasource(datasource) {
this.type = 'elasticsearch';
@@ -38,7 +38,7 @@ function (angular, _, config, kbn, moment) {
};
}
return $http(options);
return backendSrv.datasourceRequest(options);
};
ElasticDatasource.prototype._get = function(url) {