Added influx checkHealth

This commit is contained in:
2021-11-26 17:55:51 +01:00
parent 354ca32a61
commit fc5900b0ba
2 changed files with 30 additions and 0 deletions

View File

@@ -25,4 +25,8 @@ if(errorMsg){
logger.info("Setup Influx..");
const influxDb = new InfluxDB({url: env.INFLUX_URL, token: env.INFLUX_TOKEN});
await InfluxChecks.checkHealth(influxDb)
.catch(exit(1))
.then((res) => {});
})();