If you have an Atlas cluster configured with PrivateLink, the command line configuration recommended by Atlas does not work. For example, Atlas recommends the following mongostat command line options:
mongostat --uri mongodb+srv://admin:********@functionaltest.zq5bn.mongodb.net
This does not work. You get the following error message:
mongostat --uri mongodb+srv://admin:**********@functionaltest.zq5bn.mongodb.netmongostat 08-14T15:32:01.578-0400 could not connect to server: server selection error: server selection timeout, current topology: { Type: Single, Servers: [{ Addr: localhost:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : EOF }, ] }
The recommended connection string for mongotop does work:
mongotop --uri mongodb+srv://admin:<PASSWORD>@functionaltest.zq5bn.mongodb.net
- is duplicated by
-
TOOLS-2734 mongostat doesn't work with SRV URI
- Closed
- links to