MongoDB (Replica Set)
If you need help adding a datasource, follow the main guide Add a Datasource. The following fields and configuration information are specific to this datasource type:
- (Required) Enter the Hostname (which must be accessible to a gateway or relay).
- (Required) Type in the name of the Authentication Database. This is the database that MongoDB users authenticate against, not the database to which you are granting access. In this example, it is 'sdmdb'; the MongoDB default is 'admin'.
- (Required) Type in the Username that the relay will use to connect to the database, and the Password.
- (Required) Enter the name of the Replica Set here. You can get this name from the WebUI, or your shard prefix.
- (Optional) If your MongoDB database is configured to require TLS, you can enable our driver to use a TLS connection with the 'TLS Required?' checkbox. (Again, if your Replica Set is hosted in MongoDB Atlas, you must check the TLS box.)
- (Optional) If you would like SDM to connect to a secondary (read-only) replica, you can do so with this checkbox.
If any errors occur, please copy them into an email and send to firstname.lastname@example.org.