chore: Document linux only plugins (part 1) (#12764)

This commit is contained in:
Joshua Powers 2023-03-01 14:21:14 -07:00 committed by GitHub
parent b2b58bab9e
commit 5e65077860
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
31 changed files with 32 additions and 12 deletions

View File

@ -64,6 +64,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
```toml @sample.conf ```toml @sample.conf
# Read metrics of bcache from stats_total and dirty_data # Read metrics of bcache from stats_total and dirty_data
# This plugin ONLY supports Linux
[[inputs.bcache]] [[inputs.bcache]]
## Bcache sets path ## Bcache sets path
## If not specified, then default is: ## If not specified, then default is:

View File

@ -1,7 +1,5 @@
//go:generate ../../../tools/readme_config_includer/generator //go:generate ../../../tools/readme_config_includer/generator
//go:build !windows //go:build linux
// bcache doesn't aim for Windows
package bcache package bcache

View File

@ -0,0 +1,3 @@
//go:build !linux
package bcache

View File

@ -1,4 +1,4 @@
//go:build !windows //go:build linux
package bcache package bcache

View File

@ -1,3 +0,0 @@
//go:build windows
package bcache

View File

@ -1,4 +1,5 @@
# Read metrics of bcache from stats_total and dirty_data # Read metrics of bcache from stats_total and dirty_data
# This plugin ONLY supports Linux
[[inputs.bcache]] [[inputs.bcache]]
## Bcache sets path ## Bcache sets path
## If not specified, then default is: ## If not specified, then default is:

View File

@ -37,6 +37,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
```toml @sample.conf ```toml @sample.conf
# Collects conntrack stats from the configured directories and files. # Collects conntrack stats from the configured directories and files.
# This plugin ONLY supports Linux
[[inputs.conntrack]] [[inputs.conntrack]]
## The following defaults would work with multiple versions of conntrack. ## The following defaults would work with multiple versions of conntrack.
## Note the nf_ and ip_ filename prefixes are mutually exclusive across ## Note the nf_ and ip_ filename prefixes are mutually exclusive across

View File

@ -1,4 +1,5 @@
# Collects conntrack stats from the configured directories and files. # Collects conntrack stats from the configured directories and files.
# This plugin ONLY supports Linux
[[inputs.conntrack]] [[inputs.conntrack]]
## The following defaults would work with multiple versions of conntrack. ## The following defaults would work with multiple versions of conntrack.
## Note the nf_ and ip_ filename prefixes are mutually exclusive across ## Note the nf_ and ip_ filename prefixes are mutually exclusive across

View File

@ -57,6 +57,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
```toml @sample.conf ```toml @sample.conf
# Reads metrics from DPDK applications using v2 telemetry interface. # Reads metrics from DPDK applications using v2 telemetry interface.
# This plugin ONLY supports Linux
[[inputs.dpdk]] [[inputs.dpdk]]
## Path to DPDK telemetry socket. This shall point to v2 version of DPDK ## Path to DPDK telemetry socket. This shall point to v2 version of DPDK
## telemetry interface. ## telemetry interface.

View File

@ -1,4 +1,5 @@
# Reads metrics from DPDK applications using v2 telemetry interface. # Reads metrics from DPDK applications using v2 telemetry interface.
# This plugin ONLY supports Linux
[[inputs.dpdk]] [[inputs.dpdk]]
## Path to DPDK telemetry socket. This shall point to v2 version of DPDK ## Path to DPDK telemetry socket. This shall point to v2 version of DPDK
## telemetry interface. ## telemetry interface.

View File

@ -21,6 +21,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
```toml @sample.conf ```toml @sample.conf
# Gathers huge pages measurements. # Gathers huge pages measurements.
# This plugin ONLY supports Linux
[[inputs.hugepages]] [[inputs.hugepages]]
## Supported huge page types: ## Supported huge page types:
## - "root" - based on root huge page control directory: ## - "root" - based on root huge page control directory:

View File

@ -1,4 +1,5 @@
# Gathers huge pages measurements. # Gathers huge pages measurements.
# This plugin ONLY supports Linux
[[inputs.hugepages]] [[inputs.hugepages]]
## Supported huge page types: ## Supported huge page types:
## - "root" - based on root huge page control directory: ## - "root" - based on root huge page control directory:

View File

@ -66,6 +66,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
```toml @sample.conf ```toml @sample.conf
## Reads metrics from DPDK using v2 telemetry interface. ## Reads metrics from DPDK using v2 telemetry interface.
## This plugin ONLY supports Linux
[[inputs.intel_dlb]] [[inputs.intel_dlb]]
## Path to DPDK telemetry socket. ## Path to DPDK telemetry socket.
# socket_path = "/var/run/dpdk/rte/dpdk_telemetry.v2" # socket_path = "/var/run/dpdk/rte/dpdk_telemetry.v2"

View File

@ -1,4 +1,5 @@
## Reads metrics from DPDK using v2 telemetry interface. ## Reads metrics from DPDK using v2 telemetry interface.
## This plugin ONLY supports Linux
[[inputs.intel_dlb]] [[inputs.intel_dlb]]
## Path to DPDK telemetry socket. ## Path to DPDK telemetry socket.
# socket_path = "/var/run/dpdk/rte/dpdk_telemetry.v2" # socket_path = "/var/run/dpdk/rte/dpdk_telemetry.v2"

View File

@ -23,6 +23,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
```toml @sample.conf ```toml @sample.conf
# Intel PowerStat plugin enables monitoring of platform metrics (power, TDP) # Intel PowerStat plugin enables monitoring of platform metrics (power, TDP)
# and per-CPU metrics like temperature, power and utilization. # and per-CPU metrics like temperature, power and utilization.
# This plugin ONLY supports Linux
[[inputs.intel_powerstat]] [[inputs.intel_powerstat]]
## The user can choose which package metrics are monitored by the plugin with ## The user can choose which package metrics are monitored by the plugin with
## the package_metrics setting: ## the package_metrics setting:

View File

@ -1,5 +1,6 @@
# Intel PowerStat plugin enables monitoring of platform metrics (power, TDP) # Intel PowerStat plugin enables monitoring of platform metrics (power, TDP)
# and per-CPU metrics like temperature, power and utilization. # and per-CPU metrics like temperature, power and utilization.
# This plugin ONLY supports Linux
[[inputs.intel_powerstat]] [[inputs.intel_powerstat]]
## The user can choose which package metrics are monitored by the plugin with ## The user can choose which package metrics are monitored by the plugin with
## the package_metrics setting: ## the package_metrics setting:

View File

@ -76,6 +76,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
```toml @sample.conf ```toml @sample.conf
# Gather packets and bytes throughput from iptables # Gather packets and bytes throughput from iptables
# This plugin ONLY supports Linux
[[inputs.iptables]] [[inputs.iptables]]
## iptables require root access on most systems. ## iptables require root access on most systems.
## Setting 'use_sudo' to true will make use of sudo to run iptables. ## Setting 'use_sudo' to true will make use of sudo to run iptables.

View File

@ -1,4 +1,5 @@
# Gather packets and bytes throughput from iptables # Gather packets and bytes throughput from iptables
# This plugin ONLY supports Linux
[[inputs.iptables]] [[inputs.iptables]]
## iptables require root access on most systems. ## iptables require root access on most systems.
## Setting 'use_sudo' to true will make use of sudo to run iptables. ## Setting 'use_sudo' to true will make use of sudo to run iptables.

View File

@ -18,6 +18,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
```toml @sample.conf ```toml @sample.conf
# Collect virtual and real server stats from Linux IPVS # Collect virtual and real server stats from Linux IPVS
# This plugin ONLY supports Linux
[[inputs.ipvs]] [[inputs.ipvs]]
# no configuration # no configuration
``` ```

View File

@ -1,3 +1,4 @@
# Collect virtual and real server stats from Linux IPVS # Collect virtual and real server stats from Linux IPVS
# This plugin ONLY supports Linux
[[inputs.ipvs]] [[inputs.ipvs]]
# no configuration # no configuration

View File

@ -124,6 +124,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
```toml @sample.conf ```toml @sample.conf
# Get kernel statistics from /proc/vmstat # Get kernel statistics from /proc/vmstat
# This plugin ONLY supports Linux
[[inputs.kernel_vmstat]] [[inputs.kernel_vmstat]]
# no configuration # no configuration
``` ```

View File

@ -1,3 +1,4 @@
# Get kernel statistics from /proc/vmstat # Get kernel statistics from /proc/vmstat
# This plugin ONLY supports Linux
[[inputs.kernel_vmstat]] [[inputs.kernel_vmstat]]
# no configuration # no configuration

View File

@ -15,6 +15,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
```toml @sample.conf ```toml @sample.conf
# Provides Linux CPU metrics # Provides Linux CPU metrics
# This plugin ONLY supports Linux
[[inputs.linux_cpu]] [[inputs.linux_cpu]]
## Path for sysfs filesystem. ## Path for sysfs filesystem.
## See https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt ## See https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt

View File

@ -1,4 +1,5 @@
# Provides Linux CPU metrics # Provides Linux CPU metrics
# This plugin ONLY supports Linux
[[inputs.linux_cpu]] [[inputs.linux_cpu]]
## Path for sysfs filesystem. ## Path for sysfs filesystem.
## See https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt ## See https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt

View File

@ -19,6 +19,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
```toml @sample.conf ```toml @sample.conf
# Read metrics from local Lustre service on OST, MDS # Read metrics from local Lustre service on OST, MDS
# This plugin ONLY supports Linux
[[inputs.lustre2]] [[inputs.lustre2]]
## An array of /proc globs to search for Lustre stats ## An array of /proc globs to search for Lustre stats
## If not specified, the default will work on Lustre 2.5.x ## If not specified, the default will work on Lustre 2.5.x

View File

@ -1,5 +1,5 @@
//go:generate ../../../tools/readme_config_includer/generator //go:generate ../../../tools/readme_config_includer/generator
//go:build !windows //go:build linux
// Package lustre2 (doesn't aim for Windows) // Package lustre2 (doesn't aim for Windows)
// Lustre 2.x Telegraf plugin // Lustre 2.x Telegraf plugin

View File

@ -0,0 +1,3 @@
//go:build !linux
package lustre2

View File

@ -1,4 +1,4 @@
//go:build !windows //go:build linux
package lustre2 package lustre2

View File

@ -1,3 +0,0 @@
//go:build windows
package lustre2

View File

@ -1,4 +1,5 @@
# Read metrics from local Lustre service on OST, MDS # Read metrics from local Lustre service on OST, MDS
# This plugin ONLY supports Linux
[[inputs.lustre2]] [[inputs.lustre2]]
## An array of /proc globs to search for Lustre stats ## An array of /proc globs to search for Lustre stats
## If not specified, the default will work on Lustre 2.5.x ## If not specified, the default will work on Lustre 2.5.x