From f980aa2ad33bf4da765fc1fbfd0b9a7621fa1382 Mon Sep 17 00:00:00 2001 From: Oscar Romeu Date: Sun, 5 Dec 2021 21:02:17 +0100 Subject: [PATCH] Changed influxdb endpoint client connection [k3s] --- examples/influxdb/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/influxdb/main.go b/examples/influxdb/main.go index 065a5a2..c2da7e9 100644 --- a/examples/influxdb/main.go +++ b/examples/influxdb/main.go @@ -130,7 +130,7 @@ func ProcessArgs(cfg interface{}) Args { func InitDB(conf Config) (client.Client, error) { - c := client.NewClient("http://localhost:8086", fmt.Sprintf("%s:%s", "admin", "admin")) + c := client.NewClient("http://influxdb:8086", fmt.Sprintf("%s:%s", "admin", "admin")) return c, nil