Golang 集成
编辑Golang 集成
编辑概述
编辑Golang 集成允许您监控 Golang 应用程序。Go 是一种在 Google 设计的静态类型、编译型编程语言。它在语法上类似于 C,但具有内存安全、垃圾回收、结构类型和 CSP 风格的并发。它通常被称为 Golang。
使用 Golang 集成可以
- 深入了解 expvar 和堆统计信息。
- 创建可视化,以监控、测量和分析堆、垃圾回收器、内存、mcache 结构、mspan 结构等的状态。
数据流
编辑Golang 集成使用 expvar 包收集指标。在导入 expvar 包并添加 HTTP 处理程序后,指标将导出到 "/debug/vars" 端点。
指标帮助您记录 Go (Golang) 应用程序的状态。Golang 集成收集的指标数据流包括 expvar 和 heap。
数据流
-
heap
: 收集堆指标,例如堆分配和垃圾回收指标。 -
expvar
: 收集指标,例如 memstats、cmdline 和自定义(用户定义)指标。
注意
- 用户可以在
Discover
的logs-*
索引模式中,监控和查看 Golang 的已提取文档中的指标。
兼容性
编辑此集成已针对 Golang 版本 1.19
和 1.18
进行测试。
先决条件
编辑您需要 Elasticsearch 来存储和搜索您的数据,以及 Kibana 来可视化和管理它。您可以使用我们在 Elastic Cloud 上的托管 Elasticsearch 服务(推荐),或者在您自己的硬件上自行管理 Elastic Stack。
设置
编辑有关如何设置集成的分步说明,请参阅入门指南。
故障排除
编辑- 如果
host.ip
在logs-*
数据视图下出现冲突,可以通过重新索引Heap
和Expvar
数据流来解决此问题。
指标参考
编辑expvar
编辑这是 expvar
数据流。可以使用 expvar
数据流收集垃圾回收器、mcache 结构和 mspan 结构的指标。自定义指标也可以在 golang.expvar.custom
字段下收集。
示例
expvar
的示例事件如下所示
{ "@timestamp": "2023-01-04T13:03:30.958Z", "agent": { "ephemeral_id": "9e142190-e278-4791-852f-829b4d724ed9", "id": "688e9cab-ccca-4032-8384-7ad5f358a434", "name": "docker-fleet-agent", "type": "filebeat", "version": "8.5.1" }, "data_stream": { "dataset": "golang.expvar", "namespace": "ep", "type": "logs" }, "ecs": { "version": "8.11.0" }, "elastic_agent": { "id": "688e9cab-ccca-4032-8384-7ad5f358a434", "snapshot": false, "version": "8.5.1" }, "event": { "agent_id_status": "verified", "created": "2023-01-04T13:03:30.958Z", "dataset": "golang.expvar", "ingested": "2023-01-04T13:03:32Z", "kind": "metric", "module": "golang", "original": "{\"cmdline\":[\"./test\"],\"memstats\":{\"Alloc\":278472,\"BuckHashSys\":3906,\"BySize\":[{\"Frees\":0,\"Mallocs\":0,\"Size\":0},{\"Frees\":53,\"Mallocs\":82,\"Size\":8},{\"Frees\":334,\"Mallocs\":735,\"Size\":16},{\"Frees\":71,\"Mallocs\":93,\"Size\":24},{\"Frees\":46,\"Mallocs\":80,\"Size\":32},{\"Frees\":196,\"Mallocs\":306,\"Size\":48},{\"Frees\":162,\"Mallocs\":190,\"Size\":64},{\"Frees\":18,\"Mallocs\":33,\"Size\":80},{\"Frees\":30,\"Mallocs\":48,\"Size\":96},{\"Frees\":17,\"Mallocs\":21,\"Size\":112},{\"Frees\":61,\"Mallocs\":68,\"Size\":128},{\"Frees\":36,\"Mallocs\":38,\"Size\":144},{\"Frees\":18,\"Mallocs\":36,\"Size\":160},{\"Frees\":0,\"Mallocs\":6,\"Size\":176},{\"Frees\":0,\"Mallocs\":0,\"Size\":192},{\"Frees\":25,\"Mallocs\":47,\"Size\":208},{\"Frees\":16,\"Mallocs\":18,\"Size\":224},{\"Frees\":0,\"Mallocs\":1,\"Size\":240},{\"Frees\":47,\"Mallocs\":62,\"Size\":256},{\"Frees\":3,\"Mallocs\":6,\"Size\":288},{\"Frees\":2,\"Mallocs\":3,\"Size\":320},{\"Frees\":53,\"Mallocs\":60,\"Size\":352},{\"Frees\":0,\"Mallocs\":1,\"Size\":384},{\"Frees\":1,\"Mallocs\":56,\"Size\":416},{\"Frees\":0,\"Mallocs\":0,\"Size\":448},{\"Frees\":0,\"Mallocs\":0,\"Size\":480},{\"Frees\":15,\"Mallocs\":15,\"Size\":512},{\"Frees\":2,\"Mallocs\":4,\"Size\":576},{\"Frees\":1,\"Mallocs\":4,\"Size\":640},{\"Frees\":1,\"Mallocs\":3,\"Size\":704},{\"Frees\":0,\"Mallocs\":0,\"Size\":768},{\"Frees\":1,\"Mallocs\":1,\"Size\":896},{\"Frees\":15,\"Mallocs\":26,\"Size\":1024},{\"Frees\":2,\"Mallocs\":4,\"Size\":1152},{\"Frees\":1,\"Mallocs\":3,\"Size\":1280},{\"Frees\":1,\"Mallocs\":1,\"Size\":1408},{\"Frees\":108,\"Mallocs\":121,\"Size\":1536},{\"Frees\":0,\"Mallocs\":4,\"Size\":1792},{\"Frees\":29,\"Mallocs\":31,\"Size\":2048},{\"Frees\":1,\"Mallocs\":3,\"Size\":2304},{\"Frees\":1,\"Mallocs\":2,\"Size\":2688},{\"Frees\":0,\"Mallocs\":0,\"Size\":3072},{\"Frees\":0,\"Mallocs\":0,\"Size\":3200},{\"Frees\":0,\"Mallocs\":0,\"Size\":3456},{\"Frees\":68,\"Mallocs\":70,\"Size\":4096},{\"Frees\":13,\"Mallocs\":15,\"Size\":4864},{\"Frees\":0,\"Mallocs\":1,\"Size\":5376},{\"Frees\":16,\"Mallocs\":17,\"Size\":6144},{\"Frees\":0,\"Mallocs\":0,\"Size\":6528},{\"Frees\":0,\"Mallocs\":0,\"Size\":6784},{\"Frees\":0,\"Mallocs\":0,\"Size\":6912},{\"Frees\":4,\"Mallocs\":6,\"Size\":8192},{\"Frees\":0,\"Mallocs\":12,\"Size\":9472},{\"Frees\":0,\"Mallocs\":0,\"Size\":9728},{\"Frees\":0,\"Mallocs\":0,\"Size\":10240},{\"Frees\":0,\"Mallocs\":0,\"Size\":10880},{\"Frees\":0,\"Mallocs\":0,\"Size\":12288},{\"Frees\":0,\"Mallocs\":0,\"Size\":13568},{\"Frees\":0,\"Mallocs\":0,\"Size\":14336},{\"Frees\":0,\"Mallocs\":0,\"Size\":16384},{\"Frees\":0,\"Mallocs\":0,\"Size\":18432}],\"DebugGC\":false,\"EnableGC\":true,\"Frees\":1598,\"GCCPUFraction\":0.00010453488922881322,\"GCSys\":8585248,\"HeapAlloc\":278472,\"HeapIdle\":2736128,\"HeapInuse\":901120,\"HeapObjects\":865,\"HeapReleased\":2564096,\"HeapSys\":3637248,\"LastGC\":1672837410834975000,\"Lookups\":0,\"MCacheInuse\":14400,\"MCacheSys\":15600,\"MSpanInuse\":63104,\"MSpanSys\":65280,\"Mallocs\":2463,\"NextGC\":4194304,\"NumForcedGC\":19,\"NumGC\":19,\"OtherSys\":1077438,\"PauseEnd\":[1672837392815676400,1672837393816946700,1672837394817801500,1672837395818876400,1672837396820657200,1672837397822115300,1672837398823296500,1672837399824033800,1672837400825333800,1672837401826484500,1672837402827608800,1672837403828212000,1672837404829356800,1672837405830248000,1672837406830978000,1672837407831748000,1672837408832323300,1672837409833831000,1672837410834975000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\"PauseNs\":[61953,38812,89413,42429,90277,68619,117474,43316,43068,61573,45315,45976,45183,60469,199702,49007,45615,43247,42710,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\"PauseTotalNs\":1234158,\"StackInuse\":557056,\"StackSys\":557056,\"Sys\":13941776,\"TotalAlloc\":1170744}}", "type": [ "info" ] }, "golang": { "expvar": { "buck_hash_sys": { "bytes": 3906 }, "cmdline": [ "./test" ], "gc": { "forced": 19, "last_finished": { "ns": 1672837410834975000 }, "metadata": { "memory": { "bytes": 8585248 } } }, "mcache": { "allocated": { "bytes": 14400 }, "obtained": { "bytes": 15600 } }, "mspan": { "allocated": { "bytes": 63104 }, "obtained": { "bytes": 65280 } }, "obtained": { "miscellaneous": { "bytes": 1077438 }, "total": { "bytes": 13941776 } }, "pointer": { "lookups": 0 }, "stack": { "bytes": 557056 } } }, "input": { "type": "httpjson" }, "service": { "address": "http://elastic-package-service_golang_1:6060" }, "tags": [ "preserve_original_event", "forwarded", "golang-expvar" ] }
ECS 字段参考
有关 ECS 字段的详细信息,请参阅以下文档。
导出的字段
字段 | 描述 | 类型 | 单位 | 指标类型 |
---|---|---|---|---|
@timestamp |
事件时间戳。 |
date |
||
data_stream.dataset |
数据流数据集。 |
constant_keyword |
||
data_stream.namespace |
数据流命名空间。 |
constant_keyword |
||
data_stream.type |
数据流类型。 |
constant_keyword |
||
golang.expvar.buck_hash_sys.bytes |
配置文件存储桶哈希表中的内存字节数。 |
long |
byte |
gauge |
golang.expvar.cmdline |
此 Go 程序启动时使用的 cmdline。 |
keyword |
||
golang.expvar.gc.forced |
应用程序调用 GC 函数强制执行的 GC 周期数。 |
long |
counter |
|
golang.expvar.gc.last_finished.ns |
上次垃圾回收完成的时间。 |
long |
nanos |
counter |
golang.expvar.gc.metadata.memory.bytes |
垃圾回收元数据中的内存字节数。 |
long |
byte |
gauge |
golang.expvar.mcache.allocated.bytes |
已分配的 mcache 结构的字节数。 |
long |
byte |
gauge |
golang.expvar.mcache.obtained.bytes |
从操作系统获取的 mcache 结构的内存字节数。 |
long |
byte |
gauge |
golang.expvar.mspan.allocated.bytes |
已分配的 mspan 结构的字节数。 |
long |
byte |
gauge |
golang.expvar.mspan.obtained.bytes |
从操作系统获取的 mspan 结构的内存字节数。 |
long |
byte |
gauge |
golang.expvar.obtained.miscellaneous.bytes |
各种堆外运行时分配中的内存字节数。 |
long |
byte |
gauge |
golang.expvar.obtained.total.bytes |
从操作系统获取的内存总字节数。 |
long |
byte |
gauge |
golang.expvar.pointer.lookups |
运行时执行的指针查找次数。 |
long |
gauge |
|
golang.expvar.stack.bytes |
堆栈跨度中的字节数。 |
long |
byte |
gauge |
input.type |
Filebeat 输入的类型。 |
keyword |
堆
编辑这是 heap
数据流。可以使用 heap
数据流收集堆分配和 GC 暂停等指标。
示例
heap
的示例事件如下所示
{ "@timestamp": "2023-02-01T10:17:48.723Z", "agent": { "ephemeral_id": "e385e1a9-0d82-4af1-8367-a39f246790b8", "id": "ba35afb2-0df7-4d14-8dc2-7a89e4bcbe18", "name": "docker-fleet-agent", "type": "filebeat", "version": "8.5.1" }, "data_stream": { "dataset": "golang.heap", "namespace": "ep", "type": "logs" }, "ecs": { "version": "8.11.0" }, "elastic_agent": { "id": "ba35afb2-0df7-4d14-8dc2-7a89e4bcbe18", "snapshot": false, "version": "8.5.1" }, "event": { "agent_id_status": "verified", "created": "2023-02-01T10:17:48.723Z", "dataset": "golang.heap", "ingested": "2023-02-01T10:17:49Z", "kind": "metric", "module": "golang", "original": "{\"cmdline\":[\"./test\"],\"memstats\":{\"Alloc\":286040,\"BuckHashSys\":3906,\"BySize\":[{\"Frees\":0,\"Mallocs\":0,\"Size\":0},{\"Frees\":46,\"Mallocs\":74,\"Size\":8},{\"Frees\":290,\"Mallocs\":691,\"Size\":16},{\"Frees\":61,\"Mallocs\":82,\"Size\":24},{\"Frees\":41,\"Mallocs\":75,\"Size\":32},{\"Frees\":158,\"Mallocs\":268,\"Size\":48},{\"Frees\":128,\"Mallocs\":157,\"Size\":64},{\"Frees\":15,\"Mallocs\":30,\"Size\":80},{\"Frees\":22,\"Mallocs\":43,\"Size\":96},{\"Frees\":14,\"Mallocs\":18,\"Size\":112},{\"Frees\":47,\"Mallocs\":54,\"Size\":128},{\"Frees\":30,\"Mallocs\":32,\"Size\":144},{\"Frees\":15,\"Mallocs\":31,\"Size\":160},{\"Frees\":0,\"Mallocs\":6,\"Size\":176},{\"Frees\":0,\"Mallocs\":0,\"Size\":192},{\"Frees\":23,\"Mallocs\":44,\"Size\":208},{\"Frees\":13,\"Mallocs\":15,\"Size\":224},{\"Frees\":0,\"Mallocs\":1,\"Size\":240},{\"Frees\":37,\"Mallocs\":52,\"Size\":256},{\"Frees\":3,\"Mallocs\":6,\"Size\":288},{\"Frees\":2,\"Mallocs\":3,\"Size\":320},{\"Frees\":45,\"Mallocs\":52,\"Size\":352},{\"Frees\":0,\"Mallocs\":1,\"Size\":384},{\"Frees\":1,\"Mallocs\":55,\"Size\":416},{\"Frees\":0,\"Mallocs\":0,\"Size\":448},{\"Frees\":0,\"Mallocs\":0,\"Size\":480},{\"Frees\":11,\"Mallocs\":11,\"Size\":512},{\"Frees\":2,\"Mallocs\":4,\"Size\":576},{\"Frees\":1,\"Mallocs\":4,\"Size\":640},{\"Frees\":1,\"Mallocs\":3,\"Size\":704},{\"Frees\":0,\"Mallocs\":0,\"Size\":768},{\"Frees\":1,\"Mallocs\":1,\"Size\":896},{\"Frees\":11,\"Mallocs\":22,\"Size\":1024},{\"Frees\":2,\"Mallocs\":4,\"Size\":1152},{\"Frees\":1,\"Mallocs\":3,\"Size\":1280},{\"Frees\":1,\"Mallocs\":1,\"Size\":1408},{\"Frees\":86,\"Mallocs\":99,\"Size\":1536},{\"Frees\":0,\"Mallocs\":4,\"Size\":1792},{\"Frees\":21,\"Mallocs\":23,\"Size\":2048},{\"Frees\":1,\"Mallocs\":3,\"Size\":2304},{\"Frees\":1,\"Mallocs\":2,\"Size\":2688},{\"Frees\":0,\"Mallocs\":0,\"Size\":3072},{\"Frees\":0,\"Mallocs\":0,\"Size\":3200},{\"Frees\":0,\"Mallocs\":0,\"Size\":3456},{\"Frees\":57,\"Mallocs\":61,\"Size\":4096},{\"Frees\":5,\"Mallocs\":7,\"Size\":4864},{\"Frees\":0,\"Mallocs\":1,\"Size\":5376},{\"Frees\":13,\"Mallocs\":14,\"Size\":6144},{\"Frees\":0,\"Mallocs\":0,\"Size\":6528},{\"Frees\":0,\"Mallocs\":0,\"Size\":6784},{\"Frees\":0,\"Mallocs\":0,\"Size\":6912},{\"Frees\":1,\"Mallocs\":3,\"Size\":8192},{\"Frees\":0,\"Mallocs\":12,\"Size\":9472},{\"Frees\":0,\"Mallocs\":0,\"Size\":9728},{\"Frees\":0,\"Mallocs\":0,\"Size\":10240},{\"Frees\":0,\"Mallocs\":0,\"Size\":10880},{\"Frees\":0,\"Mallocs\":0,\"Size\":12288},{\"Frees\":0,\"Mallocs\":0,\"Size\":13568},{\"Frees\":0,\"Mallocs\":0,\"Size\":14336},{\"Frees\":0,\"Mallocs\":0,\"Size\":16384},{\"Frees\":0,\"Mallocs\":0,\"Size\":18432}],\"DebugGC\":false,\"EnableGC\":true,\"Frees\":1329,\"GCCPUFraction\":0.00008866715026361546,\"GCSys\":8593488,\"HeapAlloc\":286040,\"HeapIdle\":2834432,\"HeapInuse\":868352,\"HeapObjects\":865,\"HeapReleased\":2637824,\"HeapSys\":3702784,\"LastGC\":1675246668664461000,\"Lookups\":0,\"MCacheInuse\":14400,\"MCacheSys\":15600,\"MSpanInuse\":54400,\"MSpanSys\":65280,\"Mallocs\":2194,\"NextGC\":4194304,\"NumForcedGC\":15,\"NumGC\":15,\"OtherSys\":1331342,\"PauseEnd\":[1675246654649875700,1675246655651008500,1675246656651925500,1675246657652856300,1675246658653773300,1675246659655028200,1675246660656272400,1675246661657298000,1675246662658424000,1675246663659243300,1675246664660357400,1675246665661794600,1675246666662344200,1675246667663702800,1675246668664461000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\"PauseNs\":[92033,45637,38257,42954,44695,55030,73403,56834,40821,47882,66027,39846,39209,41114,55981,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\"PauseTotalNs\":779723,\"StackInuse\":491520,\"StackSys\":491520,\"Sys\":14203920,\"TotalAlloc\":978912}}", "type": [ "info" ] }, "golang": { "heap": { "allocations": { "active": { "bytes": 868352 }, "frees": { "count": 1329 }, "idle": { "bytes": 2834432 }, "object": { "bytes": 286040, "count": 865 }, "total": { "bytes": 978912 } }, "cmdline": [ "./test" ], "gc": { "cpu_fraction": 0.00008866715026361546, "next_gc_limit": 4194304, "pause": { "total": { "ns": 779723 } }, "total": { "count": 15 } }, "mallocs": { "count": 2194 }, "system": { "released": { "bytes": 2637824 }, "stack": { "bytes": 491520 }, "total": { "bytes": 3702784 } } } }, "input": { "type": "httpjson" }, "service": { "address": "http://elastic-package-service_golang_1:6060" }, "tags": [ "preserve_original_event", "forwarded", "golang-heap" ] }
ECS 字段参考
有关 ECS 字段的详细信息,请参阅以下文档。
导出的字段
字段 | 描述 | 类型 | 单位 | 指标类型 |
---|---|---|---|---|
@timestamp |
事件时间戳。 |
date |
||
data_stream.dataset |
数据流数据集。 |
constant_keyword |
||
data_stream.namespace |
数据流命名空间。 |
constant_keyword |
||
data_stream.type |
数据流类型。 |
constant_keyword |
||
golang.heap.allocations.active.bytes |
正在使用的跨度中的字节数。 |
long |
byte |
gauge |
golang.heap.allocations.frees.count |
已释放的堆对象累积计数。 |
long |
gauge |
|
golang.heap.allocations.idle.bytes |
空闲(未使用)跨度中的字节数。 |
long |
byte |
gauge |
golang.heap.allocations.object.bytes |
已分配的堆对象的字节数。 |
long |
byte |
gauge |
golang.heap.allocations.object.count |
已分配的堆对象数量。 |
long |
gauge |
|
golang.heap.allocations.total.bytes |
为堆对象分配的累积字节数。 |
long |
byte |
counter |
golang.heap.cmdline |
此 Go 程序启动时使用的 cmdline。 |
keyword |
||
golang.heap.gc.cpu_fraction |
自程序启动以来,GC 使用的程序可用 CPU 时间的比例。 |
float |
gauge |
|
golang.heap.gc.next_gc_limit |
下一个 GC 周期的目标堆大小。 |
long |
gauge |
|
golang.heap.gc.pause.total.ns |
自程序启动以来,GC 停止世界暂停的总纳秒数。 |
long |
nanos |
counter |
golang.heap.gc.total.count |
已完成的 GC 周期数。 |
long |
counter |
|
golang.heap.mallocs.count |
Mallocs 是在此大小类中分配的堆对象的累积计数。 |
long |
gauge |
|
golang.heap.system.released.bytes |
返回给操作系统的物理内存字节数。 |
long |
byte |
gauge |
golang.heap.system.stack.bytes |
从操作系统获取的堆栈内存字节数。 |
long |
byte |
gauge |
golang.heap.system.total.bytes |
从操作系统获取的堆内存字节数。 |
long |
byte |
gauge |
input.type |
Filebeat 输入的类型。 |
keyword |
变更日志
编辑变更日志
版本 | 详情 | Kibana 版本 |
---|---|---|
1.6.0 |
增强 (查看拉取请求) |
8.13.0 或更高版本 |
1.5.0 |
增强 (查看拉取请求) |
8.12.0 或更高版本 |
1.4.1 |
增强 (查看拉取请求) |
8.12.0 或更高版本 |
1.4.0 |
增强 (查看拉取请求) |
8.12.0 或更高版本 |
1.3.1 |
错误修复 (查看拉取请求) |
8.7.1 或更高版本 |
1.3.0 |
增强 (查看拉取请求) |
8.7.1 或更高版本 |
1.2.0 |
增强 (查看拉取请求) |
8.7.1 或更高版本 |
1.1.0 |
增强 (查看拉取请求) |
8.7.1 或更高版本 |
1.0.0 |
增强 (查看拉取请求) |
8.7.1 或更高版本 |
0.4.4 |
错误修复 (查看拉取请求) |
— |
0.4.3 |
错误修复 (查看拉取请求) |
— |
0.4.2 |
增强 (查看拉取请求) |
— |
0.4.1 |
错误修复 (查看拉取请求) |
— |
0.4.0 |
增强 (查看拉取请求) |
— |
0.3.0 |
增强 (查看拉取请求) |
— |
0.2.0 |
增强 (查看拉取请求) |
— |
0.1.0 |
增强 (查看拉取请求) |
— |