Skip to content

Commit ecebf99

Browse files
JimChenWYUjimchen
and
jimchen
authored
fix(process): 修复物理内存 (#10)
Co-authored-by: jimchen <[email protected]>
1 parent e2cd05b commit ecebf99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

receiver/hostmetricsreceiver/internal/scraper/processscraper/process_scraper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func (s *scraper) scrapeAndAppendMemoryUsageMetrics(now pcommon.Timestamp, md *p
321321
pid, pname, cwd := md.pid, md.executable.name, md.executable.cwd
322322
s.mb.RecordProcessMemoryUsageDataPoint(now, int64(mem.RSS))
323323
s.mb.RecordProcessMemoryVirtualDataPoint(now, int64(mem.VMS))
324-
s.mb.RecordProcessMemoryPhysicalDataPoint(now, int64(mem.VMS), int64(pid), pname, cwd)
324+
s.mb.RecordProcessMemoryPhysicalDataPoint(now, int64(mem.RSS), int64(pid), pname, cwd)
325325
return nil
326326
}
327327

0 commit comments

Comments
 (0)