mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 11:44:26 -06:00
Fixed datasource proxy and session timeout issue for OpenTSDB, #1667
This commit is contained in:
parent
b5112aeee2
commit
8f73328e25
@ -10,7 +10,7 @@ function (angular, _, kbn) {
|
||||
|
||||
var module = angular.module('grafana.services');
|
||||
|
||||
module.factory('OpenTSDBDatasource', function($q, $http, templateSrv) {
|
||||
module.factory('OpenTSDBDatasource', function($q, backendSrv, templateSrv) {
|
||||
|
||||
function OpenTSDBDatasource(datasource) {
|
||||
this.type = 'opentsdb';
|
||||
@ -73,7 +73,7 @@ function (angular, _, kbn) {
|
||||
data: reqBody
|
||||
};
|
||||
|
||||
return $http(options);
|
||||
return backendSrv.datasourceRequest(options);
|
||||
};
|
||||
|
||||
OpenTSDBDatasource.prototype.performSuggestQuery = function(query, type) {
|
||||
@ -85,7 +85,7 @@ function (angular, _, kbn) {
|
||||
q: query
|
||||
}
|
||||
};
|
||||
return $http(options).then(function(result) {
|
||||
return backendSrv.datasourceRequest(options).then(function(result) {
|
||||
return result.data;
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user