Documentation
¶
Index ¶
- func BytesPoolStats(topN int, ps ...*bytespool.CapacityPools) map[string]any
- func MainStats() map[string]any
- func MetricStats() map[string]any
- func MetricStatsDesc() map[string]any
- func MetricStatsWithBytesPoolStats(topN int, ps ...*bytespool.CapacityPools) map[string]any
- func NetworkStats() map[string]any
- func NetworkStatsDesc() map[string]any
- func RedisDBSize() int
- func RedisInfo() map[string]any
- func RedisStats() map[string]any
- func SYSStats() map[string]any
- func SYSStatsDesc() map[string]any
- func WebStats() map[string]any
- func WebStatsDesc() map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesPoolStats ¶ added in v0.10.4
func BytesPoolStats(topN int, ps ...*bytespool.CapacityPools) map[string]any
func MainStats ¶ added in v0.7.1
MainStats 返回主程序指标. 操作系统字段最多每30秒按需读取一次, Go 运行时字段每次调用更新. CPU 为两次成功读取之间的均值, 采样窗口可超过30秒. NumConnections 不再采集, 保留 int(0) 占位, 不代表实际连接数为0. NumThreads/CPUPercent/MemPercent 失败时保留旧类型零占位, 应结合 ResourceErrors 判断有效性. Linux FD 为允许少量偏差的目录总数; 新增字段不支持或失败时缺省, NumOpenFiles 回退 int(0).
func MetricStatsDesc ¶ added in v0.10.0
MetricStatsDesc 主程序运行指标注释
func MetricStatsWithBytesPoolStats ¶ added in v1.0.3
func MetricStatsWithBytesPoolStats(topN int, ps ...*bytespool.CapacityPools) map[string]any
MetricStatsWithBytesPoolStats 带内存池统计指标
func NetworkStats ¶ added in v1.3.9
NetworkStats 返回主机网络命名空间的累计计数, 不代表当前进程独占流量. 这是独立可选入口, 最多每30秒按访问刷新, 没有后台采集. 差分时应跳过重复采集戳、时间回退及计数重置; IPv4 UDP、IPv4/IPv6 合计 TCP 与接口全协议口径不同.
func NetworkStatsDesc ¶ added in v1.3.9
NetworkStatsDesc 网络资源累计指标注释.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.