1 Star 0 Fork 0

sqos/beats

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
data.go 804 Bytes
一键复制 编辑 原始数据 按行查看 历史
package bgwriter
import (
"time"
s "github.com/elastic/beats/metricbeat/schema"
c "github.com/elastic/beats/metricbeat/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/sqos/beats.git
git@gitee.com:sqos/beats.git
sqos
beats
beats
v5.2.2

搜索帮助