summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/dnsmasq_dhcp/config_schema.json
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/go/collectors/go.d.plugin/modules/dnsmasq_dhcp/config_schema.json50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/dnsmasq_dhcp/config_schema.json b/src/go/collectors/go.d.plugin/modules/dnsmasq_dhcp/config_schema.json
new file mode 100644
index 000000000..f51a3b2a2
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/dnsmasq_dhcp/config_schema.json
@@ -0,0 +1,50 @@
+{
+ "jsonSchema": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "title": "Dnsmasq DHCP collector configuration.",
+ "type": "object",
+ "properties": {
+ "update_every": {
+ "title": "Update every",
+ "description": "Data collection interval, measured in seconds.",
+ "type": "integer",
+ "minimum": 1,
+ "default": 1
+ },
+ "leases_path": {
+ "title": "Leases file",
+ "description": "File path to the Dnsmasq DHCP server's lease database.",
+ "type": "string",
+ "default": "/var/lib/misc/dnsmasq.leases",
+ "pattern": "^$|^/"
+ },
+ "conf_path": {
+ "title": "Config file",
+ "description": "File path for the Dnsmasq configuration. Used to find all configured DHCP ranges.",
+ "type": "string",
+ "default": "/etc/dnsmasq.conf",
+ "pattern": "^$|^/"
+ },
+ "conf_dir": {
+ "title": "Config directory",
+ "description": "Directory path for Dnsmasq configurations. The syntax follows the same format as the [--conf-dir](https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html) option.",
+ "type": "string",
+ "default": "/etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new",
+ "pattern": "^$|^/"
+ }
+ },
+ "required": [
+ "leases_path",
+ "conf_path"
+ ],
+ "additionalProperties": false,
+ "patternProperties": {
+ "^name$": {}
+ }
+ },
+ "uiSchema": {
+ "uiOptions": {
+ "fullPage": true
+ }
+ }
+}