diff --git a/public/app/core/services/datasource_srv.js b/public/app/core/services/datasource_srv.js index 7c876ebd941..e722aae355b 100644 --- a/public/app/core/services/datasource_srv.js +++ b/public/app/core/services/datasource_srv.js @@ -21,6 +21,10 @@ function (angular, _, coreModule, config) { name = templateSrv.replace(name); + if (name === 'default') { + return this.get(config.defaultDatasource); + } + if (this.datasources[name]) { return $q.when(this.datasources[name]); }