diff options
Diffstat (limited to '')
-rw-r--r-- | src/go/plugin/go.d/modules/powerdns/collect.go (renamed from src/go/collectors/go.d.plugin/modules/powerdns/collect.go) | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/powerdns/collect.go b/src/go/plugin/go.d/modules/powerdns/collect.go index 359d41980..c2831e0f2 100644 --- a/src/go/collectors/go.d.plugin/modules/powerdns/collect.go +++ b/src/go/plugin/go.d/modules/powerdns/collect.go @@ -10,7 +10,7 @@ import ( "net/http" "strconv" - "github.com/netdata/netdata/go/go.d.plugin/pkg/web" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/web" ) const ( @@ -65,8 +65,7 @@ func (ns *AuthoritativeNS) collectStatistics(collected map[string]int64, statist } func (ns *AuthoritativeNS) scrapeStatistics() ([]statisticMetric, error) { - req, _ := web.NewHTTPRequest(ns.Request) - req.URL.Path = urlPathLocalStatistics + req, _ := web.NewHTTPRequestWithPath(ns.Request, urlPathLocalStatistics) var statistics statisticMetrics if err := ns.doOKDecode(req, &statistics); err != nil { |