procStat.CPUTime() is already a sum (#1979)

This commit is contained in:
wasaga 2021-03-15 11:43:56 -04:00 committed by GitHub
parent db0b9f9c74
commit 816fb60b7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ func NewProcessCollector(name string) *ProcessCollector {
Name: pc.cpuTotal.Name(),
Description: pc.cpuTotal.Description(),
Measure: pc.cpuTotal,
Aggregation: view.Sum(),
Aggregation: view.LastValue(),
},
{
Name: pc.openFDs.Name(),