Rename heap_objects_bytes to heap_objects in internal plugin. (#2674)
* Rename heap_objects_bytes to heap_objects in internal plugin. This field does not contain bytes fixes #2671
This commit is contained in:
parent
2177270d80
commit
b92f6f5fb2
|
@ -102,6 +102,7 @@ be deprecated eventually.
|
||||||
- [#2410](https://github.com/influxdata/telegraf/issues/2410): Fix connection leak in postgresql.
|
- [#2410](https://github.com/influxdata/telegraf/issues/2410): Fix connection leak in postgresql.
|
||||||
- [#2628](https://github.com/influxdata/telegraf/issues/2628): Set default measurement name for snmp input.
|
- [#2628](https://github.com/influxdata/telegraf/issues/2628): Set default measurement name for snmp input.
|
||||||
- [#2649](https://github.com/influxdata/telegraf/pull/2649): Improve performance of diskio with many disks
|
- [#2649](https://github.com/influxdata/telegraf/pull/2649): Improve performance of diskio with many disks
|
||||||
|
- [#2671](https://github.com/influxdata/telegraf/issues/2671): The internal input plugin uses the wrong units for `heap_objects`
|
||||||
|
|
||||||
## v1.2.1 [2017-02-01]
|
## v1.2.1 [2017-02-01]
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ func (s *Self) Gather(acc telegraf.Accumulator) error {
|
||||||
"heap_idle_bytes": m.HeapIdle, // bytes in idle spans
|
"heap_idle_bytes": m.HeapIdle, // bytes in idle spans
|
||||||
"heap_in_use_bytes": m.HeapInuse, // bytes in non-idle span
|
"heap_in_use_bytes": m.HeapInuse, // bytes in non-idle span
|
||||||
"heap_released_bytes": m.HeapReleased, // bytes released to the OS
|
"heap_released_bytes": m.HeapReleased, // bytes released to the OS
|
||||||
"heap_objects_bytes": m.HeapObjects, // total number of allocated objects
|
"heap_objects": m.HeapObjects, // total number of allocated objects
|
||||||
"num_gc": m.NumGC,
|
"num_gc": m.NumGC,
|
||||||
}
|
}
|
||||||
acc.AddFields("internal_memstats", fields, map[string]string{})
|
acc.AddFields("internal_memstats", fields, map[string]string{})
|
||||||
|
|
Loading…
Reference in New Issue