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

Markus Halttunen shared this idea 3 months ago
Planned

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.

Comments (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