Adding more memory variables to input mem plugin: writeback, dirty, writeback_tmp, shared, slab ,pagetables and swapcached

This commit is contained in:
Victor Garcia 2017-02-22 14:31:45 -08:00
parent 81408f9da7
commit cbed68d8f5
2 changed files with 8 additions and 0 deletions

View File

@ -65,6 +65,7 @@ be deprecated eventually.
- [#2390](https://github.com/influxdata/telegraf/issues/2390): Empty tag value causes error on InfluxDB output.
- [#2380](https://github.com/influxdata/telegraf/issues/2380): buffer_size field value is negative number from "internal" plugin.
- [#2414](https://github.com/influxdata/telegraf/issues/2414): Missing error handling in the MySQL plugin leads to segmentation violation.
- [#2463](https://github.com/influxdata/telegraf/issues/2463): Adding more memory variables to input mem plugin
## v1.2.1 [2017-02-01]

View File

@ -30,6 +30,13 @@ func (s *MemStats) Gather(acc telegraf.Accumulator) error {
"free": vm.Free,
"cached": vm.Cached,
"buffered": vm.Buffers,
"writeback": vm.Writeback,
"dirty": vm.Dirty,
"writeback_tmp": vm.WritebackTmp,
"shared": vm.Shared,
"slab": vm.Slab,
"pagetables": vm.PageTables,
"swapcached": vm.SwapCached,
"active": vm.Active,
"inactive": vm.Inactive,
"used_percent": 100 * float64(vm.Used) / float64(vm.Total),