master
json 416 lines 11.3 KB
Raw
1 {
2 "jsonSchema": {
3 "$schema": "http://json-schema.org/draft-07/schema#",
4 "properties": {
5 "backup_history_days": {
6 "default": 30,
7 "description": "BackupHistoryDays controls how many days of backup history are retrieved.",
8 "title": "Backup History Days",
9 "type": "integer"
10 },
11 "collect_bufferpool_metrics": {
12 "default": "auto",
13 "description": "CollectBufferpoolMetrics toggles buffer pool efficiency metrics.",
14 "enum": [
15 "auto",
16 "enabled",
17 "disabled"
18 ],
19 "title": "Collect Bufferpool Metrics",
20 "type": "string"
21 },
22 "collect_connection_metrics": {
23 "default": "auto",
24 "description": "CollectConnectionMetrics toggles per-connection activity metrics.",
25 "enum": [
26 "auto",
27 "enabled",
28 "disabled"
29 ],
30 "title": "Collect Connection Metrics",
31 "type": "string"
32 },
33 "collect_database_metrics": {
34 "default": "auto",
35 "description": "CollectDatabaseMetrics toggles high-level database status metrics.",
36 "enum": [
37 "auto",
38 "enabled",
39 "disabled"
40 ],
41 "title": "Collect Database Metrics",
42 "type": "string"
43 },
44 "collect_databases_matching": {
45 "default": "",
46 "description": "CollectDatabasesMatching filters databases by name using glob patterns.",
47 "title": "Collect Databases Matching",
48 "type": "string"
49 },
50 "collect_index_metrics": {
51 "default": "auto",
52 "description": "CollectIndexMetrics toggles index usage metrics.",
53 "enum": [
54 "auto",
55 "enabled",
56 "disabled"
57 ],
58 "title": "Collect Index Metrics",
59 "type": "string"
60 },
61 "collect_lock_metrics": {
62 "default": "auto",
63 "description": "CollectLockMetrics toggles lock contention metrics.",
64 "enum": [
65 "auto",
66 "enabled",
67 "disabled"
68 ],
69 "title": "Collect Lock Metrics",
70 "type": "string"
71 },
72 "collect_memory_metrics": {
73 "default": true,
74 "description": "CollectMemoryMetrics enables memory pool statistics.",
75 "title": "Collect Memory Metrics",
76 "type": "boolean"
77 },
78 "collect_table_io_metrics": {
79 "default": true,
80 "description": "CollectTableIOMetrics enables table I/O statistics when available.",
81 "title": "Collect Table Io Metrics",
82 "type": "boolean"
83 },
84 "collect_table_metrics": {
85 "default": "auto",
86 "description": "CollectTableMetrics toggles table-level size and row metrics.",
87 "enum": [
88 "auto",
89 "enabled",
90 "disabled"
91 ],
92 "title": "Collect Table Metrics",
93 "type": "string"
94 },
95 "collect_tablespace_metrics": {
96 "default": "auto",
97 "description": "CollectTablespaceMetrics toggles tablespace capacity metrics.",
98 "enum": [
99 "auto",
100 "enabled",
101 "disabled"
102 ],
103 "title": "Collect Tablespace Metrics",
104 "type": "string"
105 },
106 "collect_wait_metrics": {
107 "default": true,
108 "description": "CollectWaitMetrics enables wait time statistics (locks, logs, I/O).",
109 "title": "Collect Wait Metrics",
110 "type": "boolean"
111 },
112 "dsn": {
113 "default": "",
114 "description": "DSN provides a full DB2 connection string when manual control is required.",
115 "title": "DSN",
116 "type": "string"
117 },
118 "exclude_bufferpools": {
119 "default": "nil",
120 "description": "ExcludeBufferpools excludes buffer pools after inclusion.",
121 "items": {
122 "type": "string"
123 },
124 "title": "Exclude Bufferpools",
125 "type": "array"
126 },
127 "exclude_connections": {
128 "default": [
129 "*TEMP*"
130 ],
131 "description": "ExcludeConnections excludes connections after inclusion matching.",
132 "items": {
133 "type": "string"
134 },
135 "title": "Exclude Connections",
136 "type": "array"
137 },
138 "exclude_indexes": {
139 "default": "nil",
140 "description": "ExcludeIndexes excludes indexes after inclusion.",
141 "items": {
142 "type": "string"
143 },
144 "title": "Exclude Indexes",
145 "type": "array"
146 },
147 "exclude_tables": {
148 "default": "nil",
149 "description": "ExcludeTables excludes tables after inclusion.",
150 "items": {
151 "type": "string"
152 },
153 "title": "Exclude Tables",
154 "type": "array"
155 },
156 "exclude_tablespaces": {
157 "default": [
158 "TEMPSPACE2"
159 ],
160 "description": "ExcludeTablespaces excludes tablespaces after inclusion.",
161 "items": {
162 "type": "string"
163 },
164 "title": "Exclude Tablespaces",
165 "type": "array"
166 },
167 "include_bufferpools": {
168 "default": [
169 "IBMDEFAULTBP",
170 "IBMSYSTEMBP*",
171 "IBMHADRBP*"
172 ],
173 "description": "IncludeBufferpools filters buffer pools by name.",
174 "items": {
175 "type": "string"
176 },
177 "title": "Include Bufferpools",
178 "type": "array"
179 },
180 "include_connections": {
181 "default": [
182 "db2sysc*",
183 "db2agent*",
184 "db2hadr*",
185 "db2acd*",
186 "db2bmgr*"
187 ],
188 "description": "IncludeConnections filters monitored connections by application ID or application name (wildcards supported).",
189 "items": {
190 "type": "string"
191 },
192 "title": "Include Connections",
193 "type": "array"
194 },
195 "include_indexes": {
196 "default": "nil",
197 "description": "IncludeIndexes filters indexes by schema/name.",
198 "items": {
199 "type": "string"
200 },
201 "title": "Include Indexes",
202 "type": "array"
203 },
204 "include_tables": {
205 "default": "nil",
206 "description": "IncludeTables filters tables by schema/name.",
207 "items": {
208 "type": "string"
209 },
210 "title": "Include Tables",
211 "type": "array"
212 },
213 "include_tablespaces": {
214 "default": [
215 "SYSCATSPACE",
216 "TEMPSPACE*",
217 "SYSTOOLSPACE"
218 ],
219 "description": "IncludeTablespaces filters tablespaces by name.",
220 "items": {
221 "type": "string"
222 },
223 "title": "Include Tablespaces",
224 "type": "array"
225 },
226 "max_bufferpools": {
227 "default": 20,
228 "description": "MaxBufferpools caps the number of buffer pools charted.",
229 "title": "Max Bufferpools",
230 "type": "integer"
231 },
232 "max_connections": {
233 "default": 50,
234 "description": "MaxConnections caps the number of connection instances charted.",
235 "title": "Max Connections",
236 "type": "integer"
237 },
238 "max_databases": {
239 "default": 10,
240 "description": "MaxDatabases caps the number of databases charted.",
241 "title": "Max Databases",
242 "type": "integer"
243 },
244 "max_db_conns": {
245 "default": 1,
246 "description": "MaxDbConns limits the connection pool size.",
247 "title": "Max Db Conns",
248 "type": "integer"
249 },
250 "max_db_life_time": {
251 "default": 600000000000,
252 "description": "MaxDbLifeTime forces pooled connections to be recycled after the specified duration.",
253 "title": "Max Db Life Time",
254 "type": "integer"
255 },
256 "max_indexes": {
257 "default": 50,
258 "description": "MaxIndexes caps the number of indexes charted.",
259 "title": "Max Indexes",
260 "type": "integer"
261 },
262 "max_tables": {
263 "default": 25,
264 "description": "MaxTables caps the number of tables charted.",
265 "title": "Max Tables",
266 "type": "integer"
267 },
268 "max_tablespaces": {
269 "default": 50,
270 "description": "MaxTablespaces caps the number of tablespaces charted.",
271 "title": "Max Tablespaces",
272 "type": "integer"
273 },
274 "timeout": {
275 "default": 2000000000,
276 "description": "Timeout controls how long DB2 RPCs may run before cancellation.",
277 "title": "Timeout",
278 "type": "integer"
279 },
280 "update_every": {
281 "default": 5,
282 "description": "Data collection frequency",
283 "minimum": 1,
284 "title": "Update Every",
285 "type": "integer"
286 },
287 "vnode": {
288 "default": "",
289 "description": "Vnode allows binding the collector to a virtual node.",
290 "title": "Vnode",
291 "type": "string"
292 }
293 },
294 "title": "db2 collector configuration",
295 "type": "object"
296 },
297 "uiSchema": {
298 "exclude_bufferpools": {
299 "ui:listFlavour": "list"
300 },
301 "exclude_connections": {
302 "ui:listFlavour": "list"
303 },
304 "exclude_indexes": {
305 "ui:listFlavour": "list"
306 },
307 "exclude_tables": {
308 "ui:listFlavour": "list"
309 },
310 "exclude_tablespaces": {
311 "ui:listFlavour": "list"
312 },
313 "include_bufferpools": {
314 "ui:listFlavour": "list"
315 },
316 "include_connections": {
317 "ui:listFlavour": "list"
318 },
319 "include_indexes": {
320 "ui:listFlavour": "list"
321 },
322 "include_tables": {
323 "ui:listFlavour": "list"
324 },
325 "include_tablespaces": {
326 "ui:listFlavour": "list"
327 },
328 "ui:flavour": "tabs",
329 "ui:options": {
330 "tabs": [
331 {
332 "fields": [
333 "update_every",
334 "vnode",
335 "dsn",
336 "timeout"
337 ],
338 "title": "Connection"
339 },
340 {
341 "fields": [
342 "max_db_conns",
343 "max_db_life_time",
344 "backup_history_days"
345 ],
346 "title": "Advanced"
347 },
348 {
349 "fields": [
350 "collect_database_metrics",
351 "max_databases",
352 "collect_databases_matching"
353 ],
354 "title": "Databases"
355 },
356 {
357 "fields": [
358 "collect_bufferpool_metrics",
359 "max_bufferpools",
360 "include_bufferpools",
361 "exclude_bufferpools"
362 ],
363 "title": "Buffer Pools"
364 },
365 {
366 "fields": [
367 "collect_tablespace_metrics",
368 "max_tablespaces",
369 "include_tablespaces",
370 "exclude_tablespaces"
371 ],
372 "title": "Tablespaces"
373 },
374 {
375 "fields": [
376 "collect_connection_metrics",
377 "max_connections",
378 "include_connections",
379 "exclude_connections"
380 ],
381 "title": "Connections Monitoring"
382 },
383 {
384 "fields": [
385 "collect_lock_metrics",
386 "collect_memory_metrics",
387 "collect_wait_metrics",
388 "collect_table_io_metrics"
389 ],
390 "title": "Other Metrics"
391 },
392 {
393 "fields": [
394 "collect_table_metrics",
395 "max_tables",
396 "include_tables",
397 "exclude_tables"
398 ],
399 "title": "Tables"
400 },
401 {
402 "fields": [
403 "collect_index_metrics",
404 "max_indexes",
405 "include_indexes",
406 "exclude_indexes"
407 ],
408 "title": "Indexes"
409 }
410 ]
411 },
412 "uiOptions": {
413 "fullPage": true
414 }
415 }
416 }