summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/smartctl/config_schema.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/smartctl/config_schema.json')
-rw-r--r--src/go/collectors/go.d.plugin/modules/smartctl/config_schema.json67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/smartctl/config_schema.json b/src/go/collectors/go.d.plugin/modules/smartctl/config_schema.json
new file mode 100644
index 0000000000..273899cd98
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/smartctl/config_schema.json
@@ -0,0 +1,67 @@
+{
+ "jsonSchema": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "title": "Smartctl collector configuration.",
+ "type": "object",
+ "properties": {
+ "update_every": {
+ "title": "Update every",
+ "description": "Interval for updating Netdata charts, measured in seconds. Collector might use cached data if less than **Devices poll interval**.",
+ "type": "integer",
+ "minimum": 1,
+ "default": 10
+ },
+ "timeout": {
+ "title": "Timeout",
+ "description": "Timeout for executing the `smartctl` binary, specified in seconds.",
+ "type": "number",
+ "minimum": 0.5,
+ "default": 5
+ },
+ "scan_every": {
+ "title": "Scan interval",
+ "description": "Interval for discovering new devices using `smartctl --scan`, measured in seconds.",
+ "type": "number",
+ "minimum": 1,
+ "default": 900
+ },
+ "poll_devices_every": {
+ "title": "Devices poll interval",
+ "description": "Interval for gathering data for every device, measured in seconds. Data is cached for this interval.",
+ "type": "number",
+ "minimum": 1,
+ "default": 300
+ },
+ "no_check_power_mode": {
+ "title": "No check power mode",
+ "description": "ATA only. Skip data collection when the device is in a low-power mode. Prevents unnecessary disk spin-up.",
+ "type": "string",
+ "enum": [
+ "standby",
+ "never",
+ "sleep",
+ "idle"
+ ],
+ "default": "standby"
+ }
+ },
+ "additionalProperties": false,
+ "patternProperties": {
+ "^name$": {}
+ }
+ },
+ "uiSchema": {
+ "uiOptions": {
+ "fullPage": true
+ },
+ "timeout": {
+ "ui:help": "Accepts decimals for precise control (e.g., type 1.5 for 1.5 seconds)."
+ },
+ "no_check_power_mode": {
+ "ui:widget": "radio",
+ "ui:options": {
+ "inline": true
+ }
+ }
+ }
+}