NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
MongoDB dbstats metricset
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
MongoDB dbstats metricset
editThis is the dbstats metricset of the MongoDB module.
It requires the following privileges, which is covered by the clusterMonitor role:
-
listDatabasesaction onclusterresource -
for each of the databases, also need
dbStatsaction on thedatabaseresource
Fields
editFor a description of each field in the metricset, see the exported fields section.
Here is an example document generated by this metricset:
{
"@timestamp": "2017-10-12T08:05:34.853Z",
"beat": {
"hostname": "host.example.com",
"name": "host.example.com"
},
"metricset": {
"host": "mongodb:27017",
"module": "mongodb",
"name": "dbstats",
"rtt": 115
},
"mongodb": {
"dbstats": {
"avg_obj_size": {
"bytes": 59
},
"collections": 1,
"data_size": {
"bytes": 59
},
"db": "admin",
"file_size": {},
"index_size": {
"bytes": 32768
},
"indexes": 2,
"ns_size_mb": {},
"num_extents": 0,
"objects": 1,
"storage_size": {
"bytes": 16384
}
}
}
}