|
|
@ -758,6 +758,9 @@ class GraphCtrl extends MetricsPanelCtrl { |
|
|
|
private async _getDatasourceRequest() { |
|
|
|
private async _getDatasourceRequest() { |
|
|
|
if(this._datasourceRequest.type === undefined) { |
|
|
|
if(this._datasourceRequest.type === undefined) { |
|
|
|
const datasource = await this._getDatasourceByName(this.panel.datasource); |
|
|
|
const datasource = await this._getDatasourceByName(this.panel.datasource); |
|
|
|
|
|
|
|
if(datasource.access !== 'proxy') { |
|
|
|
|
|
|
|
throw new Error(`"${datasource.name}" datasource has "Browser" access type but only "Server" is supported`); |
|
|
|
|
|
|
|
} |
|
|
|
this._datasourceRequest.type = datasource.type; |
|
|
|
this._datasourceRequest.type = datasource.type; |
|
|
|
} |
|
|
|
} |
|
|
|
return this._datasourceRequest; |
|
|
|
return this._datasourceRequest; |
|
|
|