Skip to content

Commit

Permalink
Add CPU count in metrics (#253)
Browse files Browse the repository at this point in the history
so that the resource metrics collector can use it to calculate
"percentage" load (load * 100 / cpu-count)
  • Loading branch information
anjalshireesh authored Dec 5, 2023
1 parent 199918d commit 9ef2480
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ type CPUMetrics struct {

TimesStat *cpu.TimesStat `json:"timesStat"`
LoadStat *load.AvgStat `json:"loadStat"`
CPUCount int `json:"cpuCount"`
}

// Merge other into 'm'.
Expand Down

0 comments on commit 9ef2480

Please sign in to comment.