MongoDB dbstats metricset

edit

This is the dbstats metricset of the MongoDB module.

It requires the following privileges, which is covered by the clusterMonitor role:

This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.

Fields

edit

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",
    "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"
    }
}