1 Star 0 Fork 0

zhangjungang/beats

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
data.go 819 Bytes
一键复制 编辑 原始数据 按行查看 历史
package stats
import (
s "github.com/elastic/beats/libbeat/common/schema"
c "github.com/elastic/beats/libbeat/common/schema/mapstrstr"
)
var (
schema = s.Schema{
"pid": c.Int("pid"),
"uptime": s.Object{
"sec": c.Int("uptime"),
},
"threads": c.Int("threads"),
"connections": s.Object{
"current": c.Int("curr_connections"),
"total": c.Int("total_connections"),
},
"get": s.Object{
"hits": c.Int("get_hits"),
"misses": c.Int("get_misses"),
},
"cmd": s.Object{
"get": c.Int("cmd_get"),
"set": c.Int("cmd_set"),
},
"read": s.Object{
"bytes": c.Int("bytes_read"),
},
"written": s.Object{
"bytes": c.Int("bytes_written"),
},
"items": s.Object{
"current": c.Int("curr_items"),
"total": c.Int("total_items"),
},
"evictions": c.Int("evictions"),
}
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangjungang/beats.git
git@gitee.com:zhangjungang/beats.git
zhangjungang
beats
beats
v6.2.0

搜索帮助