From 87d772a7d708fec12f48cd8adc0dedff6e1025da Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 26 Aug 2024 10:15:20 +0200 Subject: Adding upstream version 1.47.0. Signed-off-by: Daniel Baumann --- src/go/collectors/go.d.plugin/modules/geth/init.go | 24 ---------------------- 1 file changed, 24 deletions(-) delete mode 100644 src/go/collectors/go.d.plugin/modules/geth/init.go (limited to 'src/go/collectors/go.d.plugin/modules/geth/init.go') diff --git a/src/go/collectors/go.d.plugin/modules/geth/init.go b/src/go/collectors/go.d.plugin/modules/geth/init.go deleted file mode 100644 index 9b649f859..000000000 --- a/src/go/collectors/go.d.plugin/modules/geth/init.go +++ /dev/null @@ -1,24 +0,0 @@ -package geth - -import ( - "errors" - - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" - "github.com/netdata/netdata/go/go.d.plugin/pkg/web" -) - -func (g *Geth) validateConfig() error { - if g.URL == "" { - return errors.New("url not set") - } - return nil -} - -func (g *Geth) initPrometheusClient() (prometheus.Prometheus, error) { - client, err := web.NewHTTPClient(g.Client) - if err != nil { - return nil, err - } - - return prometheus.New(client, g.Request), nil -} -- cgit v1.2.3