Browse Source

[fix][worker]:Fix the issue of missing disk usage reporting information in the worker (#15565)

Co-authored-by: Rick Cheng <rickchengx@gmail.com>
(cherry picked from commit 89da67ddebb0d07f9106f226ae810bb44faa71d4)
seckiller 1 year ago
parent
commit
58aba58079

+ 1 - 0
dolphinscheduler-worker/src/main/java/org/apache/dolphinscheduler/server/worker/task/WorkerHeartBeatTask.java

@@ -68,6 +68,7 @@ public class WorkerHeartBeatTask extends BaseHeartBeatTask<WorkerHeartBeat> {
                 .cpuUsage(systemMetrics.getTotalCpuUsedPercentage())
                 .jvmMemoryUsage(systemMetrics.getJvmMemoryUsedPercentage())
                 .memoryUsage(systemMetrics.getSystemMemoryUsedPercentage())
+                .diskUsage(systemMetrics.getDiskUsedPercentage())
                 .processId(processId)
                 .workerHostWeight(workerConfig.getHostWeight())
                 .threadPoolUsage(workerTaskExecutorThreadPool.getRunningTaskExecutorSize()