Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
Signed-off-by: disksing <i@disksing.com>
  • Loading branch information
disksing committed Jan 26, 2024
1 parent a3c5ded commit f794566
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/resource_group/controller/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ func getSysProcessCPUTime() float64 {
resourceGroupCPUTimeCounter.WithLabelValues("sys").Add(float64(cpuTime.Sys))
resourceGroupCPUTimeCounter.WithLabelValues("total").Add(float64(cpuTime.Sys + cpuTime.User))

log.Info("getCPUTime", zap.Float64("user", float64(cpuTime.User)), zap.Float64("sys", float64(cpuTime.Sys)), zap.Float64("total", float64(cpuTime.Sys+cpuTime.User)))

return float64(cpuTime.User + cpuTime.Sys)
}

Expand Down

0 comments on commit f794566

Please sign in to comment.