Added influx checkBucket

This commit is contained in:
2021-11-26 18:03:14 +01:00
parent fc5900b0ba
commit e1b2a7e016
2 changed files with 22 additions and 2 deletions

View File

@@ -26,7 +26,11 @@ if(errorMsg){
const influxDb = new InfluxDB({url: env.INFLUX_URL, token: env.INFLUX_TOKEN});
await InfluxChecks.checkHealth(influxDb)
.catch(exit(1))
.then((res) => {});
.then((res) => {return InfluxChecks.checkBucket(influxDb, {
org: env.INFLUX_ORG,
name: env.INFLUX_BUCKET
})})
.then((res) => {})
.catch(exit(1));
})();