Authored by jack

修改服务延迟阈值

... ... @@ -374,7 +374,7 @@ public class NewJavaApiInfoServiceImpl implements NewJavaApiInfoService {
//获取报警阀值
Integer costThreshold = snsMobileConfig.getJavaServiceCostThreshold();
if(costThreshold == null){
costThreshold = 150;
costThreshold = 300;
}
String nowString = DateTime.now().minusSeconds(10).toString("yyyy-MM-dd HH:mm:ss");
log.info("sendAlarmMsg nowString is :" + nowString + ",costThreshold is " + costThreshold);
... ... @@ -388,6 +388,11 @@ public class NewJavaApiInfoServiceImpl implements NewJavaApiInfoService {
if(!distinctIpList.contains(hostAddress)){
continue;
}
//若没有zabbix中监控信息,则为灰度或其他服务
if(!vmInfoMap.containsKey(hostAddress))
{
continue;
}
String serviceName = (String)map.get("serviceName");
Integer mean = ((Double)map.get("mean")).intValue();
String ratioStr = "" + (int)(((Double)map.get("ratio")) * 100) + "%";
... ...
... ... @@ -13,6 +13,6 @@ redis_exception_mobile=13515100825,18751986615,18652008443
java_service_alarm_mobile=18751986615,18652008443
java_service_alarm_flag=true
java_service_alarm_cost_threshold=150
java_service_alarm_cost_threshold=300
... ...