master
json 48 lines 1.68 KB
Raw
1 {
2 "jsonSchema": {
3 "$schema": "http://json-schema.org/draft-07/schema#",
4 "title": "Varnish 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 "timeout": {
15 "title": "Timeout",
16 "description": "Timeout for executing the binary, specified in seconds.",
17 "type": "number",
18 "minimum": 0.5,
19 "default": 2
20 },
21 "instance_name": {
22 "title": "Instance name",
23 "description": "Specifies the name of the Varnish instance to collect metrics from.",
24 "type": "string"
25 },
26 "docker_container": {
27 "title": "Docker container name",
28 "description": "Specifies the name of the Docker container where the Varnish instance is running. If set, the `varnishstat` command will be executed within this container.",
29 "type": "string"
30 }
31 },
32 "required": []
33 },
34 "uiSchema": {
35 "uiOptions": {
36 "fullPage": true
37 },
38 "binary_path": {
39 "ui:help": "If an absolute path is provided, the collector will use it directly; otherwise, it will search for the binary in directories specified in the PATH environment variable."
40 },
41 "timeout": {
42 "ui:help": "Accepts decimals for precise control (e.g., type 1.5 for 1.5 seconds)."
43 },
44 "instance_name": {
45 "ui:help": "This corresponds to the `-n` argument used with the [varnishstat](https://varnish-cache.org/docs/trunk/reference/varnishstat.html) command. If not provided, the hostname will be used."
46 }
47 }
48 }