Hello, I need to know how to consult the number of connections in my secondary nodes from the primary node, I have a replica set composed of 3 nodes (one primary node and two secondary nodes), the development colleagues need to consult the databases but it is necessary guarantee that certain reads are performed on secondary nodes only (Read Preference:secondary), how can I know if connections from development users are reaching my secondary nodes? I would need to show the IP or some element that indicates that the origin of the connection is from the development colleagues,
Greetings!
Why you want to know this? if those dev users are using secondary as read preference, they will read from a secondary node. (assume mongdb has no bug in this logic).
If you use Altas you can monitore the secondary cluster
Disk query depth metrics