Ensure that Amazon DocumentDB clusters have profiler feature enabled.
Enabling the Profiler for your Amazon DocumentDB clusters helps to monitor and log database operations. This makes it easier to identify slowest operations on cluster and fix performance issues by analyzing detailed logs in Amazon CloudWatch.
Modify DocumentDB cluster and enable profiler feature.