IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
MongoDB dbstats metricset
edit
A newer version is available. Check out 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
This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.
For 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",
"event": {
"dataset": "mongodb.dbstats",
"duration": 115000,
"module": "mongodb"
},
"metricset": {
"name": "dbstats",
"period": 10000
},
"mongodb": {
"dbstats": {
"avg_obj_size": {
"bytes": 59
},
"collections": 1,
"data_size": {
"bytes": 59
},
"db": "admin",
"file_size": {},
"index_size": {
"bytes": 20480
},
"indexes": 1,
"ns_size_mb": {},
"objects": 1,
"storage_size": {
"bytes": 20480
}
}
},
"service": {
"address": "172.28.0.2:27017",
"type": "mongodb"
}
}