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
editMongoDB dbstats metricset
editThis is the dbstats
metricset of the MongoDB module.
It requires the following privileges, which is covered by the clusterMonitor
role:
-
listDatabases
action oncluster
resource -
for each of the databases, also need
dbStats
action on thedatabase
resource
This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.
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", "agent": { "hostname": "host.example.com", "name": "host.example.com" }, "event": { "dataset": "mongodb.dbstats", "duration": 115000, "module": "mongodb" }, "metricset": { "name": "dbstats" }, "mongodb": { "dbstats": { "avg_obj_size": { "bytes": 741 }, "collections": 2, "data_size": { "bytes": 1482 }, "db": "local", "file_size": {}, "index_size": { "bytes": 32768 }, "indexes": 2, "ns_size_mb": {}, "num_extents": 0, "objects": 2, "storage_size": { "bytes": 32768 } } }, "service": { "address": "172.26.0.2:27017", "type": "mongodb" } }