@@ -73,7 +73,7 @@ public InfluxdbPlugin() {
7373 udpAgent .setLocalAddr (udpLocalIp , udpLocalPort );
7474 udpAgent .setTarget (udpTargetIp , udpTargetPort );
7575 } else {
76- influx = InfluxDBFactory .connect ("http//" + httpTargetIp + ":" + httpTargetPort , id , password );
76+ influx = InfluxDBFactory .connect ("http: //" + httpTargetIp + ":" + httpTargetPort , id , password );
7777 influx .enableBatch (200 , 200 , TimeUnit .MILLISECONDS );
7878 influx .createDatabase (dbName );
7979 }
@@ -90,7 +90,7 @@ public void run() {
9090 udpAgent .setLocalAddr (udpLocalIp , udpLocalPort );
9191 udpAgent .setTarget (udpTargetIp , udpTargetPort );
9292 } else {
93- influx = InfluxDBFactory .connect ("http//" + httpTargetIp + ":" + httpTargetPort , id , password );
93+ influx = InfluxDBFactory .connect ("http: //" + httpTargetIp + ":" + httpTargetPort , id , password );
9494 influx .createDatabase (dbName );
9595 }
9696 }
@@ -128,7 +128,7 @@ public void run() {
128128 retentionPolicy = newRetentionPolicy ;
129129 id = newId ;
130130 password = newPassword ;
131- influx = InfluxDBFactory .connect ("http//" + httpTargetIp + ":" + httpTargetPort , id , password );
131+ influx = InfluxDBFactory .connect ("http: //" + httpTargetIp + ":" + httpTargetPort , id , password );
132132 }
133133
134134 }
0 commit comments