[collector,manager,doc]feature 支持Linux操作系统监控类型 (#20)
* [collector,manager]支持Linux操作系统监控类型 * [collector,manager]linux监控类型新增内存,磁盘,网络监控指标 * [web-app]前端放开操作系统 * [home]适配支持Linux操作系统监控帮助文档
This commit is contained in:
@@ -3,6 +3,7 @@ package com.usthe.common.entity.job;
|
||||
import com.usthe.common.entity.job.protocol.HttpProtocol;
|
||||
import com.usthe.common.entity.job.protocol.IcmpProtocol;
|
||||
import com.usthe.common.entity.job.protocol.JdbcProtocol;
|
||||
import com.usthe.common.entity.job.protocol.SshProtocol;
|
||||
import com.usthe.common.entity.job.protocol.TcpUdpProtocol;
|
||||
import com.usthe.common.entity.job.protocol.TelnetProtocol;
|
||||
import lombok.AllArgsConstructor;
|
||||
@@ -73,6 +74,10 @@ public class Metrics {
|
||||
* 使用公共的jdbc规范实现的数据库配置信息
|
||||
*/
|
||||
private JdbcProtocol jdbc;
|
||||
/**
|
||||
* 使用公共的ssh协议的监控配置信息
|
||||
*/
|
||||
private SshProtocol ssh;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.usthe.common.entity.job.protocol;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* ssh 协议参数配置
|
||||
* @author tom
|
||||
* @date 2022/3/11 15:20
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class SshProtocol {
|
||||
|
||||
/**
|
||||
* 对端主机ip或域名
|
||||
*/
|
||||
private String host;
|
||||
|
||||
/**
|
||||
* 对端主机端口
|
||||
*/
|
||||
private String port;
|
||||
|
||||
/**
|
||||
* 超时时间
|
||||
*/
|
||||
private String timeout = "3000";
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 密码(可选)
|
||||
*/
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 公钥(可选)
|
||||
*/
|
||||
private String publicKey;
|
||||
|
||||
/**
|
||||
* SSH执行脚本
|
||||
*/
|
||||
private String script;
|
||||
|
||||
/**
|
||||
* 响应数据解析方式:oneRow, multiRow
|
||||
*/
|
||||
private String parseType;
|
||||
}
|
||||
Reference in New Issue
Block a user