[monitor] 设计应用监控的采集定义结构yml,参数定义结构yml
This commit is contained in:
23
manager/src/main/resources/define/param/example.yml
Normal file
23
manager/src/main/resources/define/param/example.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
# 监控应用类型名称(与文件名保持一致) eg: linux windows tomcat mysql aws...
|
||||
app: cloud
|
||||
# 强制固定必须参数 - host(ipv4,ipv6,域名)
|
||||
param:
|
||||
# field-字段名称标识符 type-字段类型,样式(大部分映射input标签type属性)
|
||||
- field: host
|
||||
type: host
|
||||
- field: port
|
||||
type: number
|
||||
# 当type为number时,用range表示范围
|
||||
range: 0-255
|
||||
- field: username
|
||||
type: text
|
||||
# 当type为text时,用limit表示字符串限制大小
|
||||
limit: 20
|
||||
- field: password
|
||||
type: password
|
||||
- field: param1
|
||||
type: radio
|
||||
# 当type为radio单选框,checkbox复选框时,option表示可选项值列表
|
||||
option:
|
||||
- param3
|
||||
- param4
|
||||
Reference in New Issue
Block a user