Golang heap 度量集
编辑Golang heap 度量集
编辑Golang 模块的 heap
度量集从 expvar API 收集 memstats 信息。
有关度量集中的每个字段的描述,请参阅导出字段部分。
这是一个由该度量集生成的示例文档
{ "@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" } }