|
|
@ -338,12 +338,22 @@ class GraphCtrl extends MetricsPanelCtrl { |
|
|
|
this._analyticUnitsToShow |
|
|
|
this._analyticUnitsToShow |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.analyticService === undefined) { |
|
|
|
|
|
|
|
appEvents.emit( |
|
|
|
|
|
|
|
'alert-error', |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'Select Hastic datasource', |
|
|
|
|
|
|
|
'Panel config -> Visualization' |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} else { |
|
|
|
if(this.analyticService.isUp) { |
|
|
|
if(this.analyticService.isUp) { |
|
|
|
await this.analyticsController.init(); |
|
|
|
await this.analyticsController.init(); |
|
|
|
|
|
|
|
|
|
|
|
this._updatePanelInfo(); |
|
|
|
this._updatePanelInfo(); |
|
|
|
this.analyticsController.updateServerInfo(); |
|
|
|
this.analyticsController.updateServerInfo(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this._graphRenderer = new GraphRenderer( |
|
|
|
this._graphRenderer = new GraphRenderer( |
|
|
|
this.$graphElem, this.timeSrv, this.contextSrv, this.$scope, this.analyticsController |
|
|
|
this.$graphElem, this.timeSrv, this.contextSrv, this.$scope, this.analyticsController |
|
|
|