diff options
Diffstat (limited to '')
-rw-r--r-- | src/go/plugin/go.d/modules/dnsmasq_dhcp/config_schema.json | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/go/plugin/go.d/modules/dnsmasq_dhcp/config_schema.json b/src/go/plugin/go.d/modules/dnsmasq_dhcp/config_schema.json new file mode 100644 index 000000000..f51a3b2a2 --- /dev/null +++ b/src/go/plugin/go.d/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 + } + } +} |