diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:15:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:15:20 +0000 |
commit | 87d772a7d708fec12f48cd8adc0dedff6e1025da (patch) | |
tree | 1fee344c64cc3f43074a01981e21126c8482a522 /src/go/collectors/go.d.plugin/modules/couchbase/collect.go | |
parent | Adding upstream version 1.46.3. (diff) | |
download | netdata-upstream.tar.xz netdata-upstream.zip |
Adding upstream version 1.47.0.upstream/1.47.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/go/plugin/go.d/modules/couchbase/collect.go (renamed from src/go/collectors/go.d.plugin/modules/couchbase/collect.go) | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/couchbase/collect.go b/src/go/plugin/go.d/modules/couchbase/collect.go index 2d4d3626d..6027ac918 100644 --- a/src/go/collectors/go.d.plugin/modules/couchbase/collect.go +++ b/src/go/plugin/go.d/modules/couchbase/collect.go @@ -9,8 +9,8 @@ import ( "net/http" "net/url" - "github.com/netdata/netdata/go/go.d.plugin/agent/module" - "github.com/netdata/netdata/go/go.d.plugin/pkg/web" + "github.com/netdata/netdata/go/plugins/plugin/go.d/agent/module" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/web" ) const ( @@ -112,11 +112,13 @@ func (cb *Couchbase) addDimToChart(chartID string, dim *module.Dim) { } func (cb *Couchbase) scrapeCouchbase() (*cbMetrics, error) { - ms := &cbMetrics{} - req, _ := web.NewHTTPRequest(cb.Request) - req.URL.Path = urlPathBucketsStats + req, err := web.NewHTTPRequestWithPath(cb.Request, urlPathBucketsStats) + if err != nil { + return nil, err + } req.URL.RawQuery = url.Values{"skipMap": []string{"true"}}.Encode() + ms := &cbMetrics{} if err := cb.doOKDecode(req, &ms.BucketsBasicStats); err != nil { return nil, err } |