diff options
Diffstat (limited to '')
l--------- | src/go/plugin/go.d/modules/systemdunits/README.md (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/README.md) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/charts.go (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/charts.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/client.go (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/client.go) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/collect.go (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/collect.go) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/collect_unit_files.go (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/collect_unit_files.go) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/collect_units.go (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/collect_units.go) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/config_schema.json (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/config_schema.json) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/doc.go (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/doc.go) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/init.go (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/init.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/integrations/systemd_units.md (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/integrations/systemd_units.md) | 39 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/metadata.yaml (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/metadata.yaml) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/systemdunits.go (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/systemdunits.go) | 6 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/systemdunits_test.go (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/systemdunits_test.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/testdata/config.json (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/testdata/config.json) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/systemdunits/testdata/config.yaml (renamed from src/go/collectors/go.d.plugin/modules/systemdunits/testdata/config.yaml) | 0 |
15 files changed, 43 insertions, 8 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/README.md b/src/go/plugin/go.d/modules/systemdunits/README.md index 68dd433bf..68dd433bf 120000 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/README.md +++ b/src/go/plugin/go.d/modules/systemdunits/README.md diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/charts.go b/src/go/plugin/go.d/modules/systemdunits/charts.go index 18d8838fb..9f1f56b70 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/charts.go +++ b/src/go/plugin/go.d/modules/systemdunits/charts.go @@ -10,7 +10,7 @@ import ( "path/filepath" "strings" - "github.com/netdata/netdata/go/go.d.plugin/agent/module" + "github.com/netdata/netdata/go/plugins/plugin/go.d/agent/module" "golang.org/x/text/cases" "golang.org/x/text/language" diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/client.go b/src/go/plugin/go.d/modules/systemdunits/client.go index e6363d132..e6363d132 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/client.go +++ b/src/go/plugin/go.d/modules/systemdunits/client.go diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/collect.go b/src/go/plugin/go.d/modules/systemdunits/collect.go index 0d61c9998..0d61c9998 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/collect.go +++ b/src/go/plugin/go.d/modules/systemdunits/collect.go diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/collect_unit_files.go b/src/go/plugin/go.d/modules/systemdunits/collect_unit_files.go index eff2d6ecb..eff2d6ecb 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/collect_unit_files.go +++ b/src/go/plugin/go.d/modules/systemdunits/collect_unit_files.go diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/collect_units.go b/src/go/plugin/go.d/modules/systemdunits/collect_units.go index 0cf97af03..0cf97af03 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/collect_units.go +++ b/src/go/plugin/go.d/modules/systemdunits/collect_units.go diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/config_schema.json b/src/go/plugin/go.d/modules/systemdunits/config_schema.json index 016e984ce..016e984ce 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/config_schema.json +++ b/src/go/plugin/go.d/modules/systemdunits/config_schema.json diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/doc.go b/src/go/plugin/go.d/modules/systemdunits/doc.go index 8bb45fab9..8bb45fab9 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/doc.go +++ b/src/go/plugin/go.d/modules/systemdunits/doc.go diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/init.go b/src/go/plugin/go.d/modules/systemdunits/init.go index ea3d21d37..8a1b579c1 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/init.go +++ b/src/go/plugin/go.d/modules/systemdunits/init.go @@ -9,7 +9,7 @@ import ( "errors" "strings" - "github.com/netdata/netdata/go/go.d.plugin/pkg/matcher" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/matcher" ) func (s *SystemdUnits) validateConfig() error { diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/integrations/systemd_units.md b/src/go/plugin/go.d/modules/systemdunits/integrations/systemd_units.md index 431f084ba..a2ff90b0d 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/integrations/systemd_units.md +++ b/src/go/plugin/go.d/modules/systemdunits/integrations/systemd_units.md @@ -1,6 +1,6 @@ <!--startmeta -custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/systemdunits/README.md" -meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/systemdunits/metadata.yaml" +custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/systemdunits/README.md" +meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/systemdunits/metadata.yaml" sidebar_label: "Systemd Units" learn_status: "Published" learn_rel_path: "Collecting Metrics/Systemd" @@ -264,6 +264,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 `systemdunits` 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. @@ -286,4 +288,37 @@ should give you clues as to why the collector isn't working. ./go.d.plugin -d -m systemdunits ``` +### Getting Logs + +If you're encountering problems with the `systemdunits` 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 systemdunits +``` + +#### 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 systemdunits /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 systemdunits +``` + diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/metadata.yaml b/src/go/plugin/go.d/modules/systemdunits/metadata.yaml index 791e58400..791e58400 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/metadata.yaml +++ b/src/go/plugin/go.d/modules/systemdunits/metadata.yaml diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/systemdunits.go b/src/go/plugin/go.d/modules/systemdunits/systemdunits.go index 367fa2a44..9a3478768 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/systemdunits.go +++ b/src/go/plugin/go.d/modules/systemdunits/systemdunits.go @@ -10,9 +10,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" "github.com/coreos/go-systemd/v22/dbus" ) diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/systemdunits_test.go b/src/go/plugin/go.d/modules/systemdunits/systemdunits_test.go index 89c0a92dd..7074e186e 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/systemdunits_test.go +++ b/src/go/plugin/go.d/modules/systemdunits/systemdunits_test.go @@ -15,7 +15,7 @@ import ( "strings" "testing" - "github.com/netdata/netdata/go/go.d.plugin/agent/module" + "github.com/netdata/netdata/go/plugins/plugin/go.d/agent/module" "github.com/coreos/go-systemd/v22/dbus" "github.com/stretchr/testify/assert" diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/testdata/config.json b/src/go/plugin/go.d/modules/systemdunits/testdata/config.json index 1ab5b47ea..1ab5b47ea 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/testdata/config.json +++ b/src/go/plugin/go.d/modules/systemdunits/testdata/config.json diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/testdata/config.yaml b/src/go/plugin/go.d/modules/systemdunits/testdata/config.yaml index d1894aea1..d1894aea1 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/testdata/config.yaml +++ b/src/go/plugin/go.d/modules/systemdunits/testdata/config.yaml |