♻️ Cleanup
This commit is contained in:
parent
b9514ba98e
commit
92aa205475
@ -29,7 +29,7 @@ public class NodeMonitoringService
|
||||
Map.entry("ABSOLUTE_MEMORY", toLong(nodeMetrics.absoluteMemory())),
|
||||
Map.entry("ABSOLUTE_CPU", toLong(nodeMetrics.absoluteCpuUsage())),
|
||||
Map.entry("RELATIVE_DISK_SPACE", toLong(nodeMetrics.relativeDiskUsage())),
|
||||
Map.entry("TOTAL_DISK_SPACE", toLong(nodeMetrics.totalDiskSpace())));
|
||||
Map.entry("TOTAL_DISK_SPACE", nodeMetrics.totalDiskSpace()));
|
||||
indexingService.index(String.format("NODE-%s", node.getMetadata().getUid()), "NODE_METRICS", metrics);
|
||||
}
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ public class NodeDiskService
|
||||
}
|
||||
catch (URISyntaxException | IOException | InterruptedException e)
|
||||
{
|
||||
LOG.errorf("Failed to collect disk monitoring for node %s", nodeName);
|
||||
LOG.errorf("Failed to collect disk monitoring for node %s (Pod IP: %s)", nodeName, ip);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user