# Functions

CollectProcessMetrics periodically collects various metrics about the running process.
GetMapMetrics 返回所有注册是metrics方法.
No description provided by the author
NewCounter create a new metrics Counter, either a real one of a NOP stub depending on the metrics flag.
No description provided by the author
NewMeter create a new metrics Meter, either a real one of a NOP stub depending on the metrics flag.
NewTimer create a new metrics Timer, either a real one of a NOP stub depending on the metrics flag.
No description provided by the author
ReadDiskStats retrieves the disk IO stats belonging to the current process.
返回出给定name的metrics的[]string.
ToStrings 把多个string拼接成一个[]string.
WriteMetricsData 收集统计数据.

# Constants

心跳包msg code.
No description provided by the author
0.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Insert chain 所用平均时间大于5s.
Mine Block 所用平均时间大于8s.
告警规则表.
告警系统server的url,通过配置文件传进来.
统计区块插入链中的速率和所用时间的分布情况.
是否激活metrics,通过检测到配置文件是否配置了告警server的url来判断是否激活.
统计调用handleBlockHashMsg的频率.
统计调用handleBlocksMsg的频率.
统计调用handleConfirmMsg的频率.
统计调用handleDiscoverReqMsg的频率.
统计调用handleDiscoverResMsg的频率.
统计调用handleGetBlocksMsg的频率.
统计调用handleGetBlocksWithChangeLogMsg的频率.
统计调用handleGetConfirmsMsg的频率.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
对数据库进行get操作失败的频率.
No description provided by the author
get数据库出来的数据字节大小.
put进数据库的数据字节大小.
Enabled is the flag specifying if metrics are enable or not.
统计出块速率和时间分布.
msg长度所占字节的个数.
package flag.
No description provided by the author
统计读取msg失败的timer.
统计成功读取msg的timer.
释放内存的次数.
读磁盘操作次数.
读取的字节总数.
写磁盘操作次数.
写的字节总数.
申请内存的次数.
已申请且仍在使用的字节数.
GC总的暂停时间的循环缓冲.
No description provided by the author
未稳定块过多.
校验收到的区块失败的频率.
No description provided by the author
统计写msg失败的timer.
统计写msg成功的timer.

# Structs

验证触发告警条件.
DiskStats is the per process disk io stats.

# Type aliases

缓存注册的metrics方法.