master
json 156 lines 4.46 KB
Raw
1 {
2 "jsonSchema": {
3 "$schema": "http://json-schema.org/draft-07/schema#",
4 "title": "Filecheck 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 "discovery_every": {
15 "title": "Scan interval",
16 "description": "Scan frequency interval (seconds) for files and directories with patterns (globs) in their paths.",
17 "type": "integer",
18 "minimum": 1,
19 "default": 60
20 },
21 "files": {
22 "title": "File selector",
23 "description": "Configuration for monitoring specific files. If left empy, no files will be monitored.",
24 "type": [
25 "object",
26 "null"
27 ],
28 "properties": {
29 "include": {
30 "title": "Include",
31 "description": "Include files that match any of the specified include [patterns](https://golang.org/pkg/path/filepath/#Match).",
32 "type": [
33 "array",
34 "null"
35 ],
36 "items": {
37 "title": "Filepath",
38 "type": "string"
39 },
40 "uniqueItems": true
41 },
42 "exclude": {
43 "title": "Exclude",
44 "description": "Exclude files that match any of the specified exclude [patterns](https://golang.org/pkg/path/filepath/#Match).",
45 "type": [
46 "array",
47 "null"
48 ],
49 "items": {
50 "title": "Filepath",
51 "type": "string"
52 },
53 "uniqueItems": true
54 }
55 },
56 "required": [
57 "include"
58 ]
59 },
60 "dirs": {
61 "title": "Directory selector",
62 "description": "Configuration for monitoring specific directories. If left empy, no directories will be monitored.",
63 "type": [
64 "object",
65 "null"
66 ],
67 "properties": {
68 "collect_dir_size": {
69 "title": "Collect directory size",
70 "description": "Enable the collection of directory sizes for each monitored directory. **Enabling this option may introduce additional overhead** on both Netdata and the host system, particularly if directories contain a large number of subdirectories and files.",
71 "type": "boolean",
72 "default": false
73 },
74 "include": {
75 "title": "Include",
76 "description": "Include directories that match any of the specified include [patterns](https://golang.org/pkg/path/filepath/#Match).",
77 "type": [
78 "array",
79 "null"
80 ],
81 "items": {
82 "title": "Directory",
83 "type": "string"
84 },
85 "uniqueItems": true
86 },
87 "exclude": {
88 "title": "Exclude",
89 "description": "Exclude directories that match any of the specified exclude [patterns](https://golang.org/pkg/path/filepath/#Match).",
90 "type": [
91 "array",
92 "null"
93 ],
94 "items": {
95 "title": "Directory",
96 "type": "string"
97 },
98 "uniqueItems": true
99 }
100 },
101 "required": [
102 "include"
103 ]
104 }
105 }
106 },
107 "uiSchema": {
108 "uiOptions": {
109 "fullPage": true
110 },
111 "ui:flavour": "tabs",
112 "ui:options": {
113 "tabs": [
114 {
115 "title": "Base",
116 "fields": [
117 "update_every",
118 "discovery_every"
119 ]
120 },
121 {
122 "title": "Files",
123 "fields": [
124 "files"
125 ]
126 },
127 {
128 "title": "Directories",
129 "fields": [
130 "dirs"
131 ]
132 }
133 ]
134 },
135 "files": {
136 "ui:help": "The logic for inclusion and exclusion is as follows: `(include1 OR include2) AND !(exclude1 OR exclude2)`.",
137 "ui:collapsible": true,
138 "include": {
139 "ui:listFlavour": "list"
140 },
141 "exclude": {
142 "ui:listFlavour": "list"
143 }
144 },
145 "dirs": {
146 "ui:help": "The logic for inclusion and exclusion is as follows: `(include1 OR include2) AND !(exclude1 OR exclude2)`.",
147 "ui:collapsible": true,
148 "include": {
149 "ui:listFlavour": "list"
150 },
151 "exclude": {
152 "ui:listFlavour": "list"
153 }
154 }
155 }
156 }