# README
metrics
框架集成 prometheus 监控。可以能过 /metrics 查询。
需设置环境变量
export APP_ID=TuodianApi;
# Functions
No description provided by the author
# Variables
DBDurationsSeconds mysql 调用耗时.
DBIdleConnections 空闲 DB 连接数.
DBInUseConnections 在用 DB 连接数.
DBMaxIdleClosed 因为 SetMaxIdleConns 而被关闭的连接总数量.
DBMaxLifetimeClosed 因为 SetConnMaxLifetime 而被关闭的连接总数量.
DBMaxOpenConnections 最大 DB 连接数.
DBOpenConnections 当前 DB 连接总数.
DBWaitCount 从 DB 连接池取不到连接需要等待的总数量.
HTTPDurationsSeconds http 调用耗时.
JobTotal 定时任务数量统计.
LogTotal log 调用数量统计.
MCDurationsSeconds memcache 调用耗时.
MQDurationsSeconds databus 调用耗时.
NetPoolHits 命中空闲连接数量.
NetPoolIdle 空闲连接总数.
NetPoolMisses 未命中空闲连接数量.
NetPoolStale 问题连接总数.
NetPoolTimeouts 获取连接超时总数.
NetPoolTotal 连接总数.
RedisDurationsSeconds redis 调用耗时.
RPCDurationsSeconds rpc 服务耗时.