Skip to content
Snippets Groups Projects
Commit 1e1d9e8a authored by James Maidment's avatar James Maidment Committed by Daniel Nelson
Browse files

Update mem values to gauge (#4034)

parent 3b3d1627
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ func (s *MemStats) Gather(acc telegraf.Accumulator) error { ...@@ -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
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment