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:

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