Include "$ownOps": true when finding long running queries

Markus Halttunen shared this idea 4 years ago
Completed

You already have a template for finding "stuck" queries that have been running for a long time. Non-admin users may not have the right to use it. MongoDB supports adding "$ownOps": true to find your own queries only which is allowed for anybody. This is the most common use case.

Please add this option to the template, either as a default or at least as commented out.

Replies (1)

photo
1

I want to confirm first, do you mean the currentOp code template?

photo
1

Correct. The one whose comment is "returns information on all active operations for database db1 that have been running longer than 3 seconds"

photo
1

Resolved in 7.0

photo
Leave a Comment
 
Attach a file