Update mem values to gauge (#4034)

(cherry picked from commit 1e1d9e8acb)
This commit is contained in:
James Maidment 2018-04-17 18:43:10 -04:00 committed by Daniel Nelson
parent 9253f6fecb
commit 37330a1e5c
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ func (s *MemStats) Gather(acc telegraf.Accumulator) error {
"used_percent": 100 * float64(vm.Used) / float64(vm.Total),
"available_percent": 100 * float64(vm.Available) / float64(vm.Total),
}
acc.AddCounter("mem", fields, nil)
acc.AddGauge("mem", fields, nil)
return nil
}