summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/pulsar
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2024-02-26 09:10:14 -0500
committerGitHub <noreply@github.com>2024-02-26 09:10:14 -0500
commit4b7d920b44302adcc7c733bcea3bc5cf8fc3c63f (patch)
treeba4d8fbee47cc6b7f1cc18f43ee5cc1bdfd5a594 /src/go/collectors/go.d.plugin/modules/pulsar
parent0e7cde465cc456dd5a35ce7aba5b2e00631bca62 (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/pulsar')
-rw-r--r--src/go/collectors/go.d.plugin/modules/pulsar/charts.go4
-rw-r--r--src/go/collectors/go.d.plugin/modules/pulsar/collect.go4
-rw-r--r--src/go/collectors/go.d.plugin/modules/pulsar/integrations/apache_pulsar.md4
-rw-r--r--src/go/collectors/go.d.plugin/modules/pulsar/pulsar.go8
-rw-r--r--src/go/collectors/go.d.plugin/modules/pulsar/pulsar_test.go8
5 files changed, 14 insertions, 14 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/pulsar/charts.go b/src/go/collectors/go.d.plugin/modules/pulsar/charts.go
index 6dbb7b49a5..a0599dc8dd 100644
--- a/src/go/collectors/go.d.plugin/modules/pulsar/charts.go
+++ b/src/go/collectors/go.d.plugin/modules/pulsar/charts.go
@@ -6,9 +6,9 @@ import (
"fmt"
"strings"
- "github.com/netdata/go.d.plugin/pkg/prometheus"
+ "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus"
- "github.com/netdata/go.d.plugin/agent/module"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/module"
)
type (
diff --git a/src/go/collectors/go.d.plugin/modules/pulsar/collect.go b/src/go/collectors/go.d.plugin/modules/pulsar/collect.go
index 6c0b93ce00..f28e6cb2c4 100644
--- a/src/go/collectors/go.d.plugin/modules/pulsar/collect.go
+++ b/src/go/collectors/go.d.plugin/modules/pulsar/collect.go
@@ -6,8 +6,8 @@ import (
"errors"
"strings"
- "github.com/netdata/go.d.plugin/pkg/prometheus"
- "github.com/netdata/go.d.plugin/pkg/stm"
+ "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus"
+ "github.com/netdata/netdata/go/go.d.plugin/pkg/stm"
)
func isValidPulsarMetrics(pms prometheus.Series) bool {
diff --git a/src/go/collectors/go.d.plugin/modules/pulsar/integrations/apache_pulsar.md b/src/go/collectors/go.d.plugin/modules/pulsar/integrations/apache_pulsar.md
index 1a16e8cdb9..a7544a0e39 100644
--- a/src/go/collectors/go.d.plugin/modules/pulsar/integrations/apache_pulsar.md
+++ b/src/go/collectors/go.d.plugin/modules/pulsar/integrations/apache_pulsar.md
@@ -3,7 +3,7 @@ custom_edit_url: "https://github.com/netdata/go.d.plugin/edit/master/modules/pul
meta_yaml: "https://github.com/netdata/go.d.plugin/edit/master/modules/pulsar/metadata.yaml"
sidebar_label: "Apache Pulsar"
learn_status: "Published"
-learn_rel_path: "Data Collection/Message Brokers"
+learn_rel_path: "Collecting Metrics/Message Brokers"
most_popular: True
message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE"
endmeta-->
@@ -149,7 +149,7 @@ The configuration file name for this integration is `go.d/pulsar.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
diff --git a/src/go/collectors/go.d.plugin/modules/pulsar/pulsar.go b/src/go/collectors/go.d.plugin/modules/pulsar/pulsar.go
index 8b0ce91019..8b2a01a209 100644
--- a/src/go/collectors/go.d.plugin/modules/pulsar/pulsar.go
+++ b/src/go/collectors/go.d.plugin/modules/pulsar/pulsar.go
@@ -8,11 +8,11 @@ import (
"sync"
"time"
- "github.com/netdata/go.d.plugin/pkg/matcher"
- "github.com/netdata/go.d.plugin/pkg/prometheus"
- "github.com/netdata/go.d.plugin/pkg/web"
+ "github.com/netdata/netdata/go/go.d.plugin/pkg/matcher"
+ "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus"
+ "github.com/netdata/netdata/go/go.d.plugin/pkg/web"
- "github.com/netdata/go.d.plugin/agent/module"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/module"
)
//go:embed "config_schema.json"
diff --git a/src/go/collectors/go.d.plugin/modules/pulsar/pulsar_test.go b/src/go/collectors/go.d.plugin/modules/pulsar/pulsar_test.go
index 3bf9468b67..9ee1679bc0 100644
--- a/src/go/collectors/go.d.plugin/modules/pulsar/pulsar_test.go
+++ b/src/go/collectors/go.d.plugin/modules/pulsar/pulsar_test.go
@@ -9,11 +9,11 @@ import (
"strings"
"testing"
- "github.com/netdata/go.d.plugin/pkg/matcher"
- "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/matcher"
+ "github.com/netdata/netdata/go/go.d.plugin/pkg/tlscfg"
+ "github.com/netdata/netdata/go/go.d.plugin/pkg/web"
- "github.com/netdata/go.d.plugin/agent/module"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/module"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)