chore: Ensure go generate runs on all platforms (#12871)

This commit is contained in:
Joshua Powers 2023-03-15 10:47:55 -06:00 committed by GitHub
parent 84d1bdf73c
commit 9256a3f2e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 44 additions and 24 deletions

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package bcache

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package conntrack

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package dpdk

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package hugepages

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package intel_dlb

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux || !amd64
package intel_pmu

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package intel_powerstat

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package iptables

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package ipvs

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package kernel

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package kernel_vmstat

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package lustre2

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package mdstat

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
package p4runtime
import (

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux || (linux && !386 && !amd64 && !arm && !arm64)
package ras

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package sensors

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package slab

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !linux
package sysstat

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !windows
package win_eventlog

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !windows
package win_perf_counters

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !windows
package win_services

View File

@ -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
## Global configuration options <!-- @/docs/includes/plugin_config.md -->
In addition to the plugin-specific configuration settings, plugins support
additional global and plugin configuration settings. These settings are used to
modify metrics, tags, and field or create aliases and configure ordering, etc.
See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
[CONFIGURATION.md]: ../../../docs/CONFIGURATION.md
In addition to the plugin-specific configuration settings, plugins support
additional global and plugin configuration settings. These settings are used to
modify metrics, tags, and field or create aliases and configure ordering, etc.
See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
[CONFIGURATION.md]: ../../../docs/CONFIGURATION.md#plugins
## Configuration
```toml @sample.conf
# Input plugin to query Windows Management Instrumentation
# This plugin ONLY supports Windows
[[inputs.win_wmi]]
# specifies a prefix to attach to the measurement name
name_prefix = "win_wmi_"
[[inputs.win_wmi.query]]
# a string representing the WMI namespace to be queried
namespace = "root\\cimv2"
# a string representing the WMI class to be queried
class_name = "Win32_Volume"
# an array of strings representing the properties of the WMI class to be queried
properties = ["Name", "Capacity", "FreeSpace"]
# a string specifying a WHERE clause to use as a filter for the WQL
filter = 'NOT Name LIKE "\\\\?\\%"'
# WMI class properties which should be considered tags instead of fields
tag_properties = ["Name"]
# Input plugin to query Windows Management Instrumentation
# This plugin ONLY supports Windows
[[inputs.win_wmi]]
[[inputs.win_wmi.query]]
# a string representing the WMI namespace to be queried
namespace = "root\\cimv2"
# a string representing the WMI class to be queried
class_name = "Win32_Volume"
# an array of strings representing the properties of the WMI class to be queried
properties = ["Name", "Capacity", "FreeSpace"]
# a string specifying a WHERE clause to use as a filter for the WQL
filter = 'NOT Name LIKE "\\\\?\\%"'
# WMI class properties which should be considered tags instead of fields
tag_properties = ["Name"]
```
### namespace

View File

@ -1,3 +1,4 @@
//go:generate ../../../tools/readme_config_includer/generator
//go:build !windows
package win_wmi