Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
基本介绍
samples:所有Golang
程序都有这些公共指标。虽然标准库runtime/metrics
包和promtheus SDK
中也有很多Golang
指标,但是核心的指标也就以下这些,后续不够的再增加即可。
指标概览
指标名称 | 指标类型 | 指标单位 | Help信息 | 指标描述 |
---|---|---|---|---|
|
| Number of cgo calls made by the current process | 当前进程调用的 | |
|
| Number of completed garbage collection cycles | 已完成的 | |
|
|
| Amount of nanoseconds in GC stop-the-world pauses | 在 |
|
Histogram
|
| Cumulative nanoseconds in GC stop-the-world pauses since the program started | 自程序启动以来, | |
|
| Number of goroutines that currently exist | 当前运行的协程数量。 | |
|
| Number of pointer lookups performed by the runtime | 运行时执行的指针查询的数量。 | |
|
|
| Bytes of allocated heap objects | 分配的堆对象的字节数。 |
|
|
| Bytes in idle (unused) spans | 空闲(未使用)的堆内存。 |
|
|
| Bytes in in-use spans | 已使用的堆内存。 |
|
| Number of allocated heap objects | 已分配的堆对象数量。 | |
|
| Number of live objects is the number of cumulative Mallocs - Frees | 存活对象数量( | |
|
|
| Bytes of idle spans whose physical memory has been returned to the OS | 已交还给操作系统的堆内存。 |
|
|
| Bytes of heap memory obtained from the OS | 从操作系统获得的堆内存。 |
|
|
| Milliseconds since application was initialized | 自应用程序被初始化以来的毫秒数。 |
指标详述
Panel | ||||
---|---|---|---|---|
| ||||
|