diff --git a/producer/os_darwin.go b/producer/os_darwin.go index bde909d..54efb34 100644 --- a/producer/os_darwin.go +++ b/producer/os_darwin.go @@ -99,6 +99,7 @@ func (p *OSMetricInfo) MarshalCPU() (name string, tags []map[string]string, fiel }, []map[string]interface{}{ { + "total": p.CPU.Total, "idle": p.CPU.Idle, "nice": p.CPU.Nice, "system": p.CPU.System, diff --git a/producer/os_linux.go b/producer/os_linux.go index 1e482d2..db22ac8 100644 --- a/producer/os_linux.go +++ b/producer/os_linux.go @@ -113,6 +113,7 @@ func (p *OSMetricInfo) MarshalCPU() (name string, tags []map[string]string, fiel }, []map[string]interface{}{ { + "total": p.CPU.Total, "user": p.CPU.User, "nice": p.CPU.Nice, "system": p.CPU.System,