master
json 244 lines 6.94 KB
Raw
1 {
2 "jsonSchema": {
3 "$schema": "http://json-schema.org/draft-07/schema#",
4 "title": "PHP-FPM collector configuration.",
5 "type": "object",
6 "properties": {
7 "update_every": {
8 "title": "Update every",
9 "description": "Data collection interval, measured in seconds.",
10 "type": "integer",
11 "minimum": 1,
12 "default": 1
13 },
14 "autodetection_retry": {
15 "title": "Detection retry",
16 "description": "Recheck interval in seconds. Zero means no recheck will be scheduled.",
17 "type": "integer",
18 "minimum": 0,
19 "default": 60
20 },
21 "timeout": {
22 "title": "Timeout",
23 "description": "The timeout in seconds for requests.",
24 "type": "number",
25 "minimum": 0.5,
26 "default": 1
27 },
28 "url": {
29 "title": "URL",
30 "description": "The URL of the PHP-FPM [status page](https://www.php.net/manual/en/fpm.status.php).",
31 "type": "string",
32 "default": "http://127.0.0.1/status?full&json",
33 "format": "uri"
34 },
35 "address": {
36 "title": "Address",
37 "description": "The PHP-FPM daemon's TCP listening address. This will be preferred over the **URL** if set.",
38 "type": "string",
39 "default": ""
40 },
41 "socket": {
42 "title": "Socket",
43 "description": "The PHP-FPM daemon's Unix socket. This will be preferred over both the **URL** and **Address** if set.",
44 "type": "string",
45 "default": "",
46 "pattern": "^$|^/"
47 },
48 "fcgi_path": {
49 "title": "FCGI status path",
50 "description": "The URI to view the [FPM status page](https://www.php.net/manual/en/fpm.status.php).",
51 "type": "string",
52 "default": "/status",
53 "pattern": "^$|^/"
54 },
55 "not_follow_redirects": {
56 "title": "Not follow redirects",
57 "description": "If set, the client will not follow HTTP redirects automatically.",
58 "type": "boolean"
59 },
60 "vnode": {
61 "title": "Vnode",
62 "description": "Associates this data collection job with a [Virtual Node](https://learn.netdata.cloud/docs/netdata-agent/configuration/organize-systems-metrics-and-alerts#virtual-nodes).",
63 "type": "string"
64 },
65 "username": {
66 "title": "Username",
67 "description": "The username for basic authentication.",
68 "type": "string",
69 "sensitive": true
70 },
71 "password": {
72 "title": "Password",
73 "description": "The password for basic authentication.",
74 "type": "string",
75 "sensitive": true
76 },
77 "bearer_token_file": {
78 "title": "Bearer Token File",
79 "description": "Path to a file containing a bearer token for HTTP authentication.",
80 "type": "string"
81 },
82 "force_http2": {
83 "title": "Force HTTP2",
84 "description": "If set, forces the use of HTTP/2 protocol for all requests, even over plain TCP (h2c).",
85 "type": "boolean"
86 },
87 "proxy_url": {
88 "title": "Proxy URL",
89 "description": "The URL of the proxy server.",
90 "type": "string"
91 },
92 "proxy_username": {
93 "title": "Proxy username",
94 "description": "The username for proxy authentication.",
95 "type": "string",
96 "sensitive": true
97 },
98 "proxy_password": {
99 "title": "Proxy password",
100 "description": "The password for proxy authentication.",
101 "type": "string",
102 "sensitive": true
103 },
104 "headers": {
105 "title": "Headers",
106 "description": "Additional HTTP headers to include in the request.",
107 "type": [
108 "object",
109 "null"
110 ],
111 "additionalProperties": {
112 "type": "string"
113 }
114 },
115 "tls_skip_verify": {
116 "title": "Skip TLS verification",
117 "description": "If set, TLS certificate verification will be skipped.",
118 "type": "boolean"
119 },
120 "tls_ca": {
121 "title": "TLS CA",
122 "description": "The path to the CA certificate file for TLS verification.",
123 "type": "string",
124 "pattern": "^$|^/"
125 },
126 "tls_cert": {
127 "title": "TLS certificate",
128 "description": "The path to the client certificate file for TLS authentication.",
129 "type": "string",
130 "pattern": "^$|^/"
131 },
132 "tls_key": {
133 "title": "TLS key",
134 "description": "The path to the client key file for TLS authentication.",
135 "type": "string",
136 "pattern": "^$|^/"
137 },
138 "body": {
139 "title": "Body",
140 "type": "string"
141 },
142 "method": {
143 "title": "Method",
144 "type": "string"
145 }
146 }
147 },
148 "uiSchema": {
149 "uiOptions": {
150 "fullPage": true
151 },
152 "vnode": {
153 "ui:placeholder": "To use this option, first create a Virtual Node and then reference its name here."
154 },
155 "address": {
156 "ui:placeholder": "127.0.0.1:9000"
157 },
158 "socket": {
159 "ui:placeholder": "/tmp/php-fpm.sock"
160 },
161 "fcgi_path": {
162 "ui:widget": "hidden"
163 },
164 "body": {
165 "ui:widget": "hidden"
166 },
167 "method": {
168 "ui:widget": "hidden"
169 },
170 "bearer_token_file": {
171 "ui:help": "The token is sent in the Authorization header as `Bearer <token>`. **Takes priority over basic authentication**.",
172 "ui:widget": "hidden"
173 },
174 "force_http2": {
175 "ui:widget": "hidden"
176 },
177 "autodetection_retry": {
178 "ui:help": "This option determines how frequently (in seconds) Netdata will retry data collection jobs that failed initially, with the value of 60 meaning it retries to start data collection jobs every 60 seconds, while setting it to 0 disables this retry mechanism entirely."
179 },
180 "timeout": {
181 "ui:help": "Accepts decimals for precise control (e.g., type 1.5 for 1.5 seconds)."
182 },
183 "username": {
184 "ui:widget": "password"
185 },
186 "proxy_username": {
187 "ui:widget": "password"
188 },
189 "password": {
190 "ui:widget": "password"
191 },
192 "proxy_password": {
193 "ui:widget": "password"
194 },
195 "ui:flavour": "tabs",
196 "ui:options": {
197 "tabs": [
198 {
199 "title": "Base",
200 "fields": [
201 "update_every",
202 "autodetection_retry",
203 "timeout",
204 "url",
205 "address",
206 "socket",
207 "not_follow_redirects",
208 "vnode"
209 ]
210 },
211 {
212 "title": "Auth",
213 "fields": [
214 "username",
215 "password"
216 ]
217 },
218 {
219 "title": "TLS",
220 "fields": [
221 "tls_skip_verify",
222 "tls_ca",
223 "tls_cert",
224 "tls_key"
225 ]
226 },
227 {
228 "title": "Proxy",
229 "fields": [
230 "proxy_url",
231 "proxy_username",
232 "proxy_password"
233 ]
234 },
235 {
236 "title": "Headers",
237 "fields": [
238 "headers"
239 ]
240 }
241 ]
242 }
243 }
244 }