fix go.d/ethtool config schema (#19434)
Ilya Mashchenko committed
Jan 17, 2025 at 20:11 UTC
cab7353796549bf754c4ce816941f4eee0a74241
1 file changed
+7
-7
src/go/plugin/go.d/collector/ethtool/config_schema.json
+7
-7
@@ -22,10 +22,13 @@
22
"title": "Optical Interfaces",
23
"description": "Space-separated list of optical interface names which must have optical transceiver modules with [DDM](https://en.wikipedia.org/wiki/Small_Form-factor_Pluggable#Digital_diagnostics_monitoring).",
24
"type": "string"
25
- },
26
- "required": [
27
- "optical_interfaces"
28
- ]
25
+ }
26
+ },
27
+ "required": [
28
+ "optical_interfaces"
29
+ ],
30
+ "patternProperties": {
31
+ "^name$": {}
32
}
33
},
34
"uiSchema": {
@@ -35,9 +38,6 @@
38
"optical_interfaces": {
39
"ui:placeholder": "enp1s0 enp1s1 enp2s0"
40
},
38
- "binary_path": {
39
- "ui:help": "If an absolute path is provided, the collector will use it directly; otherwise, it will search for the binary in directories specified in the PATH environment variable."
40
- },
41
"timeout": {
42
"ui:help": "Accepts decimals for precise control (e.g., type 1.5 for 1.5 seconds)."
43
}