diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:15:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:15:20 +0000 |
commit | 87d772a7d708fec12f48cd8adc0dedff6e1025da (patch) | |
tree | 1fee344c64cc3f43074a01981e21126c8482a522 /src/go/plugin/go.d/modules/windows | |
parent | Adding upstream version 1.46.3. (diff) | |
download | netdata-87d772a7d708fec12f48cd8adc0dedff6e1025da.tar.xz netdata-87d772a7d708fec12f48cd8adc0dedff6e1025da.zip |
Adding upstream version 1.47.0.upstream/1.47.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
l--------- | src/go/plugin/go.d/modules/windows/README.md (renamed from src/go/collectors/go.d.plugin/modules/windows/README.md) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/charts.go (renamed from src/go/collectors/go.d.plugin/modules/windows/charts.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_ad.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_ad.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_adcs.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_adcs.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_adfs.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_adfs.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_collector.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_collector.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_cpu.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_cpu.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_exchange.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_exchange.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_hyperv.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_hyperv.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_iis.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_iis.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_logical_disk.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_logical_disk.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_logon.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_logon.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_memory.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_memory.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_mssql.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_mssql.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_net.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_net.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_netframework.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_netframework.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_os.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_os.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_process.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_process.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_service.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_service.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_system.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_system.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_tcp.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_tcp.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/collect_thermalzone.go (renamed from src/go/collectors/go.d.plugin/modules/windows/collect_thermalzone.go) | 2 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/config_schema.json (renamed from src/go/collectors/go.d.plugin/modules/windows/config_schema.json) | 6 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/init.go (renamed from src/go/collectors/go.d.plugin/modules/windows/init.go) | 4 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/integrations/active_directory.md (renamed from src/go/collectors/go.d.plugin/modules/windows/integrations/active_directory.md) | 39 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/integrations/hyperv.md (renamed from src/go/collectors/go.d.plugin/modules/windows/integrations/hyperv.md) | 39 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/integrations/ms_exchange.md (renamed from src/go/collectors/go.d.plugin/modules/windows/integrations/ms_exchange.md) | 39 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/integrations/ms_sql_server.md (renamed from src/go/collectors/go.d.plugin/modules/windows/integrations/ms_sql_server.md) | 39 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/integrations/net_framework.md (renamed from src/go/collectors/go.d.plugin/modules/windows/integrations/net_framework.md) | 39 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/integrations/windows.md (renamed from src/go/collectors/go.d.plugin/modules/windows/integrations/windows.md) | 39 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/metadata.yaml (renamed from src/go/collectors/go.d.plugin/modules/windows/metadata.yaml) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/testdata/config.json (renamed from src/go/collectors/go.d.plugin/modules/windows/testdata/config.json) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/testdata/config.yaml (renamed from src/go/collectors/go.d.plugin/modules/windows/testdata/config.yaml) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/testdata/v0.20.0/metrics.txt (renamed from src/go/collectors/go.d.plugin/modules/windows/testdata/v0.20.0/metrics.txt) | 0 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/windows.go (renamed from src/go/collectors/go.d.plugin/modules/windows/windows.go) | 6 | ||||
-rw-r--r-- | src/go/plugin/go.d/modules/windows/windows_test.go (renamed from src/go/collectors/go.d.plugin/modules/windows/windows_test.go) | 4 |
37 files changed, 257 insertions, 41 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/windows/README.md b/src/go/plugin/go.d/modules/windows/README.md index 802d61bd1..802d61bd1 120000 --- a/src/go/collectors/go.d.plugin/modules/windows/README.md +++ b/src/go/plugin/go.d/modules/windows/README.md diff --git a/src/go/collectors/go.d.plugin/modules/windows/charts.go b/src/go/plugin/go.d/modules/windows/charts.go index 8ed5848c6..cedc33fa7 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/charts.go +++ b/src/go/plugin/go.d/modules/windows/charts.go @@ -6,7 +6,7 @@ import ( "fmt" "strings" - "github.com/netdata/netdata/go/go.d.plugin/agent/module" + "github.com/netdata/netdata/go/plugins/plugin/go.d/agent/module" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect.go b/src/go/plugin/go.d/modules/windows/collect.go index b20b08c27..22421e221 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect.go +++ b/src/go/plugin/go.d/modules/windows/collect.go @@ -3,7 +3,7 @@ package windows import ( - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const precision = 1000 diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_ad.go b/src/go/plugin/go.d/modules/windows/collect_ad.go index 3c07a9112..5a99ce5c8 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_ad.go +++ b/src/go/plugin/go.d/modules/windows/collect_ad.go @@ -2,7 +2,7 @@ package windows -import "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" +import "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" // Windows exporter: // https://github.com/prometheus-community/windows_exporter/blob/master/docs/collector.ad.md diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_adcs.go b/src/go/plugin/go.d/modules/windows/collect_adcs.go index 0142fcb9c..115eddee5 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_adcs.go +++ b/src/go/plugin/go.d/modules/windows/collect_adcs.go @@ -5,7 +5,7 @@ package windows import ( "strings" - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_adfs.go b/src/go/plugin/go.d/modules/windows/collect_adfs.go index 4ce0717ba..1802a609a 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_adfs.go +++ b/src/go/plugin/go.d/modules/windows/collect_adfs.go @@ -5,7 +5,7 @@ package windows import ( "strings" - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_collector.go b/src/go/plugin/go.d/modules/windows/collect_collector.go index 6950ff575..f182b9af5 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_collector.go +++ b/src/go/plugin/go.d/modules/windows/collect_collector.go @@ -3,7 +3,7 @@ package windows import ( - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_cpu.go b/src/go/plugin/go.d/modules/windows/collect_cpu.go index fc1412e3d..6a324e5ef 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_cpu.go +++ b/src/go/plugin/go.d/modules/windows/collect_cpu.go @@ -3,7 +3,7 @@ package windows import ( - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_exchange.go b/src/go/plugin/go.d/modules/windows/collect_exchange.go index 040bae1e2..bbbbfd533 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_exchange.go +++ b/src/go/plugin/go.d/modules/windows/collect_exchange.go @@ -5,7 +5,7 @@ package windows import ( "strings" - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_hyperv.go b/src/go/plugin/go.d/modules/windows/collect_hyperv.go index 8fecbf8f5..f7cf2c60a 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_hyperv.go +++ b/src/go/plugin/go.d/modules/windows/collect_hyperv.go @@ -5,7 +5,7 @@ package windows import ( "strings" - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_iis.go b/src/go/plugin/go.d/modules/windows/collect_iis.go index 3b15b6e89..5218e64e1 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_iis.go +++ b/src/go/plugin/go.d/modules/windows/collect_iis.go @@ -5,7 +5,7 @@ package windows import ( "strings" - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_logical_disk.go b/src/go/plugin/go.d/modules/windows/collect_logical_disk.go index 9f5dab15b..0db52f8cd 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_logical_disk.go +++ b/src/go/plugin/go.d/modules/windows/collect_logical_disk.go @@ -5,7 +5,7 @@ package windows import ( "strings" - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_logon.go b/src/go/plugin/go.d/modules/windows/collect_logon.go index a4e14d109..7db0024ca 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_logon.go +++ b/src/go/plugin/go.d/modules/windows/collect_logon.go @@ -3,7 +3,7 @@ package windows import ( - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_memory.go b/src/go/plugin/go.d/modules/windows/collect_memory.go index 5b4ed191d..36123e4dd 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_memory.go +++ b/src/go/plugin/go.d/modules/windows/collect_memory.go @@ -3,7 +3,7 @@ package windows import ( - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_mssql.go b/src/go/plugin/go.d/modules/windows/collect_mssql.go index 53d88f578..2a6078f28 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_mssql.go +++ b/src/go/plugin/go.d/modules/windows/collect_mssql.go @@ -5,7 +5,7 @@ package windows import ( "strings" - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_net.go b/src/go/plugin/go.d/modules/windows/collect_net.go index e72bf646f..4fe5dd7d6 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_net.go +++ b/src/go/plugin/go.d/modules/windows/collect_net.go @@ -5,7 +5,7 @@ package windows import ( "strings" - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_netframework.go b/src/go/plugin/go.d/modules/windows/collect_netframework.go index 84012f71e..aab9364d3 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_netframework.go +++ b/src/go/plugin/go.d/modules/windows/collect_netframework.go @@ -3,7 +3,7 @@ package windows import ( - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_os.go b/src/go/plugin/go.d/modules/windows/collect_os.go index 17617f480..99113e973 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_os.go +++ b/src/go/plugin/go.d/modules/windows/collect_os.go @@ -3,7 +3,7 @@ package windows import ( - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_process.go b/src/go/plugin/go.d/modules/windows/collect_process.go index b1c729f30..373db6c08 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_process.go +++ b/src/go/plugin/go.d/modules/windows/collect_process.go @@ -5,7 +5,7 @@ package windows import ( "strings" - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_service.go b/src/go/plugin/go.d/modules/windows/collect_service.go index fb58128ee..c6d77c99e 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_service.go +++ b/src/go/plugin/go.d/modules/windows/collect_service.go @@ -5,7 +5,7 @@ package windows import ( "strings" - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_system.go b/src/go/plugin/go.d/modules/windows/collect_system.go index 5f0bc9131..8758e8476 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_system.go +++ b/src/go/plugin/go.d/modules/windows/collect_system.go @@ -5,7 +5,7 @@ package windows import ( "time" - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_tcp.go b/src/go/plugin/go.d/modules/windows/collect_tcp.go index 20c8f8df7..7b4621835 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_tcp.go +++ b/src/go/plugin/go.d/modules/windows/collect_tcp.go @@ -2,7 +2,7 @@ package windows -import "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" +import "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" const ( metricTCPConnectionFailure = "windows_tcp_connection_failures_total" diff --git a/src/go/collectors/go.d.plugin/modules/windows/collect_thermalzone.go b/src/go/plugin/go.d/modules/windows/collect_thermalzone.go index 578ebef9f..6dccb9fed 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/collect_thermalzone.go +++ b/src/go/plugin/go.d/modules/windows/collect_thermalzone.go @@ -5,7 +5,7 @@ package windows import ( "strings" - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" ) const ( diff --git a/src/go/collectors/go.d.plugin/modules/windows/config_schema.json b/src/go/plugin/go.d/modules/windows/config_schema.json index c112abe66..e1011e876 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/config_schema.json +++ b/src/go/plugin/go.d/modules/windows/config_schema.json @@ -174,6 +174,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/windows/init.go b/src/go/plugin/go.d/modules/windows/init.go index 1e9a6a4e4..87faf40bd 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/init.go +++ b/src/go/plugin/go.d/modules/windows/init.go @@ -5,8 +5,8 @@ package windows import ( "errors" - "github.com/netdata/netdata/go/go.d.plugin/pkg/prometheus" - "github.com/netdata/netdata/go/go.d.plugin/pkg/web" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/prometheus" + "github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/web" ) func (w *Windows) validateConfig() error { diff --git a/src/go/collectors/go.d.plugin/modules/windows/integrations/active_directory.md b/src/go/plugin/go.d/modules/windows/integrations/active_directory.md index 4449fa942..6d255aba8 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/integrations/active_directory.md +++ b/src/go/plugin/go.d/modules/windows/integrations/active_directory.md @@ -1,6 +1,6 @@ <!--startmeta -custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/windows/integrations/active_directory.md" -meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/windows/metadata.yaml" +custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/windows/integrations/active_directory.md" +meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/windows/metadata.yaml" sidebar_label: "Active Directory" learn_status: "Published" learn_rel_path: "Collecting Metrics/Windows Systems" @@ -783,6 +783,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 `windows` 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. @@ -805,4 +807,37 @@ should give you clues as to why the collector isn't working. ./go.d.plugin -d -m windows ``` +### Getting Logs + +If you're encountering problems with the `windows` 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 windows +``` + +#### 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 windows /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 windows +``` + diff --git a/src/go/collectors/go.d.plugin/modules/windows/integrations/hyperv.md b/src/go/plugin/go.d/modules/windows/integrations/hyperv.md index 3af02fb8a..42e4f308d 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/integrations/hyperv.md +++ b/src/go/plugin/go.d/modules/windows/integrations/hyperv.md @@ -1,6 +1,6 @@ <!--startmeta -custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/windows/integrations/hyperv.md" -meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/windows/metadata.yaml" +custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/windows/integrations/hyperv.md" +meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/windows/metadata.yaml" sidebar_label: "HyperV" learn_status: "Published" learn_rel_path: "Collecting Metrics/Windows Systems" @@ -783,6 +783,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 `windows` 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. @@ -805,4 +807,37 @@ should give you clues as to why the collector isn't working. ./go.d.plugin -d -m windows ``` +### Getting Logs + +If you're encountering problems with the `windows` 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 windows +``` + +#### 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 windows /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 windows +``` + diff --git a/src/go/collectors/go.d.plugin/modules/windows/integrations/ms_exchange.md b/src/go/plugin/go.d/modules/windows/integrations/ms_exchange.md index 740f68dec..24d416021 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/integrations/ms_exchange.md +++ b/src/go/plugin/go.d/modules/windows/integrations/ms_exchange.md @@ -1,6 +1,6 @@ <!--startmeta -custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/windows/integrations/ms_exchange.md" -meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/windows/metadata.yaml" +custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/windows/integrations/ms_exchange.md" +meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/windows/metadata.yaml" sidebar_label: "MS Exchange" learn_status: "Published" learn_rel_path: "Collecting Metrics/Windows Systems" @@ -783,6 +783,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 `windows` 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. @@ -805,4 +807,37 @@ should give you clues as to why the collector isn't working. ./go.d.plugin -d -m windows ``` +### Getting Logs + +If you're encountering problems with the `windows` 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 windows +``` + +#### 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 windows /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 windows +``` + diff --git a/src/go/collectors/go.d.plugin/modules/windows/integrations/ms_sql_server.md b/src/go/plugin/go.d/modules/windows/integrations/ms_sql_server.md index f12ae825d..1dd59c30e 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/integrations/ms_sql_server.md +++ b/src/go/plugin/go.d/modules/windows/integrations/ms_sql_server.md @@ -1,6 +1,6 @@ <!--startmeta -custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/windows/integrations/ms_sql_server.md" -meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/windows/metadata.yaml" +custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/windows/integrations/ms_sql_server.md" +meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/windows/metadata.yaml" sidebar_label: "MS SQL Server" learn_status: "Published" learn_rel_path: "Collecting Metrics/Windows Systems" @@ -783,6 +783,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 `windows` 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. @@ -805,4 +807,37 @@ should give you clues as to why the collector isn't working. ./go.d.plugin -d -m windows ``` +### Getting Logs + +If you're encountering problems with the `windows` 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 windows +``` + +#### 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 windows /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 windows +``` + diff --git a/src/go/collectors/go.d.plugin/modules/windows/integrations/net_framework.md b/src/go/plugin/go.d/modules/windows/integrations/net_framework.md index 94262b166..01879ddea 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/integrations/net_framework.md +++ b/src/go/plugin/go.d/modules/windows/integrations/net_framework.md @@ -1,6 +1,6 @@ <!--startmeta -custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/windows/integrations/net_framework.md" -meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/windows/metadata.yaml" +custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/windows/integrations/net_framework.md" +meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/windows/metadata.yaml" sidebar_label: "NET Framework" learn_status: "Published" learn_rel_path: "Collecting Metrics/Windows Systems" @@ -783,6 +783,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 `windows` 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. @@ -805,4 +807,37 @@ should give you clues as to why the collector isn't working. ./go.d.plugin -d -m windows ``` +### Getting Logs + +If you're encountering problems with the `windows` 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 windows +``` + +#### 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 windows /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 windows +``` + diff --git a/src/go/collectors/go.d.plugin/modules/windows/integrations/windows.md b/src/go/plugin/go.d/modules/windows/integrations/windows.md index 7c821585d..60a3b7f30 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/integrations/windows.md +++ b/src/go/plugin/go.d/modules/windows/integrations/windows.md @@ -1,6 +1,6 @@ <!--startmeta -custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/windows/integrations/windows.md" -meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/collectors/go.d.plugin/modules/windows/metadata.yaml" +custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/windows/integrations/windows.md" +meta_yaml: "https://github.com/netdata/netdata/edit/master/src/go/plugin/go.d/modules/windows/metadata.yaml" sidebar_label: "Windows" learn_status: "Published" learn_rel_path: "Collecting Metrics/Windows Systems" @@ -783,6 +783,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 `windows` 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. @@ -805,4 +807,37 @@ should give you clues as to why the collector isn't working. ./go.d.plugin -d -m windows ``` +### Getting Logs + +If you're encountering problems with the `windows` 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 windows +``` + +#### 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 windows /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 windows +``` + diff --git a/src/go/collectors/go.d.plugin/modules/windows/metadata.yaml b/src/go/plugin/go.d/modules/windows/metadata.yaml index 87ac4cf63..87ac4cf63 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/metadata.yaml +++ b/src/go/plugin/go.d/modules/windows/metadata.yaml diff --git a/src/go/collectors/go.d.plugin/modules/windows/testdata/config.json b/src/go/plugin/go.d/modules/windows/testdata/config.json index 6f8c1084e..6f8c1084e 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/testdata/config.json +++ b/src/go/plugin/go.d/modules/windows/testdata/config.json diff --git a/src/go/collectors/go.d.plugin/modules/windows/testdata/config.yaml b/src/go/plugin/go.d/modules/windows/testdata/config.yaml index 4bbb7474d..4bbb7474d 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/testdata/config.yaml +++ b/src/go/plugin/go.d/modules/windows/testdata/config.yaml diff --git a/src/go/collectors/go.d.plugin/modules/windows/testdata/v0.20.0/metrics.txt b/src/go/plugin/go.d/modules/windows/testdata/v0.20.0/metrics.txt index 02b68c3f8..02b68c3f8 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/testdata/v0.20.0/metrics.txt +++ b/src/go/plugin/go.d/modules/windows/testdata/v0.20.0/metrics.txt diff --git a/src/go/collectors/go.d.plugin/modules/windows/windows.go b/src/go/plugin/go.d/modules/windows/windows.go index 99bfecf1d..555990784 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/windows.go +++ b/src/go/plugin/go.d/modules/windows/windows.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/prometheus" - "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/prometheus" + "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/windows/windows_test.go b/src/go/plugin/go.d/modules/windows/windows_test.go index 6322b0981..052950248 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/windows_test.go +++ b/src/go/plugin/go.d/modules/windows/windows_test.go @@ -10,8 +10,8 @@ import ( "strings" "testing" - "github.com/netdata/netdata/go/go.d.plugin/agent/module" - "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/web" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" |