Skip to content

Commit

Permalink
Merge branch 'main' into add_udplog
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme authored Oct 20, 2023
2 parents 85cca99 + f5469f3 commit 43169a1
Show file tree
Hide file tree
Showing 36 changed files with 87 additions and 95 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- `--otlp-endpoint host:port`: Set the OTLP gRPC endpoint for captured traces (default: `http://LISTEN_INTERFACE:4317`
where `LISTEN_INTERFACE` is the value from the `--listen-interface` option if specified, or `127.0.0.1` otherwise)
- (Splunk) Add UDP log receiver ([#3826](https://github.com/signalfx/splunk-otel-collector/pull/3826))
- (Splunk) Add the loadbalancing exporter to the distribution ([#3825](https://github.com/signalfx/splunk-otel-collector/pull/3825))

## v0.86.0

Expand Down
27 changes: 14 additions & 13 deletions docs/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,20 @@ The distribution offers support for the following components.

<div>

| Exporters | Stability |
|:---------------------------------------------------------------------------------------------------------------------|:-----------------|
| [debug](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/debugexporter) | [in development] |
| [file](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/fileexporter) | [alpha] |
| [kafka](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/kafkaexporter) | [beta] |
| [httpsink](../internal/exporter/httpsinkexporter) | [in development] |
| [logging](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/loggingexporter) | [deprecated] |
| [otlp](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/otlpexporter) | [stable] |
| [otlphttp](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/otlphttpexporter) | [stable] |
| [pulsar](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/pulsarexporter) | [alpha] |
| [signalfx](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/signalfxexporter) | [beta] |
| [sapm](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/sapmexporter) | [beta] |
| [splunk_hec](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/splunkhecexporter) | [beta] |
| Exporters | Stability |
|:----------------------------------------------------------------------------------------------------------------------------|:-----------------|
| [debug](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/debugexporter) | [in development] |
| [file](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/fileexporter) | [alpha] |
| [kafka](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/kafkaexporter) | [beta] |
| [httpsink](../internal/exporter/httpsinkexporter) | [in development] |
| [loadbalancing](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/loadbalancingexporter) | [beta] |
| [logging](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/loggingexporter) | [deprecated] |
| [otlp](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/otlpexporter) | [stable] |
| [otlphttp](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/otlphttpexporter) | [stable] |
| [pulsar](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/pulsarexporter) | [alpha] |
| [signalfx](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/signalfxexporter) | [beta] |
| [sapm](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/sapmexporter) | [beta] |
| [splunk_hec](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/splunkhecexporter) | [beta] |

</div>

Expand Down
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector v0.87.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter v0.87.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter v0.87.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter v0.87.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/pulsarexporter v0.87.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sapmexporter v0.87.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter v0.87.0
Expand Down Expand Up @@ -166,6 +167,7 @@ require (
github.com/moby/patternmatcher v0.5.0 // indirect
github.com/moby/sys/sequential v0.5.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/kafka v0.87.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/batchpersignal v0.87.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.87.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.87.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheus v0.87.0 // indirect
Expand Down Expand Up @@ -205,6 +207,7 @@ require (
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230913181813-007df8e322eb // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 // indirect
sigs.k8s.io/controller-runtime v0.16.2 // indirect
)

require (
Expand Down Expand Up @@ -262,7 +265,7 @@ require (
github.com/cloudfoundry-incubator/uaago v0.0.0-20190307164349-8136b7bbe76e // indirect
github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4 // indirect
github.com/containerd/containerd v1.7.6 // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-semver v0.3.1 // indirect
github.com/danieljoos/wincred v1.1.2 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/denisenkom/go-mssqldb v0.12.3 // indirect
Expand Down
10 changes: 9 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,9 @@ github.com/containerd/containerd v1.6.18 h1:qZbsLvmyu+Vlty0/Ex5xc0z2YtKpIsb5n45m
github.com/containerd/containerd v1.6.18/go.mod h1:1RdCUu95+gc2v9t3IL+zIlpClSmew7/0YS8O5eQZrOw=
github.com/containerd/ttrpc v1.1.0/go.mod h1:XX4ZTnoOId4HklF4edwc4DcqskFZuvXB1Evzy5KFQpQ=
github.com/containerd/typeurl v1.0.2/go.mod h1:9trJWW2sRlGub4wZJRTW83VtbOLS6hwcDZXTn6oPz9s=
github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM=
github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
github.com/coreos/go-semver v0.3.1 h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr4=
github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec=
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
Expand Down Expand Up @@ -462,6 +463,7 @@ github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ=
github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
github.com/go-logr/zapr v1.2.4 h1:QHVo+6stLbfJmYGkQ7uGHUCu5hnAFAj6mDe6Ea0SeOo=
github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY=
github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
Expand Down Expand Up @@ -1114,6 +1116,8 @@ github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter v0.87.0/go.mod h1:hCW56IompCDBqn91bU5tseVCsiMi3cjJCwwYwHIW8Qs=
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter v0.87.0 h1:JADmKOCiLljFDjic3Fb5yyPsvNj7IBJyZU6QrnOUZH0=
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter v0.87.0/go.mod h1:WKjmyVi+Xhhvuvj2J+1Z0fXvY38MKRbREe2aR5UPOIw=
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter v0.87.0 h1:+apdZt5DPPIxjBrayu1muKbvUK3zqsfgb+3fMh6Hnyo=
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter v0.87.0/go.mod h1:JXVmcuySy3xyo3JjoU+CrNWy/C12Fw6JB1HWXf26HwQ=
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter v0.87.0 h1:52+RVfmzj+JePVJuD07gfppdzF9fsKASIRGzTC05QIg=
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/pulsarexporter v0.87.0 h1:eWYdD2BOC4PtYi2zlJt2qrZkXrld3YWqowdu3tUJVAg=
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/pulsarexporter v0.87.0/go.mod h1:v/wW5xSrLdfOExRRe5LKsaYuxj0E7K9/mho5BNITD+k=
Expand Down Expand Up @@ -1170,6 +1174,8 @@ github.com/open-telemetry/opentelemetry-collector-contrib/internal/splunk v0.87.
github.com/open-telemetry/opentelemetry-collector-contrib/internal/splunk v0.87.0/go.mod h1:UzFeYKNUASQbotHqmgwyQaxWzNnxs+raNJlEfjm2dMQ=
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/batchperresourceattr v0.87.0 h1:Y33/Rqo5qBOc29oobYHQdzkZF/EliWepokS0YDRbkjg=
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/batchperresourceattr v0.87.0/go.mod h1:rKGi5XluJau5mJNh1Mj4k1GafWnCdYobT9YJW/+zzbY=
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/batchpersignal v0.87.0 h1:sy75u6ZwBvRwv9RjEF65SqlkBsAeZFqF4+eFOLhIsJQ=
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/batchpersignal v0.87.0/go.mod h1:trWrnucNKCkBEYpe5IBo+RgGQtzwMT454sGkWsggmDM=
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/experimentalmetricmetadata v0.87.0 h1:In1MvDALXpwvKssEX9FAWS1aAAhw2XIBsTb5ti2iFMg=
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/experimentalmetricmetadata v0.87.0/go.mod h1:BYadY3muPFv/Bpla5px88egUfaR6aNhTZsi39dIGgWs=
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.87.0 h1:jtdLqdRyt29EUd6H6p431/XmGHwS6BHB5s/EqCfEWoc=
Expand Down Expand Up @@ -2267,6 +2273,8 @@ rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
sigs.k8s.io/controller-runtime v0.16.2 h1:mwXAVuEk3EQf478PQwQ48zGOXvW27UJc8NHktQVuIPU=
sigs.k8s.io/controller-runtime v0.16.2/go.mod h1:vpMu3LpI5sYWtujJOa2uPK61nB5rbwlN7BAB8aSLvGU=
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0=
sigs.k8s.io/structured-merge-diff/v4 v4.3.0 h1:UZbZAZfX0wV2zr7YZorDz6GXROfDFj6LvqCRm4VUVKk=
Expand Down
2 changes: 2 additions & 0 deletions internal/components/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/pulsarexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sapmexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter"
Expand Down Expand Up @@ -187,6 +188,7 @@ func Get() (otelcol.Factories, error) {
debugexporter.NewFactory(),
fileexporter.NewFactory(),
kafkaexporter.NewFactory(),
loadbalancingexporter.NewFactory(),
loggingexporter.NewFactory(),
otlpexporter.NewFactory(),
otlphttpexporter.NewFactory(),
Expand Down
1 change: 1 addition & 0 deletions internal/components/components_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func TestDefaultComponents(t *testing.T) {
"debug",
"file",
"kafka",
"loadbalancing",
"logging",
"otlp",
"otlphttp",
Expand Down
3 changes: 1 addition & 2 deletions internal/signalfx-agent/pkg/core/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,7 @@ var (
// BundlePythonHomeEnvvar returns an envvar string that sets the PYTHONHOME envvar to
// the bundled Python runtime. It is in a form that is ready to append to
// cmd.Env.
func BundlePythonHomeEnvvar() string {
bundleDir := os.Getenv(constants.BundleDirEnvVar)
func BundlePythonHomeEnvvar(bundleDir string) string {
if runtime.GOOS == "windows" {
return "PYTHONHOME=" + filepath.Join(bundleDir, "python")
}
Expand Down
8 changes: 1 addition & 7 deletions internal/signalfx-agent/pkg/core/config/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package config

import (
"fmt"
"os"
"reflect"
"regexp"
"strings"
Expand All @@ -11,7 +10,6 @@ import (
log "github.com/sirupsen/logrus"
yaml "gopkg.in/yaml.v2"

"github.com/signalfx/signalfx-agent/pkg/core/common/constants"
"github.com/signalfx/signalfx-agent/pkg/core/dpfilters"
"github.com/signalfx/signalfx-agent/pkg/monitors/types"
)
Expand Down Expand Up @@ -144,6 +142,7 @@ type MonitorConfig struct {
// so that diagnostics can output it.
ValidationError string `yaml:"-" json:"-" hash:"ignore"`
MonitorID types.MonitorID `yaml:"-" hash:"ignore"`
BundleDir string `yaml:"-" json:"-"`
}

var _ CustomConfigurable = &MonitorConfig{}
Expand Down Expand Up @@ -237,11 +236,6 @@ func (mc *MonitorConfig) Hash() uint64 {
return hash
}

// BundleDir returns the path to the agent's bundle directory.
func (mc *MonitorConfig) BundleDir() string {
return os.Getenv(constants.BundleDirEnvVar)
}

// IsCollectdBased returns whether this montior type depends on the
// collectd subprocess to run.
func (mc *MonitorConfig) IsCollectdBased() bool {
Expand Down
2 changes: 1 addition & 1 deletion internal/signalfx-agent/pkg/monitors/collectd/collectd.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ func (cm *Manager) makeChildCommand() (*exec.Cmd, io.ReadCloser) {
cmd.Stdout = w
cmd.Stderr = w
cmd.Env = os.Environ()
cmd.Env = append(cmd.Env, config.BundlePythonHomeEnvvar())
cmd.Env = append(cmd.Env, config.BundlePythonHomeEnvvar(cm.conf.BundleDir))

cmd.SysProcAttr = &syscall.SysProcAttr{
// This is Linux-specific and will cause collectd to be killed by the OS if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ func (m *Monitor) Configure(conf *Config) error {
Host: conf.Host,
Port: conf.Port,
ModuleName: "consul_plugin",
ModulePaths: []string{collectd.MakePythonPluginPath("consul")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath()},
ModulePaths: []string{collectd.MakePythonPluginPath(conf.BundleDir, "consul")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath(conf.BundleDir)},
PluginConfig: map[string]interface{}{
"ApiHost": conf.Host,
"ApiPort": conf.Port,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ func (m *Monitor) Configure(conf *Config) error {
Host: conf.Host,
Port: conf.Port,
ModuleName: "couchbase",
ModulePaths: []string{collectd.MakePythonPluginPath("couchbase")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath()},
ModulePaths: []string{collectd.MakePythonPluginPath(conf.BundleDir, "couchbase")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath(conf.BundleDir)},
PluginConfig: map[string]interface{}{
"Host": conf.Host,
"Port": conf.Port,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ func (m *Monitor) Configure(conf *Config) error {
Host: conf.Host,
Port: conf.Port,
ModuleName: "elasticsearch_collectd",
ModulePaths: []string{collectd.MakePythonPluginPath("elasticsearch")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath()},
ModulePaths: []string{collectd.MakePythonPluginPath(conf.BundleDir, "elasticsearch")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath(conf.BundleDir)},
PluginConfig: map[string]interface{}{
"Host": conf.Host,
"Port": conf.Port,
Expand Down
4 changes: 2 additions & 2 deletions internal/signalfx-agent/pkg/monitors/collectd/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ func (m *Monitor) Configure(conf *Config) error {
Host: conf.Host,
Port: conf.Port,
ModuleName: "etcd_plugin",
ModulePaths: []string{collectd.MakePythonPluginPath("etcd")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath()},
ModulePaths: []string{collectd.MakePythonPluginPath(conf.BundleDir, "etcd")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath(conf.BundleDir)},
PluginConfig: map[string]interface{}{
"Host": conf.Host,
"Port": conf.Port,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ func (m *Monitor) Configure(conf *Config) error {
Host: conf.Host,
Port: conf.Port,
ModuleName: "hadoop_plugin",
ModulePaths: []string{collectd.MakePythonPluginPath("hadoop")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath()},
ModulePaths: []string{collectd.MakePythonPluginPath(conf.BundleDir, "hadoop")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath(conf.BundleDir)},
PluginConfig: map[string]interface{}{
"ResourceManagerURL": fmt.Sprintf("http://%s", conf.Host),
"ResourceManagerPort": conf.Port,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ func (m *Monitor) Configure(conf *Config) error {
Host: conf.Host,
Port: conf.Port,
ModuleName: "health_checker",
ModulePaths: []string{collectd.MakePythonPluginPath("health_checker")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath()},
ModulePaths: []string{collectd.MakePythonPluginPath(conf.BundleDir, "health_checker")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath(conf.BundleDir)},
PluginConfig: map[string]interface{}{
"Instance": conf.Name,
"JSONKey": conf.JSONKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ func (m *Monitor) Configure(conf *Config) error {
Host: conf.Host,
Port: conf.Port,
ModuleName: "jenkins",
ModulePaths: []string{collectd.MakePythonPluginPath("jenkins")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath()},
ModulePaths: []string{collectd.MakePythonPluginPath(conf.BundleDir, "jenkins")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath(conf.BundleDir)},
PluginConfig: map[string]interface{}{
"Host": conf.Host,
"Port": conf.Port,
Expand Down
4 changes: 2 additions & 2 deletions internal/signalfx-agent/pkg/monitors/collectd/kong/kong.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ func (m *Monitor) Configure(c *Config) error {
Host: conf.Host,
Port: conf.Port,
ModuleName: "kong_plugin",
ModulePaths: []string{collectd.MakePythonPluginPath("kong")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath()},
ModulePaths: []string{collectd.MakePythonPluginPath(conf.BundleDir, "kong")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath(conf.BundleDir)},
PluginConfig: map[string]interface{}{
"URL": conf.URL,
"Interval": conf.IntervalSeconds,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ func (m *Monitor) Configure(conf *Config) error {
Host: conf.Host,
Port: conf.Port,
ModuleName: "marathon",
ModulePaths: []string{collectd.MakePythonPluginPath("marathon")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath()},
ModulePaths: []string{collectd.MakePythonPluginPath(conf.BundleDir, "marathon")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath(conf.BundleDir)},
PluginConfig: map[string]interface{}{
"verbose": false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ func (m *Monitor) Configure(conf *Config) error {
Host: conf.Host,
Port: conf.Port,
ModuleName: "mongodb",
ModulePaths: []string{collectd.MakePythonPluginPath("mongodb")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath()},
ModulePaths: []string{collectd.MakePythonPluginPath(conf.BundleDir, "mongodb")},
TypesDBPaths: []string{collectd.DefaultTypesDBPath(conf.BundleDir)},
PluginConfig: map[string]interface{}{
"Host": conf.Host,
"Port": conf.Port,
Expand Down
Loading

0 comments on commit 43169a1

Please sign in to comment.