diff --git a/config.json b/config.json index eef73c5..27b13e9 100644 --- a/config.json +++ b/config.json @@ -21,7 +21,7 @@ "clientConfigs": { "metric": { "clientType": "http", - "address": "192.168.1.50:18086" + "address": "http://192.168.1.50:18086" } }, "batchPointsConfigs": { diff --git a/consumer/consumer.go b/consumer/consumer.go index 6d26190..3719e64 100644 --- a/consumer/consumer.go +++ b/consumer/consumer.go @@ -11,6 +11,7 @@ func New(_config *config.Config) *oc.Consumer { } ch.Name = "Metric" ch.ConsumerName = "metric" + ch.InfluxDBClientName = "metric" c := &oc.Consumer{ ConsumerHandler: ch,