在conf.json文件中,添加如下四行参数,具体参数请参见表1。
表1参数说明参数
说明
cpu_first_pct_threshold
第一阈值(CPU),若Agent进程a的CPU使用率为20%左右,此处建议配置为35,单位为%。
memory_first_threshold
第一阈值(内存),若Agent进程使用的内存大小为100M左右,此处建议配置为314572800(300MB),单位为Byte。
cpu_second_pct_threshold
第二阈值(CPU),若Agent进程的CPU使用率为20%左右,此处建议配置为55,单位为%。
memory_second_threshold
第二阈值(内存),若Agent进程使用的内存大小为100M左右,此处建议配置为734003200(700MB),单位为Byte。
aAgent的CPU使用率和内存使用率查询方法:
Linux:
top -p telescope的PID
Windows:
在任务管理器中查看Agent进程详情。
{
"InstanceId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ProjectId": "b5b92ee0xxxxxxxxxxxxxxxxcab92396",
"AccessKey": "QZ0XGJXFxxxxxxxxT65R",
"SecretKey": "lEv2aXAGwxxxxxxxxxxxxxxxxxxxxF8t0Bf18Tn2",
"RegionId": "ap-southeast-1",
"ClientPort": 0,
"PortNum": 200,
"cpu_first_pct_threshold": 35,
"memory_first_threshold": 314572800,
"cpu_second_pct_threshold": 70,
"memory_second_threshold": 734003200
}