IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
MongoDB replstatus metricset
editMongoDB replstatus metricset
editThis is the replstatus
metricset of the module mongodb.
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": "2016-05-23T08:05:34.853Z", "beat": { "hostname": "host.example.com", "name": "host.example.com" }, "metricset":{ "host":"s1.example.com:27017,s2.example.com:27017,s3.example.com:27017", "module":"mongodb", "name":"replstatus", "rtt": 44269 }, "mongodb": { "replstatus": { "oplog": { "window": 13881222, "size": { "allocated": 2348399104, "used": 2369966391 }, "first": { "timestamp": 1520110569 }, "last": { "timestamp": 1533991791 } }, "set_name": "beats", "server_date": "2018-08-11T12:49:52.984Z", "optimes": { "last_committed": 1533991791, "applied": 1533991791, "durable": 1533991791 }, "lag": { "max": 10, "min": 10 }, "headroom": { "max": 13881212, "min": 13881212 }, "members": { "arbiter": { "hosts": [ "s1.example.com:27017" ], "count": 1 }, "rollback": { "hosts": [], "count": 0 }, "unhealthy": { "count": 0, "hosts": [] }, "secondary": { "count": 1, "optimes": [ 1533991781 ], "hosts": [ "s2.example.com:27017" ] }, "recovering": { "count": 0, "hosts": [] }, "unknown": { "hosts": [], "count": 0 }, "startup2": { "hosts": [], "count": 0 }, "down": { "hosts": [], "count": 0 }, "primary": { "optime": 1533991791, "host": "s3.example.com:27017" } } } } }