代码拉取完成,页面将自动刷新
package dbstats
import (
s "github.com/elastic/beats/metricbeat/schema"
c "github.com/elastic/beats/metricbeat/schema/mapstriface"
)
var schema = s.Schema{
"db": c.Str("db"),
"collections": c.Int("collections"),
"objects": c.Int("objects"),
"avg_obj_size": s.Object{
"bytes": c.Int("avgObjSize"),
},
"data_size": s.Object{
"bytes": c.Int("dataSize"),
},
"storage_size": s.Object{
"bytes": c.Int("storageSize"),
},
"num_extents": c.Int("numExtents"),
"indexes": c.Int("indexes"),
"index_size": s.Object{
"bytes": c.Int("indexSize"),
},
// mmapv1 only
"ns_size_mb": s.Object{
"mb": c.Int("nsSizeMB", s.Optional),
},
// mmapv1 only
"file_size": s.Object{
"bytes": c.Int("fileSize", s.Optional),
},
// mmapv1 only
"data_file_version": c.Dict("dataFileVersion", s.Schema{
"major": c.Int("major"),
"minor": c.Int("minor"),
}, c.DictOptional),
// mmapv1 only
"extent_free_list": c.Dict("extentFreeList", s.Schema{
"num": c.Int("num"),
"size": s.Object{
"bytes": c.Int("size", s.Optional),
},
}, c.DictOptional),
}
var eventMapping = schema.Apply
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。