summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/docker/config_schema.json
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-03-05 16:40:19 +0200
committerGitHub <noreply@github.com>2024-03-05 16:40:19 +0200
commit4c1adba5073294537f7233634ad15684018a42cf (patch)
treef2fc7526e8cc585187e4006c4126f42c0f54b3a1 /src/go/collectors/go.d.plugin/modules/docker/config_schema.json
parentd8827d1e5ff927623d16b2e67ad9123e5f5b24ea (diff)
go.d.plugin dyncfgv2 (#17064)
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/docker/config_schema.json')
-rw-r--r--src/go/collectors/go.d.plugin/modules/docker/config_schema.json60
1 files changed, 41 insertions, 19 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/docker/config_schema.json b/src/go/collectors/go.d.plugin/modules/docker/config_schema.json
index b060da819f..9d4c50f631 100644
--- a/src/go/collectors/go.d.plugin/modules/docker/config_schema.json
+++ b/src/go/collectors/go.d.plugin/modules/docker/config_schema.json
@@ -1,26 +1,48 @@
{
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "go.d/docker job configuration schema.",
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
+ "jsonSchema": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "title": "Docker collector configuration.",
+ "type": "object",
+ "properties": {
+ "update_every": {
+ "title": "Update every",
+ "description": "Data collection interval, measured in seconds.",
+ "type": "integer",
+ "minimum": 1,
+ "default": 1
+ },
+ "address": {
+ "title": "Address",
+ "description": "Docker daemon's Unix or TCP (listening address) socket.",
+ "type": "string",
+ "default": "unix:///var/run/docker.sock"
+ },
+ "timeout": {
+ "title": "Timeout",
+ "description": "Timeout for establishing a connection and communication (reading and writing) in seconds.",
+ "type": "number",
+ "default": 2
+ },
+ "collect_container_size": {
+ "title": "Collect container size",
+ "description": "Collect container writable layer size.",
+ "type": "boolean",
+ "default": false
+ }
+ },
+ "required": [
+ "address"
+ ]
+ },
+ "uiSchema": {
+ "uiOptions": {
+ "fullPage": true
},
"address": {
- "type": "string"
+ "ui:help": "Use `unix://{path_to_socket}` for Unix socket or `tcp://{ip}:{port}` for TCP socket."
},
"timeout": {
- "type": [
- "string",
- "integer"
- ]
- },
- "collect_container_size": {
- "type": "boolean"
+ "ui:help": "Accepts decimals for precise control (e.g., type 1.5 for 1.5 seconds)."
}
- },
- "required": [
- "name",
- "address"
- ]
+ }
}