master
json 117 lines 2.94 KB
Raw
1 {
2 "jsonSchema": {
3 "$schema": "http://json-schema.org/draft-07/schema#",
4 "title": "Sensors 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": 10
13 },
14 "relabel": {
15 "title": "Update Labels",
16 "description": " This configuration can be used to update existing sensor labels or add labels to sensors that don't have them.",
17 "type": [
18 "array",
19 "null"
20 ],
21 "items": {
22 "title": "",
23 "description": "",
24 "type": [
25 "object",
26 "null"
27 ],
28 "properties": {
29 "chip": {
30 "title": "Chip",
31 "description": "[Pattern](https://github.com/netdata/netdata/tree/master/src/go/pkg/matcher#simple-patterns-matcher) to match the `chip_id` label.",
32 "type": "string"
33 },
34 "sensors": {
35 "title": "Relabel",
36 "description": "A list of sensors to be relabeled for the specified chip. The sensor name will be matched against the `sensor` label value.",
37 "type": [
38 "array",
39 "null"
40 ],
41 "items": {
42 "title": "Sensor",
43 "description": "",
44 "type": [
45 "object",
46 "null"
47 ],
48 "properties": {
49 "name": {
50 "title": "Name",
51 "description": "",
52 "type": "string"
53 },
54 "label": {
55 "title": "New label",
56 "description": "",
57 "type": "string"
58 }
59 },
60 "required": [
61 "name",
62 "label"
63 ]
64 },
65 "minItems": 1,
66 "uniqueItems": true
67 }
68 },
69 "required": [
70 "chip",
71 "sensors"
72 ]
73 },
74 "uniqueItems": true
75 }
76 },
77 "required": [
78 ]
79 },
80 "uiSchema": {
81 "uiOptions": {
82 "fullPage": true
83 },
84 "relabel": {
85 "items": {
86 "chip": {
87 "ui:placeholder": "it8688-*"
88 },
89 "sensors": {
90 "ui:listFlavour": "list",
91 "items": {
92 "name": {
93 "ui:placeholder": "For example, temp1, in1, or voltage1."
94 }
95 }
96 }
97 }
98 },
99 "ui:flavour": "tabs",
100 "ui:options": {
101 "tabs": [
102 {
103 "title": "Base",
104 "fields": [
105 "update_every"
106 ]
107 },
108 {
109 "title": "Relabel Sensors",
110 "fields": [
111 "relabel"
112 ]
113 }
114 ]
115 }
116 }
117 }