1 Star 0 Fork 0

zhangjungang/beats

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
data.go 812 Bytes
一键复制 编辑 原始数据 按行查看 历史
package bgwriter
import (
"time"
s "github.com/elastic/beats/libbeat/common/schema"
c "github.com/elastic/beats/libbeat/common/schema/mapstrstr"
)
var schema = s.Schema{
"checkpoints": s.Object{
"scheduled": c.Int("checkpoints_timed"),
"requested": c.Int("checkpoints_req"),
"times": s.Object{
"write": s.Object{"ms": c.Float("checkpoint_write_time")},
"sync": s.Object{"ms": c.Float("checkpoint_sync_time")},
},
},
"buffers": s.Object{
"checkpoints": c.Int("buffers_checkpoint"),
"clean": c.Int("buffers_clean"),
"clean_full": c.Int("maxwritten_clean"),
"backend": c.Int("buffers_backend"),
"backend_fsync": c.Int("buffers_backend_fsync"),
"allocated": c.Int("buffers_alloc"),
},
"stats_reset": c.Time(time.RFC3339Nano, "stats_reset", s.Optional),
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangjungang/beats.git
git@gitee.com:zhangjungang/beats.git
zhangjungang
beats
beats
v6.2.4

搜索帮助

0d507c66 1850385 C8b1a773 1850385