diff options
Diffstat (limited to '')
l--------- | src/go/plugin/go.d/modules/fluentd/README.md (renamed from src/go/collectors/go.d.plugin/modules/fluentd/README.md) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/fluentd/apiclient.go (renamed from src/go/collectors/go.d.plugin/modules/fluentd/apiclient.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/fluentd/charts.go (renamed from src/go/collectors/go.d.plugin/modules/fluentd/charts.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/fluentd/collect.go (renamed from src/go/collectors/go.d.plugin/modules/fluentd/collect.go) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/fluentd/config_schema.json (renamed from src/go/collectors/go.d.plugin/modules/fluentd/config_schema.json) | 6 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/fluentd/fluentd.go (renamed from src/go/collectors/go.d.plugin/modules/fluentd/fluentd.go) | 6 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/fluentd/fluentd_test.go (renamed from src/go/collectors/go.d.plugin/modules/fluentd/fluentd_test.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/fluentd/init.go (renamed from src/go/collectors/go.d.plugin/modules/fluentd/init.go) | 4 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/fluentd/integrations/fluentd.md (renamed from src/go/collectors/go.d.plugin/modules/fluentd/integrations/fluentd.md) | 39 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/fluentd/metadata.yaml (renamed from src/go/collectors/go.d.plugin/modules/fluentd/metadata.yaml) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/fluentd/testdata/config.json (renamed from src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.json) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/fluentd/testdata/config.yaml (renamed from src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.yaml) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/fluentd/testdata/plugins.json (renamed from src/go/collectors/go.d.plugin/modules/fluentd/testdata/plugins.json) | 0 |
13 files changed, 51 insertions, 10 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/README.md b/src/go/plugin/go.d/modules/fluentd/README.md index 96241702f..96241702f 120000 --- a/src/go/collectors/go.d.plugin/modules/fluentd/README.md +++ b/src/go/plugin/go.d/modules/fluentd/README.md diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/apiclient.go b/src/go/plugin/go.d/modules/fluentd/apiclient.go index 1bee8148e..1c6bf85a9 100644 --- a/src/go/collectors/go.d.plugin/modules/fluentd/apiclient.go +++ b/src/go/plugin/go.d/modules/fluentd/apiclient.go @@ -10,7 +10,7 @@ import ( "net/url" "path" - "github.com/netdata/netdata/go/go.d.plugin/pkg/web" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/web" ) const pluginsPath = "/api/plugins.json" diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/charts.go b/src/go/plugin/go.d/modules/fluentd/charts.go index 3b7d0d595..b0034c026 100644 --- a/src/go/collectors/go.d.plugin/modules/fluentd/charts.go +++ b/src/go/plugin/go.d/modules/fluentd/charts.go @@ -2,7 +2,7 @@ package fluentd -import "github.com/netdata/netdata/go/go.d.plugin/agent/module" +import "github.com/netdata/netdata/go/plugins/plugin/go.d/agent/module" type ( // Charts is an alias for module.Charts diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/collect.go b/src/go/plugin/go.d/modules/fluentd/collect.go index 14ee6df68..14ee6df68 100644 --- a/src/go/collectors/go.d.plugin/modules/fluentd/collect.go +++ b/src/go/plugin/go.d/modules/fluentd/collect.go diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/config_schema.json b/src/go/plugin/go.d/modules/fluentd/config_schema.json index ff2adc739..037420f74 100644 --- a/src/go/collectors/go.d.plugin/modules/fluentd/config_schema.json +++ b/src/go/plugin/go.d/modules/fluentd/config_schema.json @@ -167,6 +167,12 @@ "timeout": { "ui:help": "Accepts decimals for precise control (e.g., type 1.5 for 1.5 seconds)." }, + "username": { + "ui:widget": "password" + }, + "proxy_username": { + "ui:widget": "password" + }, "password": { "ui:widget": "password" }, diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/fluentd.go b/src/go/plugin/go.d/modules/fluentd/fluentd.go index 5b9753d98..467edaac8 100644 --- a/src/go/collectors/go.d.plugin/modules/fluentd/fluentd.go +++ b/src/go/plugin/go.d/modules/fluentd/fluentd.go @@ -7,9 +7,9 @@ import ( "errors" "time" - "github.com/netdata/netdata/go/go.d.plugin/agent/module" - "github.com/netdata/netdata/go/go.d.plugin/pkg/matcher" - "github.com/netdata/netdata/go/go.d.plugin/pkg/web" + "github.com/netdata/netdata/go/plugins/plugin/go.d/agent/module" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/matcher" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/web" ) //go:embed "config_schema.json" diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/fluentd_test.go b/src/go/plugin/go.d/modules/fluentd/fluentd_test.go index 01c4f9636..e21b58fc5 100644 --- a/src/go/collectors/go.d.plugin/modules/fluentd/fluentd_test.go +++ b/src/go/plugin/go.d/modules/fluentd/fluentd_test.go @@ -8,7 +8,7 @@ import ( "os" "testing" - "github.com/netdata/netdata/go/go.d.plugin/agent/module" + "github.com/netdata/netdata/go/plugins/plugin/go.d/agent/module" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/init.go b/src/go/plugin/go.d/modules/fluentd/init.go index d8df8b3ab..6ee71c0a6 100644 --- a/src/go/collectors/go.d.plugin/modules/fluentd/init.go +++ b/src/go/plugin/go.d/modules/fluentd/init.go @@ -5,8 +5,8 @@ package fluentd import ( "errors" - "github.com/netdata/netdata/go/go.d.plugin/pkg/matcher" - "github.com/netdata/netdata/go/go.d.plugin/pkg/web" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/matcher" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/web" ) func (f *Fluentd) validateConfig() error { diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/integrations/fluentd.md b/src/go/plugin/go.d/modules/fluentd/integrations/fluentd.md index b00facd3a..b4740a77a 100644 --- a/src/go/collectors/go.d.plugin/modules/fluentd/integrations/fluentd.md +++ b/src/go/plugin/go.d/modules/fluentd/integrations/fluentd.md @@ -1,6 +1,6 @@ <!--startmeta -custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/fluentd/README.md" -meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/fluentd/metadata.yaml" +custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/fluentd/README.md" +meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/fluentd/metadata.yaml" sidebar_label: "Fluentd" learn_status: "Published" learn_rel_path: "Collecting Metrics/Logs Servers" @@ -196,6 +196,8 @@ jobs: ### Debug Mode +**Important**: Debug mode is not supported for data collection jobs created via the UI using the Dyncfg feature. + To troubleshoot issues with the `fluentd` collector, run the `go.d.plugin` with the debug option enabled. The output should give you clues as to why the collector isn't working. @@ -218,4 +220,37 @@ should give you clues as to why the collector isn't working. ./go.d.plugin -d -m fluentd ``` +### Getting Logs + +If you're encountering problems with the `fluentd` collector, follow these steps to retrieve logs and identify potential issues: + +- **Run the command** specific to your system (systemd, non-systemd, or Docker container). +- **Examine the output** for any warnings or error messages that might indicate issues. These messages should provide clues about the root cause of the problem. + +#### System with systemd + +Use the following command to view logs generated since the last Netdata service restart: + +```bash +journalctl _SYSTEMD_INVOCATION_ID="$(systemctl show --value --property=InvocationID netdata)" --namespace=netdata --grep fluentd +``` + +#### System without systemd + +Locate the collector log file, typically at `/var/log/netdata/collector.log`, and use `grep` to filter for collector's name: + +```bash +grep fluentd /var/log/netdata/collector.log +``` + +**Note**: This method shows logs from all restarts. Focus on the **latest entries** for troubleshooting current issues. + +#### Docker Container + +If your Netdata runs in a Docker container named "netdata" (replace if different), use this command: + +```bash +docker logs netdata 2>&1 | grep fluentd +``` + diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/metadata.yaml b/src/go/plugin/go.d/modules/fluentd/metadata.yaml index 0a6a66058..0a6a66058 100644 --- a/src/go/collectors/go.d.plugin/modules/fluentd/metadata.yaml +++ b/src/go/plugin/go.d/modules/fluentd/metadata.yaml diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.json b/src/go/plugin/go.d/modules/fluentd/testdata/config.json index 6477bd57d..6477bd57d 100644 --- a/src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.json +++ b/src/go/plugin/go.d/modules/fluentd/testdata/config.json diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.yaml b/src/go/plugin/go.d/modules/fluentd/testdata/config.yaml index 0afd42e67..0afd42e67 100644 --- a/src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.yaml +++ b/src/go/plugin/go.d/modules/fluentd/testdata/config.yaml diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/testdata/plugins.json b/src/go/plugin/go.d/modules/fluentd/testdata/plugins.json index 1fd921f7c..1fd921f7c 100644 --- a/src/go/collectors/go.d.plugin/modules/fluentd/testdata/plugins.json +++ b/src/go/plugin/go.d/modules/fluentd/testdata/plugins.json |