Memory plugin: re-add cached and buffered to memory plugin

This commit is contained in:
Cameron Sparr 2015-09-28 17:05:42 -07:00
parent f6f45881da
commit f5d1aaf7d9
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ func (s *MemStats) Gather(acc plugins.Accumulator) error {
acc.Add("available", vm.Available, vmtags)
acc.Add("used", vm.Used, vmtags)
acc.Add("free", vm.Free, vmtags)
acc.Add("cached", vm.Cached, vmtags)
acc.Add("buffered", vm.Buffers, vmtags)
acc.Add("used_percent", 100*float64(vm.Used)/float64(vm.Total), vmtags)
acc.Add("available_percent",
100*float64(vm.Available)/float64(vm.Total),