hastic-zzz / hastic-server

Hastic data management server for analyzing patterns and anomalies from Grafana
GNU General Public License v3.0
330 stars 23 forks source link

Configurable analytic start in hastic-server #856

Open jonyrock-back opened 4 years ago

jonyrock-back commented 4 years ago

we have logic in server:

  private async _onAnalyticsDown() {
    const msg = 'Analytics is down';
    console.log(msg);
    this._alertService.sendMessage(msg, WebhookType.FAILURE);
    if(this._productionMode && !this._inDocker) {
      await AnalyticsService._runAnalyticsProcess();
    }
  }

actually, it is not correct when we start analytics on a different host. So let's make a config about this.