[manager,collector]新增mysql指标,采集器调度第0优先级失败则取消后续的优化
This commit is contained in:
@@ -62,7 +62,7 @@ public class MemoryDataStorage implements DisposableBean {
|
||||
private void saveData(CollectRep.MetricsData metricsData) {
|
||||
String hashKey = metricsData.getId() + metricsData.getMetrics();
|
||||
if (metricsData.getValuesList().isEmpty()) {
|
||||
log.info("[warehouse] redis flush metrics data {} is null, ignore.", hashKey);
|
||||
log.debug("[warehouse memory] redis flush metrics data {} is null, ignore.", hashKey);
|
||||
return;
|
||||
}
|
||||
metricsDataMap.put(hashKey, metricsData);
|
||||
|
||||
@@ -70,7 +70,7 @@ public class RedisDataStorage implements DisposableBean {
|
||||
String key = String.valueOf(metricsData.getId());
|
||||
String hashKey = metricsData.getMetrics();
|
||||
if (metricsData.getValuesList().isEmpty()) {
|
||||
log.info("[warehouse] redis flush metrics data {}:{} is null, ignore.", key, hashKey);
|
||||
log.info("[warehouse redis] redis flush metrics data {} - {} is null, ignore.", key, hashKey);
|
||||
return;
|
||||
}
|
||||
RedisAsyncCommands<String, CollectRep.MetricsData> commands = connection.async();
|
||||
|
||||
Reference in New Issue
Block a user