| 1 | { |
| 2 | "jsonSchema": { |
| 3 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 4 | "title": "ProxySQL 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": 1 |
| 13 | }, |
| 14 | "autodetection_retry": { |
| 15 | "title": "Detection retry", |
| 16 | "description": "Recheck interval in seconds. Zero means no recheck will be scheduled.", |
| 17 | "type": "integer", |
| 18 | "minimum": 0, |
| 19 | "default": 60 |
| 20 | }, |
| 21 | "dsn": { |
| 22 | "title": "DSN", |
| 23 | "description": "ProxySQL server [Data Source Name (DSN)](https://github.com/go-sql-driver/mysql#dsn-data-source-name) specifying the connection details.", |
| 24 | "type": "string", |
| 25 | "default": "stats:stats@tcp(127.0.0.1:6032)/" |
| 26 | }, |
| 27 | "timeout": { |
| 28 | "title": "Timeout", |
| 29 | "description": "Timeout for queries, in seconds.", |
| 30 | "type": "number", |
| 31 | "minimum": 0.5, |
| 32 | "default": 1 |
| 33 | }, |
| 34 | "functions": { |
| 35 | "title": "Functions", |
| 36 | "description": "Configuration for Netdata functions exposed by this collector.", |
| 37 | "type": "object", |
| 38 | "properties": { |
| 39 | "top_queries": { |
| 40 | "title": "Top Queries", |
| 41 | "description": "Configuration for the top-queries function.", |
| 42 | "type": "object", |
| 43 | "properties": { |
| 44 | "disabled": { |
| 45 | "title": "Disabled", |
| 46 | "description": "Disable the top-queries function.", |
| 47 | "type": "boolean", |
| 48 | "default": false |
| 49 | }, |
| 50 | "timeout": { |
| 51 | "title": "Timeout", |
| 52 | "description": "Query timeout in seconds. Set to 0 to use the collector's timeout.", |
| 53 | "type": "number", |
| 54 | "minimum": 0 |
| 55 | }, |
| 56 | "limit": { |
| 57 | "title": "Limit", |
| 58 | "description": "Maximum number of queries to return. Set to 0 to use the default (500).", |
| 59 | "type": "integer", |
| 60 | "minimum": 0, |
| 61 | "maximum": 5000, |
| 62 | "default": 500 |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | }, |
| 68 | "vnode": { |
| 69 | "title": "Vnode", |
| 70 | "description": "Associates this data collection job with a [Virtual Node](https://learn.netdata.cloud/docs/netdata-agent/configuration/organize-systems-metrics-and-alerts#virtual-nodes).", |
| 71 | "type": "string" |
| 72 | } |
| 73 | }, |
| 74 | "required": [ |
| 75 | "dsn" |
| 76 | ] |
| 77 | }, |
| 78 | "uiSchema": { |
| 79 | "uiOptions": { |
| 80 | "fullPage": true |
| 81 | }, |
| 82 | "vnode": { |
| 83 | "ui:placeholder": "To use this option, first create a Virtual Node and then reference its name here." |
| 84 | }, |
| 85 | "autodetection_retry": { |
| 86 | "ui:help": "This option determines how frequently (in seconds) Netdata will retry data collection jobs that failed initially, with the value of 60 meaning it retries to start data collection jobs every 60 seconds, while setting it to 0 disables this retry mechanism entirely." |
| 87 | }, |
| 88 | "dsn": { |
| 89 | "ui:placeholder": "username:password@protocol(address)/dbname" |
| 90 | }, |
| 91 | "timeout": { |
| 92 | "ui:help": "Accepts decimals for precise control (e.g., type 1.5 for 1.5 seconds)." |
| 93 | }, |
| 94 | "ui:flavour": "tabs", |
| 95 | "ui:options": { |
| 96 | "tabs": [ |
| 97 | { |
| 98 | "title": "Base", |
| 99 | "fields": [ |
| 100 | "update_every", |
| 101 | "autodetection_retry", |
| 102 | "dsn", |
| 103 | "timeout", |
| 104 | "vnode" |
| 105 | ] |
| 106 | }, |
| 107 | { |
| 108 | "title": "Functions", |
| 109 | "fields": [ |
| 110 | "functions" |
| 111 | ] |
| 112 | } |
| 113 | ] |
| 114 | } |
| 115 | } |
| 116 | } |