diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2024-02-26 09:10:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 09:10:14 -0500 |
commit | 4b7d920b44302adcc7c733bcea3bc5cf8fc3c63f (patch) | |
tree | ba4d8fbee47cc6b7f1cc18f43ee5cc1bdfd5a594 /src/go/collectors/go.d.plugin/modules/powerdns | |
parent | 0e7cde465cc456dd5a35ce7aba5b2e00631bca62 (diff) |
Integrate Go plugin with build system. (#17005)
* Integrate Go plugin with build system.
* Fix Debian packaging rules.
* Add FreeBSD support to Go toolchain handling.
* Add Go ldflags handling.
* Fix version detection when GCCGO is used.
* Fix Go ldflags handling.
* Correctly fix Go toolchain version detection.
* Properly mark Go as a required dependency in CMake.
* Disable VCS stamping as it does not work correctly on some platforms.
* Autodetect minimum required Go version from go.mod files.
This allows us to avoid needing to update the CMakeLists.txt file when
the required version changes in a Go component’s go.mod file.
* Prefix GoTools module name with Netdata to ensure we get our local module.
* Update integrations code to use new Go plugin location.
* Remove old go packaging files.
* keep old logic for initial cleanup that is working
* Re-sync Go plugin sources.
* Fix search order for finding Go toolchain.
* update module name
* fix /usr/local/go overwrite condition
---------
Co-authored-by: Fotis Voutsas <fotis@netdata.cloud>
Co-authored-by: ilyam8 <ilya@netdata.cloud>
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/powerdns')
6 files changed, 10 insertions, 10 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/powerdns/authoritativens.go b/src/go/collectors/go.d.plugin/modules/powerdns/authoritativens.go index 07b7fdbcfe..53073bd150 100644 --- a/src/go/collectors/go.d.plugin/modules/powerdns/authoritativens.go +++ b/src/go/collectors/go.d.plugin/modules/powerdns/authoritativens.go @@ -7,8 +7,8 @@ import ( "net/http" "time" - "github.com/netdata/go.d.plugin/agent/module" - "github.com/netdata/go.d.plugin/pkg/web" + "github.com/netdata/netdata/go/go.d.plugin/agent/module" + "github.com/netdata/netdata/go/go.d.plugin/pkg/web" ) //go:embed "config_schema.json" diff --git a/src/go/collectors/go.d.plugin/modules/powerdns/authoritativens_test.go b/src/go/collectors/go.d.plugin/modules/powerdns/authoritativens_test.go index 71e5c6dc4d..e4eb40e502 100644 --- a/src/go/collectors/go.d.plugin/modules/powerdns/authoritativens_test.go +++ b/src/go/collectors/go.d.plugin/modules/powerdns/authoritativens_test.go @@ -8,8 +8,8 @@ import ( "os" "testing" - "github.com/netdata/go.d.plugin/pkg/tlscfg" - "github.com/netdata/go.d.plugin/pkg/web" + "github.com/netdata/netdata/go/go.d.plugin/pkg/tlscfg" + "github.com/netdata/netdata/go/go.d.plugin/pkg/web" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/src/go/collectors/go.d.plugin/modules/powerdns/charts.go b/src/go/collectors/go.d.plugin/modules/powerdns/charts.go index aa61149e69..119ca4a2e1 100644 --- a/src/go/collectors/go.d.plugin/modules/powerdns/charts.go +++ b/src/go/collectors/go.d.plugin/modules/powerdns/charts.go @@ -2,7 +2,7 @@ package powerdns -import "github.com/netdata/go.d.plugin/agent/module" +import "github.com/netdata/netdata/go/go.d.plugin/agent/module" var charts = module.Charts{ { diff --git a/src/go/collectors/go.d.plugin/modules/powerdns/collect.go b/src/go/collectors/go.d.plugin/modules/powerdns/collect.go index 7a184d9160..359d419803 100644 --- a/src/go/collectors/go.d.plugin/modules/powerdns/collect.go +++ b/src/go/collectors/go.d.plugin/modules/powerdns/collect.go @@ -10,7 +10,7 @@ import ( "net/http" "strconv" - "github.com/netdata/go.d.plugin/pkg/web" + "github.com/netdata/netdata/go/go.d.plugin/pkg/web" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/powerdns/init.go b/src/go/collectors/go.d.plugin/modules/powerdns/init.go index a577db7732..239caacb8d 100644 --- a/src/go/collectors/go.d.plugin/modules/powerdns/init.go +++ b/src/go/collectors/go.d.plugin/modules/powerdns/init.go @@ -6,8 +6,8 @@ import ( "errors" "net/http" - "github.com/netdata/go.d.plugin/agent/module" - "github.com/netdata/go.d.plugin/pkg/web" + "github.com/netdata/netdata/go/go.d.plugin/agent/module" + "github.com/netdata/netdata/go/go.d.plugin/pkg/web" ) func (ns AuthoritativeNS) validateConfig() error { diff --git a/src/go/collectors/go.d.plugin/modules/powerdns/integrations/powerdns_authoritative_server.md b/src/go/collectors/go.d.plugin/modules/powerdns/integrations/powerdns_authoritative_server.md index 4c776193a5..c2134a69a9 100644 --- a/src/go/collectors/go.d.plugin/modules/powerdns/integrations/powerdns_authoritative_server.md +++ b/src/go/collectors/go.d.plugin/modules/powerdns/integrations/powerdns_authoritative_server.md @@ -3,7 +3,7 @@ custom_edit_url: "https://github.com/netdata/go.d.plugin/edit/master/modules/pow meta_yaml: "https://github.com/netdata/go.d.plugin/edit/master/modules/powerdns/metadata.yaml" sidebar_label: "PowerDNS Authoritative Server" learn_status: "Published" -learn_rel_path: "Data Collection/DNS and DHCP Servers" +learn_rel_path: "Collecting Metrics/DNS and DHCP Servers" most_popular: False message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE" endmeta--> @@ -105,7 +105,7 @@ The configuration file name for this integration is `go.d/powerdns.conf`. You can edit the configuration file using the `edit-config` script from the -Netdata [config directory](https://github.com/netdata/netdata/blob/master/docs/configure/nodes.md#the-netdata-config-directory). +Netdata [config directory](https://github.com/netdata/netdata/blob/master/docs/netdata-agent/configuration.md#the-netdata-config-directory). ```bash cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata |