Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Created by Guest
Created on Aug 11, 2020

Publish statistics in Atlas to analyze what is filling oplog

It would be very useful to be able to see metrics/statistics about the contents of oplog. There are open-source tools like oplog analyzer (https://github.com/mhelmstetter/oplog-analyzer) that can be used, but it's a hassle to have to install it and run it in the same datacenter where the database is running (for performance). The statistics I'm most interested is what collections have most oplog documents, what kind of operations they have been and what is the total size that each collection currently utilizes from the oplog. This will help improving code to use less oplog. We've seen cases where bad code that always reads the whole document, adds something to e.g. an array and then saves the whole document again, causing huge amounts of oplog and causing constant pressure on making the oplog bigger, thus making the whole DB size bigger.
  • Guest
    Jun 21, 2023
    We'd love to see this implemented.
  • Guest
    Aug 12, 2020
    This is a great idea, Kai. In the iterim, Is there anyway you can use the Profiler to see load by collection to infer what the oplog weight ought to be?