[monitor] 设计参数定义参数值表结构及相应实体
This commit is contained in:
@@ -100,7 +100,7 @@ public class CommonDispatcher implements MetricsTaskDispatch, CollectDataDispatc
|
||||
if (metricsTime.getStartTime() < deadline) {
|
||||
// 指标组采集超时
|
||||
CollectRep.MetricsData metricsData = CollectRep.MetricsData.newBuilder()
|
||||
.setId(metricsTime.getTimerJob().getJob().getAppId())
|
||||
.setId(metricsTime.getTimerJob().getJob().getMonitorId())
|
||||
.setApp(metricsTime.getTimerJob().getJob().getApp())
|
||||
.setMetrics(metricsTime.getMetrics().getName())
|
||||
.setTime(System.currentTimeMillis())
|
||||
|
||||
@@ -76,7 +76,7 @@ public class MetricsCollect implements Runnable, Comparable<MetricsCollect> {
|
||||
return;
|
||||
} else {
|
||||
try {
|
||||
abstractCollect.collect(response, timerJob.getJob().getAppId(),
|
||||
abstractCollect.collect(response, timerJob.getJob().getMonitorId(),
|
||||
timerJob.getJob().getApp(), metrics);
|
||||
} catch (Exception e) {
|
||||
log.error("[Metrics Collect]: {}.", e.getMessage(), e);
|
||||
@@ -155,7 +155,7 @@ public class MetricsCollect implements Runnable, Comparable<MetricsCollect> {
|
||||
}
|
||||
|
||||
private void setNewThreadName(WheelTimerJob timerJob, Metrics metrics) {
|
||||
String currentName = timerJob.getJob().getAppId() + "-" + timerJob.getJob().getApp()
|
||||
String currentName = timerJob.getJob().getMonitorId() + "-" + timerJob.getJob().getApp()
|
||||
+ "-" + metrics.getName() + "-" + timerJob.getJob().getId();
|
||||
Thread.currentThread().setName(currentName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user