MongoDB – count current read/write operations

mongodbreplication

is it possible to count the current read or write operations on a mongodb replica set? (including all databases not just a single database)

Thank you!

Best regards

Best Answer

The serverStatus command contains operation counts, which report on database operations by type since the mongod instance last started.

If you need to find the number of operations over a specific time period, retrieve the serverStatus result periodically for comparison over time.