Surrender
Surrender

Reputation: 1

Find update query execution count for last 24 hours in mongo db collections

Find update query execution count for last 24 hours in mongo db collections how to fire up query to find out how many times update query has been executed last 24 hours on the mongodb collections?

Upvotes: 0

Views: 180

Answers (1)

Joe
Joe

Reputation: 28356

The response from the serverStatus command include opcounters.update, which is:

The total number of update operations received since the mongod instance last started.

If you query that periodically, you can calculate how many updates operations occurred during each period.

Upvotes: 1

Related Questions