Add slab to mem plugin (#3518)

This commit is contained in:
Daniel Nelson
2017-11-29 10:49:45 -08:00
committed by GitHub
parent 4e9b19f7a6
commit d727a6f85c
3 changed files with 31 additions and 38 deletions

View File

@@ -32,6 +32,7 @@ func (s *MemStats) Gather(acc telegraf.Accumulator) error {
"buffered": vm.Buffers,
"active": vm.Active,
"inactive": vm.Inactive,
"slab": vm.Slab,
"used_percent": 100 * float64(vm.Used) / float64(vm.Total),
"available_percent": 100 * float64(vm.Available) / float64(vm.Total),
}