diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2024-01-11 18:15:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 18:15:18 +0200 |
commit | 44fa2abdede25d73638816e3cbe9615424b49ebe (patch) | |
tree | a585eb034afa8f6d5c0b0965c8b1fbf67e03d370 /collectors | |
parent | 1b3eb5b42fc8b5d04056c49f8b6d94668d913492 (diff) |
add schemas to /usr/lib/netdata/conf.d/schema.d (#16757)
Diffstat (limited to 'collectors')
-rw-r--r-- | collectors/systemd-journal.plugin/schema.d/systemd-journal:monitored-directories.json | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/collectors/systemd-journal.plugin/schema.d/systemd-journal:monitored-directories.json b/collectors/systemd-journal.plugin/schema.d/systemd-journal:monitored-directories.json new file mode 100644 index 0000000000..8ae75e05d6 --- /dev/null +++ b/collectors/systemd-journal.plugin/schema.d/systemd-journal:monitored-directories.json @@ -0,0 +1,34 @@ +{ + "jsonSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "journalDirectories": { + "type": "array", + "items": { + "type": "string", + "pattern": "^/.*$" + }, + "maxItems": 100, + "uniqueItems": true + } + }, + "required": [ + "journalDirectories" + ] + }, + "uiSchema": { + "journalDirectories": { + "ui:options": { + "addable": true, + "orderable": false, + "removable": true + }, + "items": { + "ui:placeholder": "Enter absolute directory path", + "ui:widget": "text", + "ui:emptyValue": "" + } + } + } +} |