Skip to content

Commit

Permalink
Rename heap_objects_bytes to heap_objects in internal plugin. (influx…
Browse files Browse the repository at this point in the history
…data#2674)

* Rename heap_objects_bytes to heap_objects in internal plugin.

This field does not contain bytes

fixes influxdata#2671
  • Loading branch information
danielnelson authored and Vladislav Mugultyanov (Lazada Group) committed May 30, 2017
1 parent 6c73bfa commit 7656082
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ be deprecated eventually.
- [#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.
- [#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]

Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/internal/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (s *Self) Gather(acc telegraf.Accumulator) error {
"heap_idle_bytes": m.HeapIdle, // bytes in idle spans
"heap_in_use_bytes": m.HeapInuse, // bytes in non-idle span
"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,
}
acc.AddFields("internal_memstats", fields, map[string]string{})
Expand Down

0 comments on commit 7656082

Please sign in to comment.