From 8eef17fd4c475186979beb24a305a6b1b9dfd9f0 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 6 Dec 2021 13:01:10 +0100 Subject: [PATCH] Fix wrong default-tag setting --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index a89ae31..66cff1f 100644 --- a/src/main.js +++ b/src/main.js @@ -60,7 +60,7 @@ if(errorMsg){ logger.debug("Get WriteApi & set default-hostname to", `'${env.HOSTNAME}'`); const influxWriteApi = influxDb.getWriteApi(env.INFLUX_ORG, env.INFLUX_BUCKET, "us"); - influxWriteApi.useDefaultTags("hostname", env.HOSTNAME); + influxWriteApi.useDefaultTags({"hostname": env.HOSTNAME}); logger.info("Influx ok"); logger.info("Starting tcpdump..");