I'm new to MongoDB and need some help to understand how profiler works with replication in Mongo.
I have a replica set with three instances and the secondaries are used for read only by the application. When I try to profile by connecting to the cluster it only returns commands issued on the primary. How can I get all commands, especially the ones which were executed on the secondaries replica set?