1 Star 0 Fork 0

sqos/beats

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
data.go 819 Bytes
Copy Edit Raw Blame History
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"),
}
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sqos/beats.git
git@gitee.com:sqos/beats.git
sqos
beats
beats
v6.1.4

Search