From a4a2ef3502ca3edcfdc93456d562fbfccdec8359 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=BA=AA=E6=9C=AB=E7=9A=84=E6=9E=B6=E6=9E=84?= =?UTF-8?q?=E5=B8=88?= <85340613+Architect-Java@users.noreply.github.com> Date: Tue, 28 Mar 2023 08:42:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E8=AF=91=20app-docker.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 翻译app-docker.yml文件中标定注释 --- .../src/main/resources/define/app-docker.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/manager/src/main/resources/define/app-docker.yml b/manager/src/main/resources/define/app-docker.yml index d6330dfc12d..039c4fd9658 100644 --- a/manager/src/main/resources/define/app-docker.yml +++ b/manager/src/main/resources/define/app-docker.yml @@ -19,14 +19,18 @@ name: zh-CN: Docker en-US: Docker params: + # field - field name identifier # field-字段名称标识符 - field: host + # name - parameter field display name # name-参数字段显示名称 name: zh-CN: 主机Host en-US: Host + # type-field type, style (most map input tag type attribute) # type-字段类型,样式(大部分映射input标签type属性) type: host + # Is it mandatory? true-required false-optional # 是否是必输项 true-必填 false-可选 required: true - field: port @@ -34,6 +38,7 @@ params: zh-CN: 端口 en-US: Port type: number + # When type is number, use range to represent the range # 当type为number时,用range表示范围 range: '[0,65535]' required: true @@ -42,16 +47,21 @@ params: name: zh-CN: 启动SSL en-US: SSL + # shen the type is boolean, the front end uses switch to display the switch # 当type为boolean时,前端用switch展示开关 type: boolean required: false metrics: - name: system + # The smaller the index group scheduling priority (0-127), the higher the priority. The index group with low priority will not be scheduled until the collection of index groups with high priority is completed. The index groups with the same priority will be scheduled and collected in parallel. + # priority 0's metrics group is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue # 指标组调度优先级(0-127)越小优先级越高,优先级低的指标组会等优先级高的指标组采集完成后才会被调度,相同优先级的指标组会并行调度采集 # 优先级为0的指标组为可用性指标组,即它会被首先调度,采集成功才会继续调度其它指标组,采集失败则中断调度 priority: 0 + # specific monitoring indicators in the indicator group # 指标组中的具体监控指标 fields: + # Indicator information includes field name type field type: 0-number, 1-string whether instance is the primary key of the instance unit: indicator unit # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 instance是否为实例主键 unit:指标单位 - field: name type: 1 @@ -109,27 +119,38 @@ metrics: units: - mem_total=B->MB protocol: http + # When the protocol is the http protocol, the specific collection configuration # 当protocol为http协议时具体的采集配置 http: + # Host host: ipv4 ipv6 domain name # 主机host: ipv4 ipv6 域名 host: ^_^host^_^ + # port # 端口 port: ^_^port^_^ + # url request interface path # url请求接口路径 url: /info + # request method GET POST PUT DELETE PATCH # 请求方式 GET POST PUT DELETE PATCH method: GET + # Whether to enable ssl/tls, that is, http or https, the default is false # 是否启用ssl/tls,即是http还是https,默认false ssl: ^_^ssl^_^ + # response data analysis method: default-system rules, jsonPath-jsonPath script, website-api usability indicator monitoring # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-api可用性指标监控 parseType: default - name: containers + # The smaller the priority value (0-127), the higher the priority of the metrics group. Lower-priority metrics groups will be scheduled after higher-priority metrics groups have been collected. Metrics groups with the same priority will be scheduled to collect data in parallel. + # priority 0's metrics group is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue # 指标组调度优先级(0-127)越小优先级越高,优先级低的指标组会等优先级高的指标组采集完成后才会被调度,相同优先级的指标组会并行调度采集 # 优先级为0的指标组为可用性指标组,即它会被首先调度,采集成功才会继续调度其它指标组,采集失败则中断调度 priority: 1 + # specific monitoring indicators in the indicator group # 指标组中的具体监控指标 fields: + # Indicator information includes field name type field type: 0-number, 1-string whether instance is the primary key of the instance unit: indicator unit # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 instance是否为实例主键 unit:指标单位 - field: id type: 1 @@ -157,20 +178,28 @@ metrics: - command = Command - state = State - status = Status + # Protocols used for monitoring and collection eg: sql, ssh, http, telnet, wmi, snmp, sdk # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http + # When the protocol is the http protocol, the specific collection configuration # 当protocol为http协议时具体的采集配置 http: + # Host host: ipv4 ipv6 domain name # 主机host: ipv4 ipv6 域名 host: ^_^host^_^ + # port # 端口 port: ^_^port^_^ + # url request interface path # url请求接口路径 url: /containers/json + # # request method GET POST PUT DELETE PATCH # 请求方式 GET POST PUT DELETE PATCH method: GET + # Whether to enable ssl/tls, that is, http or https, the default is false # 是否启用ssl/tls,即是http还是https,默认false ssl: ^_^ssl^_^ + # Response data analysis method: default-system rules, jsonPath-jsonPath script, website-api usability indicator monitoring # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-api可用性指标监控 parseType: jsonPath parseScript: '$.*' @@ -218,18 +247,24 @@ metrics: - used_memory=B->MB protocol: http http: + # Host host: ipv4 ipv6 domain name # 主机host: ipv4 ipv6 域名 host: ^_^host^_^ + # port # 端口 port: ^_^port^_^ + # url request interface path # url请求接口路径 url: /containers/^o^id^o^/stats + # request method GET POST PUT DELETE PATCH # 请求方式 GET POST PUT DELETE PATCH method: GET + # Whether to enable ssl/tls, that is, http or https, the default is false # 是否启用ssl/tls,即是http还是https,默认false ssl: ^_^ssl^_^ params: stream: false + # Response data analysis method: default-system rules, jsonPath-jsonPath script, website-api usability indicator monitoring # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-api可用性指标监控 parseType: jsonPath parseScript: '$'