[manager,collector]新增mysql指标,采集器调度第0优先级失败则取消后续的优化

This commit is contained in:
tomsun28
2022-03-03 11:09:14 +08:00
parent c606b5596d
commit f3557b2859
5 changed files with 85 additions and 5 deletions

View File

@@ -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);

View File

@@ -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();