diff --git a/src/main.js b/src/main.js index aa95a1c..95e1037 100644 --- a/src/main.js +++ b/src/main.js @@ -2,6 +2,7 @@ const logger = require("./helper/logger.js")("main"); const { requireEnvVars } = require("./helper/env.js"); const { exit } = require("process"); +const { InfluxDB } = require('@influxdata/influxdb-client'); /// Setup ENVs const env = process.env; @@ -20,3 +21,8 @@ if(errorMsg){ exit(1); } +(async function() { + logger.info("Setup Influx.."); + const influxDb = new InfluxDB({url: env.INFLUX_URL, token: env.INFLUX_TOKEN}); + +})();