MongoDB status metricset

edit

This is the status 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": "status",
		"rtt": 115
	},
	"mongodb": {
		"status": {
			"version": "3.4.7",
			"ops": {
				"latencies": {
					"writes": {
						"latency": 0,
						"count": 0
					},
					"commands": {
						"latency": 439756604,
						"count": 7607434
					},
					"reads": {
						"count": 19245,
						"latency": 5504505
					}
				},
				"counters": {
					"update": 0,
					"delete": 0,
					"getmore": 14,
					"command": 7607435,
					"insert": 0,
					"query": 19200
				},
				"replicated": {
					"query": 0,
					"update": 0,
					"delete": 0,
					"getmore": 0,
					"command": 0,
					"insert": 0
				}
			},
			"uptime": {
				"ms": 4909716080
			},
			"asserts": {
				"warning": 0,
				"msg": 0,
				"user": 32,
				"rollovers": 0,
				"regular": 0
			},
			"local_time": "2018-07-17T18:31:45.823Z",
			"global_lock": {
				"total_time": {
                    "us": 4909712143000
                },
				"current_queue": {
					"total": 0,
					"readers": 0,
					"writers": 0
				},
				"active_clients": {
					"readers": 0,
					"writers": 0,
					"total": 19
				}
			},
			"network": {
				"out": {
					"bytes": 5137630772
				},
				"requests": 15253359,
				"in": {
					"bytes": 973355182
				}
			},
			"locks": {
				"oplog": {
					"acquire": {
						"count": {
							"r": 4909608
						}
					},
					"wait": {},
					"deadlock": {}
				},
				"global": {
					"wait": {},
					"deadlock": {},
					"acquire": {
						"count": {
							"w": 22,
							"W": 2,
							"r": 17350359
						}
					}
				},
				"database": {
					"wait": {},
					"deadlock": {},
					"acquire": {
						"count": {
							"R": 21447,
							"W": 22,
							"r": 11087051
						}
					}
				},
				"collection": {
					"wait": {},
					"deadlock": {},
					"acquire": {
						"count": {
							"r": 6155983
						}
					}
				},
				"meta_data": {
					"acquire": {
						"count": {
							"w": 1
						}
					},
					"wait": {},
					"deadlock": {}
				}
			},
			"wired_tiger": {
				"cache": {
					"maximum": {
						"bytes": 1534066688
					},
					"used": {
						"bytes": 65472
					},
					"dirty": {
						"bytes": 0
					},
					"pages": {
						"write": 63,
						"evicted": 0,
						"read": 18
					}
				},
				"log": {
					"syncs": 38,
					"size": {
						"bytes": 33554432
					},
					"write": {
						"bytes": 15104
					},
					"max_file_size": {
						"bytes": 104857600
					},
					"flushes": 49022011,
					"writes": 47,
					"scans": 5
				},
				"concurrent_transactions": {
					"write": {
						"available": 128,
						"total_tickets": 128,
						"out": 0
					},
					"read": {
						"available": 128,
						"total_tickets": 128,
						"out": 0
					}
				}
			},
			"storage_engine": {
				"name": "wiredTiger"
			},
			"process": "mongod",
			"memory": {
				"mapped": {
					"mb": 0
				},
				"mapped_with_journal": {
					"mb": 0
				},
				"bits": 64,
				"resident": {
					"mb": 21
				},
				"virtual": {
					"mb": 1024
				}
			},
			"connections": {
				"total_created": 66310,
				"current": 11,
				"available": 51189
			},
			"extra_info": {
				"page_faults": 1197,
				"heap_usage": {}
			}
		}
	}
}