NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Golang heap metricset
editGolang heap metricset
editThis functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.
The heap
metricset of the Golang module collects the memstats information from the expvar API.
Fields
editFor a description of each field in the metricset, see the exported fields section.
Here is an example document generated by this metricset:
{ "@timestamp": "2017-02-22T08:29:22.819Z", "beat": { "hostname": "MacBook-Pro.local", "name": "MacBook-Pro.local", "version": "6.0.0-alpha1" }, "golang": { "heap": { "allocations": { "active": 20619264, "allocated": 19317104, "frees": 56786, "idle": 2383872, "mallocs": 77939, "objects": 21153, "total": 42590064 }, "cmdline": "./bin/gopa --pprof", "gc": { "cpu_fraction": 0.000006, "next_gc_limit": 33694576, "pause": { "avg": { "ns": 0 }, "count": 0, "max": { "ns": 0 }, "sum": { "ns": 0 } }, "total_count": 7, "total_pause": { "ns": 527378 } }, "system": { "obtained": 23003136, "released": 0, "stack": 1114112, "total": 28956920 } } }, "metricset": { "host": "localhost:6060", "module": "golang", "name": "heap", "rtt": 1159 }, "type": "metricsets" }