From 9ef24809d3e70c7b83b25b33ffe97d728db11e84 Mon Sep 17 00:00:00 2001 From: Shireesh Anjal <355479+anjalshireesh@users.noreply.github.com> Date: Wed, 6 Dec 2023 01:50:20 +0530 Subject: [PATCH] Add CPU count in metrics (#253) so that the resource metrics collector can use it to calculate "percentage" load (load * 100 / cpu-count) --- metrics.go | 1 + 1 file changed, 1 insertion(+) diff --git a/metrics.go b/metrics.go index 74f6bde6..222f14cd 100644 --- a/metrics.go +++ b/metrics.go @@ -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'.