@cryptotaxi247 / netdata-1 / commits / c56a12357

go.d.plugin: jsonschema allow array/object to be null (#17166)

Ilya Mashchenko committed Mar 14, 2024 at 20:22 UTC c56a123576b790528a9e4a030f1c0679b11c6665
55 files changed +468 -117
src/go/collectors/go.d.plugin/modules/activemq/config_schema.json
+4 -1
@@ -96,7 +96,10 @@
96 "headers": {
97 "title": "Headers",
98 "description": "Additional HTTP headers to include in the request.",
99 - "type": "object",
99 + "type": [
100 + "object",
101 + "null"
102 + ],
103 "additionalProperties": {
104 "type": "string"
105 }
src/go/collectors/go.d.plugin/modules/apache/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/bind/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/cassandra/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/cockroachdb/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/consul/config_schema.json
+4 -1
@@ -68,7 +68,10 @@
68 "headers": {
69 "title": "Headers",
70 "description": "Additional HTTP headers to include in the request.",
71 - "type": "object",
71 + "type": [
72 + "object",
73 + "null"
74 + ],
75 "additionalProperties": {
76 "type": "string"
77 }
src/go/collectors/go.d.plugin/modules/coredns/config_schema.json
+28 -7
@@ -33,12 +33,18 @@
33 "per_server_stats": {
34 "title": "Server selector",
35 "description": "Configures collection of per-server statistics. If left empty, no stats will be collected. Matching is performed against the `server` label value.",
36 - "type": "object",
36 + "type": [
37 + "object",
38 + "null"
39 + ],
40 "properties": {
41 "includes": {
42 "title": "Include",
43 "description": "Include servers whose names match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
41 - "type": "array",
44 + "type": [
45 + "array",
46 + "null"
47 + ],
48 "items": {
49 "title": "Server pattern",
50 "type": "string"
@@ -48,7 +54,10 @@
54 "excludes": {
55 "title": "Exclude",
56 "description": "Exclude servers whose names match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
51 - "type": "array",
57 + "type": [
58 + "array",
59 + "null"
60 + ],
61 "items": {
62 "title": "Server pattern",
63 "type": "string"
@@ -60,12 +69,18 @@
69 "per_zone_stats": {
70 "title": "Zone selector",
71 "description": "Configures collection of per-zone statistics. If left empty, no stats will be collected. Matching is performed against the `zone` label value.",
63 - "type": "object",
72 + "type": [
73 + "object",
74 + "null"
75 + ],
76 "properties": {
77 "includes": {
78 "title": "Include",
79 "description": "Include zones whose names match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
68 - "type": "array",
80 + "type": [
81 + "array",
82 + "null"
83 + ],
84 "items": {
85 "title": "Zone pattern",
86 "type": "string"
@@ -75,7 +90,10 @@
90 "excludes": {
91 "title": "Exclude",
92 "description": "Exclude zones whose names match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
78 - "type": "array",
93 + "type": [
94 + "array",
95 + "null"
96 + ],
97 "items": {
98 "title": "Zone pattern",
99 "type": "string"
@@ -116,7 +134,10 @@
134 "headers": {
135 "title": "Headers",
136 "description": "Additional HTTP headers to include in the request.",
119 - "type": "object",
137 + "type": [
138 + "object",
139 + "null"
140 + ],
141 "additionalProperties": {
142 "type": "string"
143 }
src/go/collectors/go.d.plugin/modules/couchbase/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/couchdb/config_schema.json
+4 -1
@@ -73,7 +73,10 @@
73 "headers": {
74 "title": "Headers",
75 "description": "Additional HTTP headers to include in the request.",
76 - "type": "object",
76 + "type": [
77 + "object",
78 + "null"
79 + ],
80 "additionalProperties": {
81 "type": "string"
82 }
src/go/collectors/go.d.plugin/modules/dnsdist/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/dnsquery/config_schema.json
+12 -3
@@ -37,7 +37,10 @@
37 "record_types": {
38 "title": "Record types",
39 "description": "Types of DNS records to query for each server.",
40 - "type": "array",
40 + "type": [
41 + "array",
42 + "null"
43 + ],
44 "items": {
45 "type": "string",
46 "enum": [
@@ -63,7 +66,10 @@
66 "servers": {
67 "title": "Servers",
68 "description": "List of DNS servers to query.",
66 - "type": "array",
69 + "type": [
70 + "array",
71 + "null"
72 + ],
73 "items": {
74 "title": "DNS server",
75 "description": "IP address or hostname of the DNS server.",
@@ -78,7 +84,10 @@
84 "domains": {
85 "title": "Domains",
86 "description": "List of domains or subdomains to query. A random domain will be selected from this list at each iteration.",
81 - "type": "array",
87 + "type": [
88 + "array",
89 + "null"
90 + ],
91 "items": {
92 "title": "Domain",
93 "type": "string"
src/go/collectors/go.d.plugin/modules/docker_engine/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/dockerhub/config_schema.json
+8 -2
@@ -28,7 +28,10 @@
28 "repositories": {
29 "title": "Repositories",
30 "description": "List of repositories to monitor.",
31 - "type": "array",
31 + "type": [
32 + "array",
33 + "null"
34 + ],
35 "items": {
36 "title": "Name",
37 "description": "The name of the repository.",
@@ -74,7 +77,10 @@
77 "headers": {
78 "title": "Headers",
79 "description": "Additional HTTP headers to include in the request.",
77 - "type": "object",
80 + "type": [
81 + "object",
82 + "null"
83 + ],
84 "additionalProperties": {
85 "type": "string"
86 }
src/go/collectors/go.d.plugin/modules/elasticsearch/config_schema.json
+4 -1
@@ -92,7 +92,10 @@
92 "headers": {
93 "title": "Headers",
94 "description": "Additional HTTP headers to include in the request.",
95 - "type": "object",
95 + "type": [
96 + "object",
97 + "null"
98 + ],
99 "additionalProperties": {
100 "type": "string"
101 }
src/go/collectors/go.d.plugin/modules/envoy/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/example/config_schema.json
+8 -2
@@ -13,7 +13,10 @@
13 },
14 "charts": {
15 "title": "Charts configuration",
16 - "type": "object",
16 + "type": [
17 + "object",
18 + "null"
19 + ],
20 "properties": {
21 "type": {
22 "title": "Chart type",
@@ -65,7 +68,10 @@
68 },
69 "hidden_charts": {
70 "title": "Hidden charts configuration",
68 - "type": "object",
71 + "type": [
72 + "object",
73 + "null"
74 + ],
75 "properties": {
76 "type": {
77 "title": "Chart type",
src/go/collectors/go.d.plugin/modules/filecheck/config_schema.json
+24 -6
@@ -14,12 +14,18 @@
14 "files": {
15 "title": "File selector",
16 "description": "Configuration for monitoring specific files. If left empy, no files will be monitored.",
17 - "type": "object",
17 + "type": [
18 + "object",
19 + "null"
20 + ],
21 "properties": {
22 "include": {
23 "title": "Include",
24 "description": "Include files that match any of the specified include [patterns](https://golang.org/pkg/path/filepath/#Match).",
22 - "type": "array",
25 + "type": [
26 + "array",
27 + "null"
28 + ],
29 "items": {
30 "title": "Filepath",
31 "type": "string",
@@ -30,7 +36,10 @@
36 "exclude": {
37 "title": "Exclude",
38 "description": "Exclude files that match any of the specified exclude [patterns](https://golang.org/pkg/path/filepath/#Match).",
33 - "type": "array",
39 + "type": [
40 + "array",
41 + "null"
42 + ],
43 "items": {
44 "title": "Filepath",
45 "type": "string",
@@ -52,12 +61,18 @@
61 "dirs": {
62 "title": "Directory selector",
63 "description": "Configuration for monitoring specific directories. If left empy, no directories will be monitored.",
55 - "type": "object",
64 + "type": [
65 + "object",
66 + "null"
67 + ],
68 "properties": {
69 "include": {
70 "title": "Include",
71 "description": "Include directories that match any of the specified include [patterns](https://golang.org/pkg/path/filepath/#Match).",
60 - "type": "array",
72 + "type": [
73 + "array",
74 + "null"
75 + ],
76 "items": {
77 "title": "Directory",
78 "type": "string",
@@ -68,7 +83,10 @@
83 "exclude": {
84 "title": "Exclude",
85 "description": "Exclude directories that match any of the specified exclude [patterns](https://golang.org/pkg/path/filepath/#Match).",
71 - "type": "array",
86 + "type": [
87 + "array",
88 + "null"
89 + ],
90 "items": {
91 "title": "Directory",
92 "type": "string",
src/go/collectors/go.d.plugin/modules/fluentd/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/geth/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/haproxy/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/hdfs/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/httpcheck/config_schema.json
+16 -4
@@ -32,7 +32,10 @@
32 "accepted_statuses": {
33 "title": "Status code check",
34 "description": "Specifies the list of **HTTP response status codes** that are considered **acceptable**. Responses with status codes not included in this list will be categorized as 'bad status' in the status chart.",
35 - "type": "array",
35 + "type": [
36 + "array",
37 + "null"
38 + ],
39 "items": {
40 "title": "Code",
41 "type": "integer",
@@ -53,9 +56,15 @@
56 "header_match": {
57 "title": "Header check",
58 "description": "Specifies a set of rules to check for specific key-value pairs in the HTTP headers of the response.",
56 - "type": "array",
59 + "type": [
60 + "array",
61 + "null"
62 + ],
63 "items": {
58 - "type": "object",
64 + "type": [
65 + "object",
66 + "null"
67 + ],
68 "properties": {
69 "exclude": {
70 "title": "Exclude",
@@ -111,7 +120,10 @@
120 "headers": {
121 "title": "Headers",
122 "description": "Additional HTTP headers to include in the request.",
114 - "type": "object",
123 + "type": [
124 + "object",
125 + "null"
126 + ],
127 "additionalProperties": {
128 "type": "string"
129 }
src/go/collectors/go.d.plugin/modules/isc_dhcpd/config_schema.json
+8 -2
@@ -21,10 +21,16 @@
21 "pools": {
22 "title": "IP pools",
23 "description": "A list of IP pools to monitor. Each pool consists of a descriptive name and corresponding IP ranges.",
24 - "type": "array",
24 + "type": [
25 + "array",
26 + "null"
27 + ],
28 "items": {
29 "title": "IP pool",
27 - "type": "object",
30 + "type": [
31 + "object",
32 + "null"
33 + ],
34 "properties": {
35 "name": {
36 "title": "Name",
src/go/collectors/go.d.plugin/modules/k8s_kubelet/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/k8s_kubeproxy/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/lighttpd/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/logstash/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/mongodb/config_schema.json
+12 -3
@@ -27,12 +27,18 @@
27 "databases": {
28 "title": "Database selector",
29 "description": "Configuration for monitoring specific databases. If left empty, no [database stats](https://docs.mongodb.com/manual/reference/command/dbStats/) will be collected.",
30 - "type": "object",
30 + "type": [
31 + "object",
32 + "null"
33 + ],
34 "properties": {
35 "includes": {
36 "title": "Include",
37 "description": "Include databases that match any of the specified include [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
35 - "type": "array",
38 + "type": [
39 + "array",
40 + "null"
41 + ],
42 "items": {
43 "title": "Pattern",
44 "type": "string"
@@ -42,7 +48,10 @@
48 "excludes": {
49 "title": "Exclude",
50 "description": "Exclude databases that match any of the specified exclude [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
45 - "type": "array",
51 + "type": [
52 + "array",
53 + "null"
54 + ],
55 "items": {
56 "title": "Pattern",
57 "type": "string"
src/go/collectors/go.d.plugin/modules/nginx/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/nginxplus/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/nginxvts/config_schema.json
+4 -1
@@ -61,7 +61,10 @@
61 "headers": {
62 "title": "Headers",
63 "description": "Additional HTTP headers to include in the request.",
64 - "type": "object",
64 + "type": [
65 + "object",
66 + "null"
67 + ],
68 "additionalProperties": {
69 "type": "string"
70 }
src/go/collectors/go.d.plugin/modules/openvpn/config_schema.json
+12 -3
@@ -27,12 +27,18 @@
27 "per_user_stats": {
28 "title": "User selector",
29 "description": "Configuration for monitoring specific users. If left empty, no user stats will be collected.",
30 - "type": "object",
30 + "type": [
31 + "object",
32 + "null"
33 + ],
34 "properties": {
35 "includes": {
36 "title": "Include",
37 "description": "Include users whose usernames match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
35 - "type": "array",
38 + "type": [
39 + "array",
40 + "null"
41 + ],
42 "items": {
43 "title": "Username pattern",
44 "type": "string"
@@ -42,7 +48,10 @@
48 "excludes": {
49 "title": "Exclude",
50 "description": "Exclude users whose usernames match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
45 - "type": "array",
51 + "type": [
52 + "array",
53 + "null"
54 + ],
55 "items": {
56 "title": "Username pattern",
57 "type": "string"
src/go/collectors/go.d.plugin/modules/openvpn_status_log/config_schema.json
+12 -3
@@ -21,12 +21,18 @@
21 "per_user_stats": {
22 "title": "User selector",
23 "description": "Configuration for monitoring specific users. If left empty, no user stats will be collected.",
24 - "type": "object",
24 + "type": [
25 + "object",
26 + "null"
27 + ],
28 "properties": {
29 "includes": {
30 "title": "Include",
31 "description": "Include users whose usernames match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
29 - "type": "array",
32 + "type": [
33 + "array",
34 + "null"
35 + ],
36 "items": {
37 "title": "Username pattern",
38 "type": "string"
@@ -36,7 +42,10 @@
42 "excludes": {
43 "title": "Exclude",
44 "description": "Exclude users whose usernames match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
39 - "type": "array",
45 + "type": [
46 + "array",
47 + "null"
48 + ],
49 "items": {
50 "title": "Username pattern",
51 "type": "string"
src/go/collectors/go.d.plugin/modules/phpdaemon/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/phpfpm/config_schema.json
+4 -1
@@ -41,7 +41,10 @@
41 "type": "string"
42 },
43 "headers": {
44 - "type": "object",
44 + "type": [
45 + "object",
46 + "null"
47 + ],
48 "additionalProperties": {
49 "type": "string"
50 }
src/go/collectors/go.d.plugin/modules/pihole/config_schema.json
+4 -1
@@ -68,7 +68,10 @@
68 "headers": {
69 "title": "Headers",
70 "description": "Additional HTTP headers to include in the request.",
71 - "type": "object",
71 + "type": [
72 + "object",
73 + "null"
74 + ],
75 "additionalProperties": {
76 "type": "string"
77 }
src/go/collectors/go.d.plugin/modules/ping/config_schema.json
+4 -1
@@ -20,7 +20,10 @@
20 "hosts": {
21 "title": "Network hosts",
22 "description": "List of network hosts (IP addresses or domain names) to send ping packets.",
23 - "type": "array",
23 + "type": [
24 + "array",
25 + "null"
26 + ],
27 "items": {
28 "title": "Host",
29 "type": "string"
src/go/collectors/go.d.plugin/modules/portcheck/config_schema.json
+4 -1
@@ -27,7 +27,10 @@
27 "ports": {
28 "title": "Ports",
29 "description": "A list of ports to monitor for TCP service availability and response time.",
30 - "type": "array",
30 + "type": [
31 + "array",
32 + "null"
33 + ],
34 "items": {
35 "title": "Port",
36 "type": "integer",
src/go/collectors/go.d.plugin/modules/postgres/config_schema.json
+8 -2
@@ -46,7 +46,10 @@
46 "transaction_time_histogram": {
47 "title": "Transaction time histogram",
48 "description": "Buckets for transaction time histogram in milliseconds.",
49 - "type": "array",
49 + "type": [
50 + "array",
51 + "null"
52 + ],
53 "items": {
54 "title": "Bucket",
55 "type": "number",
@@ -65,7 +68,10 @@
68 "query_time_histogram": {
69 "title": "Query time histogram",
70 "description": "Buckets for query time histogram in milliseconds.",
68 - "type": "array",
71 + "type": [
72 + "array",
73 + "null"
74 + ],
75 "items": {
76 "title": "Bucket",
77 "type": "number",
src/go/collectors/go.d.plugin/modules/powerdns/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/powerdns_recursor/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/prometheus/config_schema.json
+28 -7
@@ -42,12 +42,18 @@
42 "selector": {
43 "title": "Selectors",
44 "description": "Configuration for selecting and filtering a set of time series using Prometheus selectors. If left empty, no filtering is applied.",
45 - "type": "object",
45 + "type": [
46 + "object",
47 + "null"
48 + ],
49 "properties": {
50 "allow": {
51 "title": "Allow",
52 "description": "Allow time series that match any of the specified [selectors](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/prometheus/selector#readme).",
50 - "type": "array",
53 + "type": [
54 + "array",
55 + "null"
56 + ],
57 "items": {
58 "title": "Selector",
59 "type": "string"
@@ -57,7 +63,10 @@
63 "deny": {
64 "title": "Deny",
65 "description": "Deny time series that match any of the specified [selectors](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/prometheus/selector#readme).",
60 - "type": "array",
66 + "type": [
67 + "array",
68 + "null"
69 + ],
70 "items": {
71 "title": "Selector",
72 "type": "string"
@@ -83,12 +92,18 @@
92 "fallback_type": {
93 "title": "Untyped metrics fallback",
94 "description": "Process Untyped metrics as Counter or Gauge instead of ignoring them.",
86 - "type": "object",
95 + "type": [
96 + "object",
97 + "null"
98 + ],
99 "properties": {
100 "gauge": {
101 "title": "As Gauge",
102 "description": "Untyped metrics matching any [pattern](https://golang.org/pkg/path/filepath/#Match) will be processed as Gauge.",
91 - "type": "array",
103 + "type": [
104 + "array",
105 + "null"
106 + ],
107 "items": {
108 "title": "Pattern",
109 "type": "string"
@@ -98,7 +113,10 @@
113 "Counter": {
114 "title": "As Counter",
115 "description": "Untyped metrics matching any [pattern](https://golang.org/pkg/path/filepath/#Match) will be processed as Counter.",
101 - "type": "array",
116 + "type": [
117 + "array",
118 + "null"
119 + ],
120 "items": {
121 "title": "Pattern",
122 "type": "string"
@@ -144,7 +162,10 @@
162 "headers": {
163 "title": "Headers",
164 "description": "Additional HTTP headers to include in the request.",
147 - "type": "object",
165 + "type": [
166 + "object",
167 + "null"
168 + ],
169 "additionalProperties": {
170 "type": "string"
171 }
src/go/collectors/go.d.plugin/modules/pulsar/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/rabbitmq/config_schema.json
+4 -1
@@ -70,7 +70,10 @@
70 "headers": {
71 "title": "Headers",
72 "description": "Additional HTTP headers to include in the request.",
73 - "type": "object",
73 + "type": [
74 + "object",
75 + "null"
76 + ],
77 "additionalProperties": {
78 "type": "string"
79 }
src/go/collectors/go.d.plugin/modules/scaleio/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/snmp/config_schema.json
+28 -7
@@ -24,7 +24,10 @@
24 "options": {
25 "title": "Options",
26 "description": "Configuration options for SNMP monitoring.",
27 - "type": "object",
27 + "type": [
28 + "object",
29 + "null"
30 + ],
31 "properties": {
32 "version": {
33 "title": "SNMP version",
@@ -76,7 +79,10 @@
79 "user": {
80 "title": "SNMPv3 configuration",
81 "description": "Configuration options for SNMPv3 authentication and encryption.",
79 - "type": "object",
82 + "type": [
83 + "object",
84 + "null"
85 + ],
86 "properties": {
87 "name": {
88 "title": "Username",
@@ -133,12 +139,18 @@
139 },
140 "charts": {
141 "title": "Charts configuration",
136 - "type": "array",
142 + "type": [
143 + "array",
144 + "null"
145 + ],
146 "uniqueItems": true,
147 "minItems": 1,
148 "items": {
149 "title": "Chart",
141 - "type": "object",
150 + "type": [
151 + "object",
152 + "null"
153 + ],
154 "properties": {
155 "id": {
156 "title": "ID",
@@ -180,7 +192,10 @@
192 "multiply_range": {
193 "title": "OID index range",
194 "description": "Specifies the range of indexes used to create multiple charts. If set, a chart will be created for each index in the specified range. Each chart will have the index appended to the OID dimension.",
183 - "type": "array",
195 + "type": [
196 + "array",
197 + "null"
198 + ],
199 "items": {
200 "title": "Index",
201 "type": "integer",
@@ -192,12 +207,18 @@
207 "dimensions": {
208 "title": "Dimensions",
209 "description": "Configuration for dimensions of the chart.",
195 - "type": "array",
210 + "type": [
211 + "array",
212 + "null"
213 + ],
214 "uniqueItems": true,
215 "minItems": 1,
216 "items": {
217 "title": "Dimension configuration",
200 - "type": "object",
218 + "type": [
219 + "object",
220 + "null"
221 + ],
222 "properties": {
223 "oid": {
224 "title": "OID",
src/go/collectors/go.d.plugin/modules/squidlog/config_schema.json
+24 -6
@@ -50,7 +50,10 @@
50 },
51 "csv_config": {
52 "title": "CSV parser configuration",
53 - "type": "object",
53 + "type": [
54 + "object",
55 + "null"
56 + ],
57 "properties": {
58 "format": {
59 "title": "Format",
@@ -82,7 +85,10 @@
85 },
86 "regexp_config": {
87 "title": "Regular expression parser configuration",
85 - "type": "object",
88 + "type": [
89 + "object",
90 + "null"
91 + ],
92 "properties": {
93 "pattern": {
94 "title": "Pattern with named groups",
@@ -107,12 +113,18 @@
113 },
114 "json_config": {
115 "title": "JSON parser configuration",
110 - "type": "object",
116 + "type": [
117 + "object",
118 + "null"
119 + ],
120 "properties": {
121 "mapping": {
122 "title": "Field mapping",
123 "description": "Dictionary mapping fields in logs to known fields.",
115 - "type": "object",
124 + "type": [
125 + "object",
126 + "null"
127 + ],
128 "additionalProperties": {
129 "type": "string"
130 }
@@ -128,7 +140,10 @@
140 },
141 "ltsv_config": {
142 "title": "LTSV parser configuration",
131 - "type": "object",
143 + "type": [
144 + "object",
145 + "null"
146 + ],
147 "properties": {
148 "field_delimiter": {
149 "title": "Field delimiter",
@@ -145,7 +160,10 @@
160 "mapping": {
161 "title": "Field mapping",
162 "description": "Dictionary mapping fields in logs to known fields.",
148 - "type": "object",
163 + "type": [
164 + "object",
165 + "null"
166 + ],
167 "additionalProperties": {
168 "type": "string"
169 }
src/go/collectors/go.d.plugin/modules/systemdunits/config_schema.json
+4 -1
@@ -21,7 +21,10 @@
21 "include": {
22 "title": "Include",
23 "description": "Configuration for monitoring specific systemd units. Include systemd units whose names match any of the specified [patterns](https://golang.org/pkg/path/filepath/#Match).",
24 - "type": "array",
24 + "type": [
25 + "array",
26 + "null"
27 + ],
28 "uniqueItems": true,
29 "minItems": 1,
30 "items": {
src/go/collectors/go.d.plugin/modules/tengine/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/traefik/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/vcsa/config_schema.json
+4 -1
@@ -61,7 +61,10 @@
61 "headers": {
62 "title": "Headers",
63 "description": "Additional HTTP headers to include in the request.",
64 - "type": "object",
64 + "type": [
65 + "object",
66 + "null"
67 + ],
68 "additionalProperties": {
69 "type": "string"
70 }
src/go/collectors/go.d.plugin/modules/vernemq/config_schema.json
+4 -1
@@ -62,7 +62,10 @@
62 "headers": {
63 "title": "Headers",
64 "description": "Additional HTTP headers to include in the request.",
65 - "type": "object",
65 + "type": [
66 + "object",
67 + "null"
68 + ],
69 "additionalProperties": {
70 "type": "string"
71 }
src/go/collectors/go.d.plugin/modules/vsphere/config_schema.json
+12 -3
@@ -39,7 +39,10 @@
39 "host_include": {
40 "title": "Host selectors",
41 "description": "Configuration for monitoring specific hosts. The selector format follows the pattern `/Datacenter/Cluster/Host`, where each value can be set using [Netdata simple patterns](https://github.com/netdata/netdata/tree/master/src/libnetdata/simple_pattern#readme).",
42 - "type": "array",
42 + "type": [
43 + "array",
44 + "null"
45 + ],
46 "uniqueItems": true,
47 "items": {
48 "title": "Host selector",
@@ -55,7 +58,10 @@
58 "vm_include": {
59 "title": "Virtual machine selectors",
60 "description": "Configuration for monitoring specific virtual machines. The selector format follows the pattern `/Datacenter/Cluster/Host/VM`, where each value can be set using [Netdata simple patterns](https://github.com/netdata/netdata/tree/master/src/libnetdata/simple_pattern#readme).",
58 - "type": "array",
61 + "type": [
62 + "array",
63 + "null"
64 + ],
65 "uniqueItems": true,
66 "items": {
67 "title": "VM selector",
@@ -100,7 +106,10 @@
106 "headers": {
107 "title": "Headers",
108 "description": "Additional HTTP headers to include in the request.",
103 - "type": "object",
109 + "type": [
110 + "object",
111 + "null"
112 + ],
113 "additionalProperties": {
114 "type": "string"
115 }
src/go/collectors/go.d.plugin/modules/weblog/config_schema.json
+72 -18
@@ -26,7 +26,10 @@
26 "histogram": {
27 "title": "Request processing time histogram",
28 "description": "Buckets for the histogram in milliseconds.",
29 - "type": "array",
29 + "type": [
30 + "array",
31 + "null"
32 + ],
33 "items": {
34 "title": "Bucket",
35 "type": "number",
@@ -50,10 +53,16 @@
53 "url_patterns": {
54 "title": "URL patterns",
55 "description": "Patterns used to match against the full original request URI. For each pattern, the web log will collect responses by status code, method, bandwidth, and processing time.",
53 - "type": "array",
56 + "type": [
57 + "array",
58 + "null"
59 + ],
60 "items": {
61 "title": "Patterns",
56 - "type": "object",
62 + "type": [
63 + "object",
64 + "null"
65 + ],
66 "properties": {
67 "name": {
68 "title": "Dimension",
@@ -76,11 +85,17 @@
85 "custom_fields": {
86 "title": "Custom fields",
87 "description": "Configuration for custom fields. Fild value expected to be string. Patterns used to match against the value of the specified field. For each pattern, the web log will collect responses by status code.",
79 - "type": "array",
88 + "type": [
89 + "array",
90 + "null"
91 + ],
92 "uniqueItems": true,
93 "items": {
94 "title": "Field configuration",
83 - "type": "object",
95 + "type": [
96 + "object",
97 + "null"
98 + ],
99 "properties": {
100 "name": {
101 "title": "Field name",
@@ -90,10 +105,16 @@
105 "patterns": {
106 "title": "Patterns",
107 "description": "",
93 - "type": "array",
108 + "type": [
109 + "array",
110 + "null"
111 + ],
112 "items": {
113 "title": "User patterns",
96 - "type": "object",
114 + "type": [
115 + "object",
116 + "null"
117 + ],
118 "properties": {
119 "name": {
120 "title": "Dimension",
@@ -122,10 +143,16 @@
143 "custom_time_fields": {
144 "title": "Custom time fields",
145 "description": "Configuration for custom time fields. Field value expected to be numeric and represent time. For each field, the web log will calculate the minimum, average, maximum value, and histogram.",
125 - "type": "array",
146 + "type": [
147 + "array",
148 + "null"
149 + ],
150 "items": {
151 "title": "Field configuration",
128 - "type": "object",
152 + "type": [
153 + "object",
154 + "null"
155 + ],
156 "properties": {
157 "name": {
158 "title": "Field mame",
@@ -135,7 +162,10 @@
162 "histogram": {
163 "title": "Histogram",
164 "description": "Buckets for the histogram in milliseconds.",
138 - "type": "array",
165 + "type": [
166 + "array",
167 + "null"
168 + ],
169 "uniqueItems": true,
170 "items": {
171 "title": "Bucket",
@@ -165,10 +195,16 @@
195 "custom_numeric_fields": {
196 "title": "Custom numeric field",
197 "description": "Configuration for custom numeric fields. Fild value expected to be numeric. For each field, the web log will calculate the minimum, average, maximum value.",
168 - "type": "array",
198 + "type": [
199 + "array",
200 + "null"
201 + ],
202 "items": {
203 "title": "Field configuration",
171 - "type": "object",
204 + "type": [
205 + "object",
206 + "null"
207 + ],
208 "properties": {
209 "name": {
210 "title": "Name",
@@ -229,7 +265,10 @@
265 },
266 "csv_config": {
267 "title": "CSV parser configuration",
232 - "type": "object",
268 + "type": [
269 + "object",
270 + "null"
271 + ],
272 "properties": {
273 "format": {
274 "title": "Format",
@@ -261,7 +300,10 @@
300 },
301 "regexp_config": {
302 "title": "Regular expression parser configuration",
264 - "type": "object",
303 + "type": [
304 + "object",
305 + "null"
306 + ],
307 "properties": {
308 "pattern": {
309 "title": "Pattern with named groups",
@@ -286,12 +328,18 @@
328 },
329 "json_config": {
330 "title": "JSON parser configuration",
289 - "type": "object",
331 + "type": [
332 + "object",
333 + "null"
334 + ],
335 "properties": {
336 "mapping": {
337 "title": "Field mapping",
338 "description": "Dictionary mapping fields in logs to known fields.",
294 - "type": "object",
339 + "type": [
340 + "object",
341 + "null"
342 + ],
343 "additionalProperties": {
344 "type": "string"
345 }
@@ -307,7 +355,10 @@
355 },
356 "ltsv_config": {
357 "title": "LTSV parser configuration",
310 - "type": "object",
358 + "type": [
359 + "object",
360 + "null"
361 + ],
362 "properties": {
363 "field_delimiter": {
364 "title": "Field delimiter",
@@ -324,7 +375,10 @@
375 "mapping": {
376 "title": "Field mapping",
377 "description": "Dictionary mapping fields in logs to known fields.",
327 - "type": "object",
378 + "type": [
379 + "object",
380 + "null"
381 + ],
382 "additionalProperties": {
383 "type": "string"
384 }
src/go/collectors/go.d.plugin/modules/windows/config_schema.json
+4 -1
@@ -60,7 +60,10 @@
60 "headers": {
61 "title": "Headers",
62 "description": "Additional HTTP headers to include in the request.",
63 - "type": "object",
63 + "type": [
64 + "object",
65 + "null"
66 + ],
67 "additionalProperties": {
68 "type": "string"
69 }