Golang 堆内存指标集
编辑Golang 堆内存指标集编辑
Golang 模块的 heap
指标集从 expvar API 收集内存统计信息。
有关指标集中每个字段的描述,请参见 导出字段 部分。
以下是由此指标集生成的示例文档。
{ "@timestamp": "2017-10-12T08:05:34.853Z", "agent": { "hostname": "host.example.com", "name": "host.example.com" }, "event": { "dataset": "golang.heap", "duration": 115000, "module": "golang" }, "golang": { "heap": { "allocations": { "active": 52076544, "allocated": 50143344, "frees": 23897036, "idle": 352256, "mallocs": 24213008, "objects": 315972, "total": 3857953864 }, "cmdline": "metricbeat --httpprof :6060 -e", "gc": { "cpu_fraction": 0.00003865910349307519, "next_gc_limit": 52492048, "pause": { "avg": { "ns": 466218 }, "count": 237, "max": { "ns": 4432500 }, "sum": { "ns": 110493700 } }, "total_count": 237, "total_pause": { "ns": 110493700 } }, "system": { "obtained": 52428800, "released": 0, "stack": 983040, "total": 59263224 } } }, "metricset": { "name": "heap" }, "service": { "address": "127.0.0.1:6060", "type": "golang" } }