Update mem values to gauge (#4034)
This commit is contained in:
parent
3b3d16273d
commit
1e1d9e8acb
|
@ -37,7 +37,7 @@ func (s *MemStats) Gather(acc telegraf.Accumulator) error {
|
||||||
"used_percent": 100 * float64(vm.Used) / float64(vm.Total),
|
"used_percent": 100 * float64(vm.Used) / float64(vm.Total),
|
||||||
"available_percent": 100 * float64(vm.Available) / float64(vm.Total),
|
"available_percent": 100 * float64(vm.Available) / float64(vm.Total),
|
||||||
}
|
}
|
||||||
acc.AddCounter("mem", fields, nil)
|
acc.AddGauge("mem", fields, nil)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue