# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # 此监控类型所属类别:service-应用服务监控 db-数据库监控 custom-自定义监控 os-操作系统监控 category: service # 监控应用类型名称(与文件名保持一致) eg: linux windows tomcat mysql aws... app: ftp name: zh-CN: FTP服务器 en-US: FTP Server params: # field-字段名称标识符 - field: host # name-参数字段显示名称 name: zh-CN: 主机Host en-US: Host # type-字段类型,样式(大部分映射input标签type属性) type: host # 是否是必输项 true-必填 false-可选 required: true - field: port name: zh-CN: 端口 en-US: Port type: number # 当type为number时,用range表示范围 range: '[0,65535]' required: true # 端口默认值 defaultValue: 21 # 参数输入框提示信息 placeholder: '请输入端口' - field: username name: zh-CN: 用户名 en-US: Username type: text # 当type为text时,用limit表示字符串限制大小 limit: 20 required: false hide: true - field: password name: zh-CN: 用户密码 en-US: Password type: password required: false hide: true - field: direction name: zh-CN: 目录 en-US: Direction type: text limit: 100 required: true - field: timeout name: zh-CN: 超时时间 en-US: Timeout type: number range: '[0,100000]' required: true defaultValue: 1000 metrics: # 第一个监控指标组 cpu # 注意:内置监控指标有 (responseTime - 响应时间) - name: basic # 指标组调度优先级(0-127)越小优先级越高,优先级低的指标组会等优先级高的指标组采集完成后才会被调度,相同优先级的指标组会并行调度采集 # 优先级为0的指标组为可用性指标组,即它会被首先调度,采集成功才会继续调度其它指标组,采集失败则中断调度 priority: 0 # 指标组中的具体监控指标 fields: # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 instance是否为实例主键 unit:指标单位 - field: isActive type: 1 - field: responseTime type: 0 unit: ms # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: ftp # 当protocol为ftp协议时具体的采集配置 ftp: host: ^_^host^_^ port: ^_^port^_^ username: ^_^username^_^ password: ^_^password^_^ direction: ^_^direction^_^ timeout: ^_^timeout^_^