summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/agent
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/collectors/go.d.plugin/agent')
-rw-r--r--src/go/collectors/go.d.plugin/agent/agent.go24
-rw-r--r--src/go/collectors/go.d.plugin/agent/agent_test.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/confgroup/group.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/confgroup/group_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/cache.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/config.go6
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/dummy/config.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/dummy/discovery.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/dummy/discovery_test.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/dyncfg/config.go6
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/dyncfg/dyncfg.go8
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/dyncfg/dyncfg_test.go6
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/dyncfg/ext.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/file/config.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/file/discovery.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/file/parse.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/file/parse_test.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/file/read.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/file/read_test.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/file/sim_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/file/watch.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/file/watch_test.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/manager.go8
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/manager_test.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/hostsocket/net.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/hostsocket/net_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/hostsocket/sim_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/kubernetes/kubernetes.go6
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/kubernetes/kubernetes_test.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/kubernetes/pod.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/kubernetes/pod_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/kubernetes/service.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/kubernetes/service_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/kubernetes/sim_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/accumulator.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/classify.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/classify_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/compose.go6
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/compose_test.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/config.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/pipeline.go10
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/pipeline_test.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/selector.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/selector_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/sim_test.go6
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/sd.go6
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/sd_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/sim_test.go6
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sim_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/executable/executable.go42
-rw-r--r--src/go/collectors/go.d.plugin/agent/executable/name.go22
-rw-r--r--src/go/collectors/go.d.plugin/agent/filestatus/manager.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/filestatus/manager_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/filestatus/store.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/filestatus/store_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/functions/manager.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/jobmgr/cache.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/jobmgr/di.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/jobmgr/manager.go6
-rw-r--r--src/go/collectors/go.d.plugin/agent/jobmgr/manager_test.go6
-rw-r--r--src/go/collectors/go.d.plugin/agent/jobmgr/noop.go4
-rw-r--r--src/go/collectors/go.d.plugin/agent/jobmgr/run.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/module/job.go8
-rw-r--r--src/go/collectors/go.d.plugin/agent/module/module.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/setup.go14
-rw-r--r--src/go/collectors/go.d.plugin/agent/setup_test.go2
-rw-r--r--src/go/collectors/go.d.plugin/agent/vnodes/vnodes.go2
67 files changed, 180 insertions, 160 deletions
diff --git a/src/go/collectors/go.d.plugin/agent/agent.go b/src/go/collectors/go.d.plugin/agent/agent.go
index 9d6a85f91f..2f010f5bd4 100644
--- a/src/go/collectors/go.d.plugin/agent/agent.go
+++ b/src/go/collectors/go.d.plugin/agent/agent.go
@@ -12,18 +12,18 @@ import (
"syscall"
"time"
- "github.com/netdata/go.d.plugin/agent/confgroup"
- "github.com/netdata/go.d.plugin/agent/discovery"
- "github.com/netdata/go.d.plugin/agent/filelock"
- "github.com/netdata/go.d.plugin/agent/filestatus"
- "github.com/netdata/go.d.plugin/agent/functions"
- "github.com/netdata/go.d.plugin/agent/jobmgr"
- "github.com/netdata/go.d.plugin/agent/module"
- "github.com/netdata/go.d.plugin/agent/netdataapi"
- "github.com/netdata/go.d.plugin/agent/safewriter"
- "github.com/netdata/go.d.plugin/agent/vnodes"
- "github.com/netdata/go.d.plugin/logger"
- "github.com/netdata/go.d.plugin/pkg/multipath"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/discovery"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/filelock"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/filestatus"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/functions"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/jobmgr"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/module"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/netdataapi"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/safewriter"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/vnodes"
+ "github.com/netdata/netdata/go/go.d.plugin/logger"
+ "github.com/netdata/netdata/go/go.d.plugin/pkg/multipath"
"github.com/mattn/go-isatty"
)
diff --git a/src/go/collectors/go.d.plugin/agent/agent_test.go b/src/go/collectors/go.d.plugin/agent/agent_test.go
index 2a15a6b733..859009bd72 100644
--- a/src/go/collectors/go.d.plugin/agent/agent_test.go
+++ b/src/go/collectors/go.d.plugin/agent/agent_test.go
@@ -9,8 +9,8 @@ import (
"testing"
"time"
- "github.com/netdata/go.d.plugin/agent/module"
- "github.com/netdata/go.d.plugin/agent/safewriter"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/module"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/safewriter"
"github.com/stretchr/testify/assert"
)
diff --git a/src/go/collectors/go.d.plugin/agent/confgroup/group.go b/src/go/collectors/go.d.plugin/agent/confgroup/group.go
index 649a145d7a..21f8fcb6f7 100644
--- a/src/go/collectors/go.d.plugin/agent/confgroup/group.go
+++ b/src/go/collectors/go.d.plugin/agent/confgroup/group.go
@@ -8,8 +8,8 @@ import (
"regexp"
"strings"
- "github.com/netdata/go.d.plugin/agent/hostinfo"
- "github.com/netdata/go.d.plugin/agent/module"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/hostinfo"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/module"
"github.com/ilyam8/hashstructure"
)
diff --git a/src/go/collectors/go.d.plugin/agent/confgroup/group_test.go b/src/go/collectors/go.d.plugin/agent/confgroup/group_test.go
index af9a804e83..467b2e87dd 100644
--- a/src/go/collectors/go.d.plugin/agent/confgroup/group_test.go
+++ b/src/go/collectors/go.d.plugin/agent/confgroup/group_test.go
@@ -5,7 +5,7 @@ package confgroup
import (
"testing"
- "github.com/netdata/go.d.plugin/agent/module"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/module"
"github.com/stretchr/testify/assert"
)
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/cache.go b/src/go/collectors/go.d.plugin/agent/discovery/cache.go
index 7187246b2d..72a49ac561 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/cache.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/cache.go
@@ -3,7 +3,7 @@
package discovery
import (
- "github.com/netdata/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
)
type cache map[string]*confgroup.Group
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/config.go b/src/go/collectors/go.d.plugin/agent/discovery/config.go
index d19770d351..1f4e9d10af 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/config.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/config.go
@@ -5,9 +5,9 @@ package discovery
import (
"errors"
- "github.com/netdata/go.d.plugin/agent/confgroup"
- "github.com/netdata/go.d.plugin/agent/discovery/dummy"
- "github.com/netdata/go.d.plugin/agent/discovery/file"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/discovery/dummy"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/discovery/file"
)
type Config struct {
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/dummy/config.go b/src/go/collectors/go.d.plugin/agent/discovery/dummy/config.go
index 8fc66ef129..4da80a8dcb 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/dummy/config.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/dummy/config.go
@@ -5,7 +5,7 @@ package dummy
import (
"errors"
- "github.com/netdata/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
)
type Config struct {
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/dummy/discovery.go b/src/go/collectors/go.d.plugin/agent/discovery/dummy/discovery.go
index acd0b8f1cb..40e8d6693b 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/dummy/discovery.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/dummy/discovery.go
@@ -7,8 +7,8 @@ import (
"fmt"
"log/slog"
- "github.com/netdata/go.d.plugin/agent/confgroup"
- "github.com/netdata/go.d.plugin/logger"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/logger"
)
func NewDiscovery(cfg Config) (*Discovery, error) {
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/dummy/discovery_test.go b/src/go/collectors/go.d.plugin/agent/discovery/dummy/discovery_test.go
index 45eb39aff4..2fdf5a1606 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/dummy/discovery_test.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/dummy/discovery_test.go
@@ -7,8 +7,8 @@ import (
"testing"
"time"
- "github.com/netdata/go.d.plugin/agent/confgroup"
- "github.com/netdata/go.d.plugin/agent/module"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/module"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/config.go b/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/config.go
index ebda00f500..d16a8b1bd7 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/config.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/config.go
@@ -3,9 +3,9 @@
package dyncfg
import (
- "github.com/netdata/go.d.plugin/agent/confgroup"
- "github.com/netdata/go.d.plugin/agent/functions"
- "github.com/netdata/go.d.plugin/agent/module"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/functions"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/module"
)
type Config struct {
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/dyncfg.go b/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/dyncfg.go
index 2f3c342340..7cbd9bbd4d 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/dyncfg.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/dyncfg.go
@@ -10,10 +10,10 @@ import (
"strings"
"sync"
- "github.com/netdata/go.d.plugin/agent/confgroup"
- "github.com/netdata/go.d.plugin/agent/functions"
- "github.com/netdata/go.d.plugin/agent/module"
- "github.com/netdata/go.d.plugin/logger"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/functions"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/module"
+ "github.com/netdata/netdata/go/go.d.plugin/logger"
"gopkg.in/yaml.v2"
)
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/dyncfg_test.go b/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/dyncfg_test.go
index 3eee1cef30..f78309714f 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/dyncfg_test.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/dyncfg_test.go
@@ -8,9 +8,9 @@ import (
"testing"
"time"
- "github.com/netdata/go.d.plugin/agent/confgroup"
- "github.com/netdata/go.d.plugin/agent/functions"
- "github.com/netdata/go.d.plugin/agent/module"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/functions"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/module"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/ext.go b/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/ext.go
index 910475c3d5..1907b03e51 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/ext.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/dyncfg/ext.go
@@ -5,7 +5,7 @@ import (
"os"
"strings"
- "github.com/netdata/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
"gopkg.in/yaml.v2"
)
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/file/config.go b/src/go/collectors/go.d.plugin/agent/discovery/file/config.go
index f8ef6b5fdb..cc19ee4458 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/file/config.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/file/config.go
@@ -5,7 +5,7 @@ package file
import (
"errors"
- "github.com/netdata/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
)
type Config struct {
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/file/discovery.go b/src/go/collectors/go.d.plugin/agent/discovery/file/discovery.go
index 028644dd47..cdeb9305bd 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/file/discovery.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/file/discovery.go
@@ -9,8 +9,8 @@ import (
"log/slog"
"sync"
- "github.com/netdata/go.d.plugin/agent/confgroup"
- "github.com/netdata/go.d.plugin/logger"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/logger"
)
var log = logger.New().With(
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/file/parse.go b/src/go/collectors/go.d.plugin/agent/discovery/file/parse.go
index b6ba52372a..e8ed92e56c 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/file/parse.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/file/parse.go
@@ -7,7 +7,7 @@ import (
"os"
"path/filepath"
- "github.com/netdata/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
"gopkg.in/yaml.v2"
)
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/file/parse_test.go b/src/go/collectors/go.d.plugin/agent/discovery/file/parse_test.go
index e18d43013e..5f154b10e7 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/file/parse_test.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/file/parse_test.go
@@ -5,8 +5,8 @@ package file
import (
"testing"
- "github.com/netdata/go.d.plugin/agent/confgroup"
- "github.com/netdata/go.d.plugin/agent/module"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/module"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/file/read.go b/src/go/collectors/go.d.plugin/agent/discovery/file/read.go
index 3d27955ade..3fb2c786ce 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/file/read.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/file/read.go
@@ -7,8 +7,8 @@ import (
"os"
"path/filepath"
- "github.com/netdata/go.d.plugin/agent/confgroup"
- "github.com/netdata/go.d.plugin/logger"
+ "github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
+ "github.com/netdata/netdata/go/go.d.plugin/logger"
)
type (
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/file/read_test.go b/src/go/collectors/go.d.plugin/agent/discovery/file/read_test.go
index 2bfa20a778..c27ec01f28 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/file/read_test.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/file/read_test.go
@@ -5,8 +5,8 @@ package file
import (
"testing"