diff --git a/plugins/inputs/bcache/README.md b/plugins/inputs/bcache/README.md index c7e428f9f..7bb9942a6 100644 --- a/plugins/inputs/bcache/README.md +++ b/plugins/inputs/bcache/README.md @@ -64,6 +64,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. ```toml @sample.conf # Read metrics of bcache from stats_total and dirty_data +# This plugin ONLY supports Linux [[inputs.bcache]] ## Bcache sets path ## If not specified, then default is: diff --git a/plugins/inputs/bcache/bcache.go b/plugins/inputs/bcache/bcache.go index 49b8b2782..10924ac40 100644 --- a/plugins/inputs/bcache/bcache.go +++ b/plugins/inputs/bcache/bcache.go @@ -1,7 +1,5 @@ //go:generate ../../../tools/readme_config_includer/generator -//go:build !windows - -// bcache doesn't aim for Windows +//go:build linux package bcache diff --git a/plugins/inputs/bcache/bcache_notlinux.go b/plugins/inputs/bcache/bcache_notlinux.go new file mode 100644 index 000000000..3ba2a7b2e --- /dev/null +++ b/plugins/inputs/bcache/bcache_notlinux.go @@ -0,0 +1,3 @@ +//go:build !linux + +package bcache diff --git a/plugins/inputs/bcache/bcache_test.go b/plugins/inputs/bcache/bcache_test.go index 0e44b119c..7124b43da 100644 --- a/plugins/inputs/bcache/bcache_test.go +++ b/plugins/inputs/bcache/bcache_test.go @@ -1,4 +1,4 @@ -//go:build !windows +//go:build linux package bcache diff --git a/plugins/inputs/bcache/bcache_windows.go b/plugins/inputs/bcache/bcache_windows.go deleted file mode 100644 index e6c3d6e12..000000000 --- a/plugins/inputs/bcache/bcache_windows.go +++ /dev/null @@ -1,3 +0,0 @@ -//go:build windows - -package bcache diff --git a/plugins/inputs/bcache/sample.conf b/plugins/inputs/bcache/sample.conf index d2639cdbc..2d4e777ec 100644 --- a/plugins/inputs/bcache/sample.conf +++ b/plugins/inputs/bcache/sample.conf @@ -1,4 +1,5 @@ # Read metrics of bcache from stats_total and dirty_data +# This plugin ONLY supports Linux [[inputs.bcache]] ## Bcache sets path ## If not specified, then default is: diff --git a/plugins/inputs/conntrack/README.md b/plugins/inputs/conntrack/README.md index 366c5092a..3acbc9408 100644 --- a/plugins/inputs/conntrack/README.md +++ b/plugins/inputs/conntrack/README.md @@ -37,6 +37,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. ```toml @sample.conf # Collects conntrack stats from the configured directories and files. +# This plugin ONLY supports Linux [[inputs.conntrack]] ## The following defaults would work with multiple versions of conntrack. ## Note the nf_ and ip_ filename prefixes are mutually exclusive across diff --git a/plugins/inputs/conntrack/sample.conf b/plugins/inputs/conntrack/sample.conf index d510202e5..a3c99a7cb 100644 --- a/plugins/inputs/conntrack/sample.conf +++ b/plugins/inputs/conntrack/sample.conf @@ -1,4 +1,5 @@ # Collects conntrack stats from the configured directories and files. +# This plugin ONLY supports Linux [[inputs.conntrack]] ## The following defaults would work with multiple versions of conntrack. ## Note the nf_ and ip_ filename prefixes are mutually exclusive across diff --git a/plugins/inputs/dpdk/README.md b/plugins/inputs/dpdk/README.md index 2fc6b217e..790e99bf0 100644 --- a/plugins/inputs/dpdk/README.md +++ b/plugins/inputs/dpdk/README.md @@ -57,6 +57,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. ```toml @sample.conf # Reads metrics from DPDK applications using v2 telemetry interface. +# This plugin ONLY supports Linux [[inputs.dpdk]] ## Path to DPDK telemetry socket. This shall point to v2 version of DPDK ## telemetry interface. diff --git a/plugins/inputs/dpdk/sample.conf b/plugins/inputs/dpdk/sample.conf index 14788bee8..1199e517d 100644 --- a/plugins/inputs/dpdk/sample.conf +++ b/plugins/inputs/dpdk/sample.conf @@ -1,4 +1,5 @@ # Reads metrics from DPDK applications using v2 telemetry interface. +# This plugin ONLY supports Linux [[inputs.dpdk]] ## Path to DPDK telemetry socket. This shall point to v2 version of DPDK ## telemetry interface. diff --git a/plugins/inputs/hugepages/README.md b/plugins/inputs/hugepages/README.md index 9b0865a4c..f4a9f4c60 100644 --- a/plugins/inputs/hugepages/README.md +++ b/plugins/inputs/hugepages/README.md @@ -21,6 +21,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. ```toml @sample.conf # Gathers huge pages measurements. +# This plugin ONLY supports Linux [[inputs.hugepages]] ## Supported huge page types: ## - "root" - based on root huge page control directory: diff --git a/plugins/inputs/hugepages/sample.conf b/plugins/inputs/hugepages/sample.conf index 6b52d6038..37b14c04c 100644 --- a/plugins/inputs/hugepages/sample.conf +++ b/plugins/inputs/hugepages/sample.conf @@ -1,4 +1,5 @@ # Gathers huge pages measurements. +# This plugin ONLY supports Linux [[inputs.hugepages]] ## Supported huge page types: ## - "root" - based on root huge page control directory: diff --git a/plugins/inputs/intel_dlb/README.md b/plugins/inputs/intel_dlb/README.md index 208ed0cc9..ab0c53720 100644 --- a/plugins/inputs/intel_dlb/README.md +++ b/plugins/inputs/intel_dlb/README.md @@ -66,6 +66,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. ```toml @sample.conf ## Reads metrics from DPDK using v2 telemetry interface. +## This plugin ONLY supports Linux [[inputs.intel_dlb]] ## Path to DPDK telemetry socket. # socket_path = "/var/run/dpdk/rte/dpdk_telemetry.v2" diff --git a/plugins/inputs/intel_dlb/sample.conf b/plugins/inputs/intel_dlb/sample.conf index abe7014d1..5d8b0cc37 100644 --- a/plugins/inputs/intel_dlb/sample.conf +++ b/plugins/inputs/intel_dlb/sample.conf @@ -1,4 +1,5 @@ ## Reads metrics from DPDK using v2 telemetry interface. +## This plugin ONLY supports Linux [[inputs.intel_dlb]] ## Path to DPDK telemetry socket. # socket_path = "/var/run/dpdk/rte/dpdk_telemetry.v2" diff --git a/plugins/inputs/intel_powerstat/README.md b/plugins/inputs/intel_powerstat/README.md index 120c8a0c4..05c15936f 100644 --- a/plugins/inputs/intel_powerstat/README.md +++ b/plugins/inputs/intel_powerstat/README.md @@ -23,6 +23,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. ```toml @sample.conf # Intel PowerStat plugin enables monitoring of platform metrics (power, TDP) # and per-CPU metrics like temperature, power and utilization. +# This plugin ONLY supports Linux [[inputs.intel_powerstat]] ## The user can choose which package metrics are monitored by the plugin with ## the package_metrics setting: diff --git a/plugins/inputs/intel_powerstat/sample.conf b/plugins/inputs/intel_powerstat/sample.conf index 16d7b9b26..6ffa36511 100644 --- a/plugins/inputs/intel_powerstat/sample.conf +++ b/plugins/inputs/intel_powerstat/sample.conf @@ -1,5 +1,6 @@ # Intel PowerStat plugin enables monitoring of platform metrics (power, TDP) # and per-CPU metrics like temperature, power and utilization. +# This plugin ONLY supports Linux [[inputs.intel_powerstat]] ## The user can choose which package metrics are monitored by the plugin with ## the package_metrics setting: diff --git a/plugins/inputs/iptables/README.md b/plugins/inputs/iptables/README.md index 4b510fe9f..73e651b80 100644 --- a/plugins/inputs/iptables/README.md +++ b/plugins/inputs/iptables/README.md @@ -76,6 +76,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. ```toml @sample.conf # Gather packets and bytes throughput from iptables +# This plugin ONLY supports Linux [[inputs.iptables]] ## iptables require root access on most systems. ## Setting 'use_sudo' to true will make use of sudo to run iptables. diff --git a/plugins/inputs/iptables/iptables_nocompile.go b/plugins/inputs/iptables/iptables_notlinux.go similarity index 100% rename from plugins/inputs/iptables/iptables_nocompile.go rename to plugins/inputs/iptables/iptables_notlinux.go diff --git a/plugins/inputs/iptables/sample.conf b/plugins/inputs/iptables/sample.conf index 1d38cb3aa..5d78d8290 100644 --- a/plugins/inputs/iptables/sample.conf +++ b/plugins/inputs/iptables/sample.conf @@ -1,4 +1,5 @@ # Gather packets and bytes throughput from iptables +# This plugin ONLY supports Linux [[inputs.iptables]] ## iptables require root access on most systems. ## Setting 'use_sudo' to true will make use of sudo to run iptables. diff --git a/plugins/inputs/ipvs/README.md b/plugins/inputs/ipvs/README.md index 6eae19864..bf5cdd247 100644 --- a/plugins/inputs/ipvs/README.md +++ b/plugins/inputs/ipvs/README.md @@ -18,6 +18,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. ```toml @sample.conf # Collect virtual and real server stats from Linux IPVS +# This plugin ONLY supports Linux [[inputs.ipvs]] # no configuration ``` diff --git a/plugins/inputs/ipvs/sample.conf b/plugins/inputs/ipvs/sample.conf index 003be0632..dcd19ff66 100644 --- a/plugins/inputs/ipvs/sample.conf +++ b/plugins/inputs/ipvs/sample.conf @@ -1,3 +1,4 @@ # Collect virtual and real server stats from Linux IPVS +# This plugin ONLY supports Linux [[inputs.ipvs]] # no configuration diff --git a/plugins/inputs/kernel_vmstat/README.md b/plugins/inputs/kernel_vmstat/README.md index 8485fd06b..50a6e2e6c 100644 --- a/plugins/inputs/kernel_vmstat/README.md +++ b/plugins/inputs/kernel_vmstat/README.md @@ -124,6 +124,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. ```toml @sample.conf # Get kernel statistics from /proc/vmstat +# This plugin ONLY supports Linux [[inputs.kernel_vmstat]] # no configuration ``` diff --git a/plugins/inputs/kernel_vmstat/sample.conf b/plugins/inputs/kernel_vmstat/sample.conf index fc5fd633d..4fdb145a1 100644 --- a/plugins/inputs/kernel_vmstat/sample.conf +++ b/plugins/inputs/kernel_vmstat/sample.conf @@ -1,3 +1,4 @@ # Get kernel statistics from /proc/vmstat +# This plugin ONLY supports Linux [[inputs.kernel_vmstat]] # no configuration diff --git a/plugins/inputs/linux_cpu/README.md b/plugins/inputs/linux_cpu/README.md index edef9dc3c..0fd33e113 100644 --- a/plugins/inputs/linux_cpu/README.md +++ b/plugins/inputs/linux_cpu/README.md @@ -15,6 +15,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. ```toml @sample.conf # Provides Linux CPU metrics +# This plugin ONLY supports Linux [[inputs.linux_cpu]] ## Path for sysfs filesystem. ## See https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt diff --git a/plugins/inputs/linux_cpu/sample.conf b/plugins/inputs/linux_cpu/sample.conf index 9cb85e997..777536ea1 100644 --- a/plugins/inputs/linux_cpu/sample.conf +++ b/plugins/inputs/linux_cpu/sample.conf @@ -1,4 +1,5 @@ # Provides Linux CPU metrics +# This plugin ONLY supports Linux [[inputs.linux_cpu]] ## Path for sysfs filesystem. ## See https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt diff --git a/plugins/inputs/lustre2/README.md b/plugins/inputs/lustre2/README.md index 860f7369a..1fc618209 100644 --- a/plugins/inputs/lustre2/README.md +++ b/plugins/inputs/lustre2/README.md @@ -19,6 +19,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. ```toml @sample.conf # Read metrics from local Lustre service on OST, MDS +# This plugin ONLY supports Linux [[inputs.lustre2]] ## An array of /proc globs to search for Lustre stats ## If not specified, the default will work on Lustre 2.5.x diff --git a/plugins/inputs/lustre2/lustre2.go b/plugins/inputs/lustre2/lustre2.go index 863fe7663..c9d873f7d 100644 --- a/plugins/inputs/lustre2/lustre2.go +++ b/plugins/inputs/lustre2/lustre2.go @@ -1,5 +1,5 @@ //go:generate ../../../tools/readme_config_includer/generator -//go:build !windows +//go:build linux // Package lustre2 (doesn't aim for Windows) // Lustre 2.x Telegraf plugin diff --git a/plugins/inputs/lustre2/lustre2_notlinux.go b/plugins/inputs/lustre2/lustre2_notlinux.go new file mode 100644 index 000000000..7bca3a02f --- /dev/null +++ b/plugins/inputs/lustre2/lustre2_notlinux.go @@ -0,0 +1,3 @@ +//go:build !linux + +package lustre2 diff --git a/plugins/inputs/lustre2/lustre2_test.go b/plugins/inputs/lustre2/lustre2_test.go index 4f2c21aec..5e4e7c8e5 100644 --- a/plugins/inputs/lustre2/lustre2_test.go +++ b/plugins/inputs/lustre2/lustre2_test.go @@ -1,4 +1,4 @@ -//go:build !windows +//go:build linux package lustre2 diff --git a/plugins/inputs/lustre2/lustre2_windows.go b/plugins/inputs/lustre2/lustre2_windows.go deleted file mode 100644 index c9f1af38d..000000000 --- a/plugins/inputs/lustre2/lustre2_windows.go +++ /dev/null @@ -1,3 +0,0 @@ -//go:build windows - -package lustre2 diff --git a/plugins/inputs/lustre2/sample.conf b/plugins/inputs/lustre2/sample.conf index 02a3e3133..0426f2331 100644 --- a/plugins/inputs/lustre2/sample.conf +++ b/plugins/inputs/lustre2/sample.conf @@ -1,4 +1,5 @@ # Read metrics from local Lustre service on OST, MDS +# This plugin ONLY supports Linux [[inputs.lustre2]] ## An array of /proc globs to search for Lustre stats ## If not specified, the default will work on Lustre 2.5.x