@@ -52,8 +52,8 @@ public class JdbcCommonCollect extends AbstractCollect {
}
JdbcProtocol jdbcProtocol = metrics.getJdbc();
String databaseUrl = constructDatabaseUrl(jdbcProtocol);
- // 查询超时时间默认3000毫秒
- int timeout = 3000;
+ // 查询超时时间默认6000毫秒
+ int timeout = 6000;
try {
// 获取查询语句超时时间
if (jdbcProtocol.getTimeout() != null) {
@@ -37,8 +37,8 @@ public class IcmpCollectImpl extends AbstractCollect {
return;
IcmpProtocol icmp = metrics.getIcmp();
- // 超时时间默认300毫秒
- int timeout = 300;
+ // 超时时间默认6000毫秒
timeout = Integer.parseInt(icmp.getTimeout());
} catch (Exception e) {
@@ -38,8 +38,8 @@ public class TelnetCollectImpl extends AbstractCollect {
TelnetProtocol telnet = metrics.getTelnet();
timeout = Integer.parseInt(telnet.getTimeout());
@@ -29,7 +29,7 @@ public class SshProtocol {
/**
* 超时时间
*/
- private String timeout = "6000";
+ private String timeout;
* 用户名
@@ -15,7 +15,7 @@ param:
name: 查询超时时间
type: number
required: false
- defaultValue: 3000
+ defaultValue: 6000
placeholder: '查询超时时间'
- field: database
name: 数据库名称
@@ -17,4 +17,4 @@ param:
range: '[0,100000]'
required: true
placeholder: '请输入超时时间,单位毫秒'
@@ -24,4 +24,4 @@ param:
@@ -86,7 +86,7 @@
>{{ paramDefine.name }}
</nz-form-label>
<nz-form-control *ngIf="paramDefine.type === 'password'" nzSpan="8" [nzErrorTip]="'validation.required' | i18n">
- <nz-input-group [nzSuffix]="suffixTemplate">
+ <nz-input-group [nzSuffix]="suffixTemplate" style="width: 100%">
<input
[type]="passwordVisible ? 'text' : 'password'"
nz-input
@@ -95,7 +95,7 @@