Skip to content

Commit 392cc6f

Browse files
committed
http typo bug fix
1 parent 36d8e01 commit 392cc6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/scouter/plugin/server/influxdb/InfluxdbPlugin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)