@cryptotaxi247 / netdata-1 / commits / 44fa2abde

add schemas to /usr/lib/netdata/conf.d/schema.d (#16757)

Costa Tsaousis committed Jan 11, 2024 at 18:15 UTC 44fa2abdede25d73638816e3cbe9615424b49ebe
2 files changed +39
CMakeLists.txt
+5
@@ -2137,6 +2137,7 @@ install(DIRECTORY DESTINATION etc/netdata/python.d)
2137 install(DIRECTORY DESTINATION etc/netdata/ssl)
2138 install(DIRECTORY DESTINATION etc/netdata/statsd.d)
2139 install(DIRECTORY DESTINATION usr/lib/netdata/conf.d)
2140 +install(DIRECTORY DESTINATION usr/lib/netdata/conf.d/schema.d)
2141 install(DIRECTORY DESTINATION usr/libexec/netdata/plugins.d)
2142 install(DIRECTORY DESTINATION ${WEB_DEST})
2143
@@ -2424,6 +2425,10 @@ install(FILES
2425 collectors/charts.d.plugin/sensors/sensors.conf
2426 DESTINATION usr/lib/netdata/conf.d/charts.d)
2427
2428 +install(FILES
2429 + collectors/systemd-journal.plugin/schema.d/systemd-journal:monitored-directories.json
2430 + DESTINATION usr/lib/netdata/conf.d/schema.d)
2431 +
2432 #
2433 # ebpf files
2434 #
collectors/systemd-journal.plugin/schema.d/systemd-journal:monitored-directories.json new
+34
@@ -0,0 +1,34 @@
1 +{
2 + "jsonSchema": {
3 + "$schema": "http://json-schema.org/draft-07/schema#",
4 + "type": "object",
5 + "properties": {
6 + "journalDirectories": {
7 + "type": "array",
8 + "items": {
9 + "type": "string",
10 + "pattern": "^/.*$"
11 + },
12 + "maxItems": 100,
13 + "uniqueItems": true
14 + }
15 + },
16 + "required": [
17 + "journalDirectories"
18 + ]
19 + },
20 + "uiSchema": {
21 + "journalDirectories": {
22 + "ui:options": {
23 + "addable": true,
24 + "orderable": false,
25 + "removable": true
26 + },
27 + "items": {
28 + "ui:placeholder": "Enter absolute directory path",
29 + "ui:widget": "text",
30 + "ui:emptyValue": ""
31 + }
32 + }
33 + }
34 +}