diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 11:19:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:53:24 +0000 |
commit | b5f8ee61a7f7e9bd291dd26b0585d03eb686c941 (patch) | |
tree | d4d31289c39fc00da064a825df13a0b98ce95b10 /src/go/collectors/go.d.plugin/modules/filecheck/config_schema.json | |
parent | Adding upstream version 1.44.3. (diff) | |
download | netdata-upstream.tar.xz netdata-upstream.zip |
Adding upstream version 1.46.3.upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/go/collectors/go.d.plugin/modules/filecheck/config_schema.json | 164 |
1 files changed, 164 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/filecheck/config_schema.json b/src/go/collectors/go.d.plugin/modules/filecheck/config_schema.json new file mode 100644 index 000000000..c64bb941f --- /dev/null +++ b/src/go/collectors/go.d.plugin/modules/filecheck/config_schema.json @@ -0,0 +1,164 @@ +{ + "jsonSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Filecheck collector configuration.", + "type": "object", + "properties": { + "update_every": { + "title": "Update every", + "description": "Data collection interval, measured in seconds.", + "type": "integer", + "minimum": 1, + "default": 1 + }, + "discovery_every": { + "title": "Scan interval", + "description": "Scan frequency interval (seconds) for files and directories with patterns (globs) in their paths.", + "type": "integer", + "minimum": 1, + "default": 60 + }, + "files": { + "title": "File selector", + "description": "Configuration for monitoring specific files. If left empy, no files will be monitored.", + "type": [ + "object", + "null" + ], + "properties": { + "include": { + "title": "Include", + "description": "Include files that match any of the specified include [patterns](https://golang.org/pkg/path/filepath/#Match).", + "type": [ + "array", + "null" + ], + "items": { + "title": "Filepath", + "type": "string", + "pattern": "^$|^/" + }, + "uniqueItems": true + }, + "exclude": { + "title": "Exclude", + "description": "Exclude files that match any of the specified exclude [patterns](https://golang.org/pkg/path/filepath/#Match).", + "type": [ + "array", + "null" + ], + "items": { + "title": "Filepath", + "type": "string", + "pattern": "^$|^/" + }, + "uniqueItems": true + } + }, + "required": [ + "include" + ] + }, + "dirs": { + "title": "Directory selector", + "description": "Configuration for monitoring specific directories. If left empy, no directories will be monitored.", + "type": [ + "object", + "null" + ], + "properties": { + "collect_dir_size": { + "title": "Collect directory size", + "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.", + "type": "boolean", + "default": false + }, + "include": { + "title": "Include", + "description": "Include directories that match any of the specified include [patterns](https://golang.org/pkg/path/filepath/#Match).", + "type": [ + "array", + "null" + ], + "items": { + "title": "Directory", + "type": "string", + "pattern": "^$|^/" + }, + "uniqueItems": true + }, + "exclude": { + "title": "Exclude", + "description": "Exclude directories that match any of the specified exclude [patterns](https://golang.org/pkg/path/filepath/#Match).", + "type": [ + "array", + "null" + ], + "items": { + "title": "Directory", + "type": "string", + "pattern": "^$|^/" + }, + "uniqueItems": true + } + }, + "required": [ + "include" + ] + } + }, + "additionalProperties": false, + "patternProperties": { + "^name$": {} + } + }, + "uiSchema": { + "uiOptions": { + "fullPage": true + }, + "ui:flavour": "tabs", + "ui:options": { + "tabs": [ + { + "title": "Base", + "fields": [ + "update_every", + "discovery_every" + ] + }, + { + "title": "Files", + "fields": [ + "files" + ] + }, + { + "title": "Directories", + "fields": [ + "dirs" + ] + } + ] + }, + "files": { + "ui:help": "The logic for inclusion and exclusion is as follows: `(include1 OR include2) AND !(exclude1 OR exclude2)`.", + "ui:collapsible": true, + "include": { + "ui:listFlavour": "list" + }, + "exclude": { + "ui:listFlavour": "list" + } + }, + "dirs": { + "ui:help": "The logic for inclusion and exclusion is as follows: `(include1 OR include2) AND !(exclude1 OR exclude2)`.", + "ui:collapsible": true, + "include": { + "ui:listFlavour": "list" + }, + "exclude": { + "ui:listFlavour": "list" + } + } + } +} |