chore: Ensure go generate runs on all platforms (#12871)
This commit is contained in:
parent
84d1bdf73c
commit
9256a3f2e6
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package bcache
|
package bcache
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package conntrack
|
package conntrack
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package dpdk
|
package dpdk
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package hugepages
|
package hugepages
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package intel_dlb
|
package intel_dlb
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux || !amd64
|
//go:build !linux || !amd64
|
||||||
|
|
||||||
package intel_pmu
|
package intel_pmu
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package intel_powerstat
|
package intel_powerstat
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package iptables
|
package iptables
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package ipvs
|
package ipvs
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package kernel
|
package kernel
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package kernel_vmstat
|
package kernel_vmstat
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package lustre2
|
package lustre2
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package mdstat
|
package mdstat
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
package p4runtime
|
package p4runtime
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux || (linux && !386 && !amd64 && !arm && !arm64)
|
//go:build !linux || (linux && !386 && !amd64 && !arm && !arm64)
|
||||||
|
|
||||||
package ras
|
package ras
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package sensors
|
package sensors
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package slab
|
package slab
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !linux
|
//go:build !linux
|
||||||
|
|
||||||
package sysstat
|
package sysstat
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !windows
|
//go:build !windows
|
||||||
|
|
||||||
package win_eventlog
|
package win_eventlog
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !windows
|
//go:build !windows
|
||||||
|
|
||||||
package win_perf_counters
|
package win_perf_counters
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !windows
|
//go:build !windows
|
||||||
|
|
||||||
package win_services
|
package win_services
|
||||||
|
|
|
||||||
|
|
@ -11,33 +11,31 @@ to [read][ACL] the WMI namespace that is being queried.
|
||||||
[WMIdoc]: https://learn.microsoft.com/en-us/windows/win32/wmisdk/wmi-start-page
|
[WMIdoc]: https://learn.microsoft.com/en-us/windows/win32/wmisdk/wmi-start-page
|
||||||
|
|
||||||
## Global configuration options <!-- @/docs/includes/plugin_config.md -->
|
## Global configuration options <!-- @/docs/includes/plugin_config.md -->
|
||||||
|
|
||||||
In addition to the plugin-specific configuration settings, plugins support
|
In addition to the plugin-specific configuration settings, plugins support
|
||||||
additional global and plugin configuration settings. These settings are used to
|
additional global and plugin configuration settings. These settings are used to
|
||||||
modify metrics, tags, and field or create aliases and configure ordering, etc.
|
modify metrics, tags, and field or create aliases and configure ordering, etc.
|
||||||
See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
|
See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
|
||||||
|
|
||||||
[CONFIGURATION.md]: ../../../docs/CONFIGURATION.md
|
[CONFIGURATION.md]: ../../../docs/CONFIGURATION.md#plugins
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
```toml @sample.conf
|
```toml @sample.conf
|
||||||
# Input plugin to query Windows Management Instrumentation
|
# Input plugin to query Windows Management Instrumentation
|
||||||
# This plugin ONLY supports Windows
|
# This plugin ONLY supports Windows
|
||||||
[[inputs.win_wmi]]
|
[[inputs.win_wmi]]
|
||||||
# specifies a prefix to attach to the measurement name
|
[[inputs.win_wmi.query]]
|
||||||
name_prefix = "win_wmi_"
|
# a string representing the WMI namespace to be queried
|
||||||
[[inputs.win_wmi.query]]
|
namespace = "root\\cimv2"
|
||||||
# a string representing the WMI namespace to be queried
|
# a string representing the WMI class to be queried
|
||||||
namespace = "root\\cimv2"
|
class_name = "Win32_Volume"
|
||||||
# a string representing the WMI class to be queried
|
# an array of strings representing the properties of the WMI class to be queried
|
||||||
class_name = "Win32_Volume"
|
properties = ["Name", "Capacity", "FreeSpace"]
|
||||||
# an array of strings representing the properties of the WMI class to be queried
|
# a string specifying a WHERE clause to use as a filter for the WQL
|
||||||
properties = ["Name", "Capacity", "FreeSpace"]
|
filter = 'NOT Name LIKE "\\\\?\\%"'
|
||||||
# a string specifying a WHERE clause to use as a filter for the WQL
|
# WMI class properties which should be considered tags instead of fields
|
||||||
filter = 'NOT Name LIKE "\\\\?\\%"'
|
tag_properties = ["Name"]
|
||||||
# WMI class properties which should be considered tags instead of fields
|
|
||||||
tag_properties = ["Name"]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### namespace
|
### namespace
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:generate ../../../tools/readme_config_includer/generator
|
||||||
//go:build !windows
|
//go:build !windows
|
||||||
|
|
||||||
package win_wmi
|
package win_wmi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue