The ScaleGrid Console Developer Hub

Welcome to the ScaleGrid Console developer hub. You'll find comprehensive guides and documentation to help you start working with ScaleGrid Console as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Connecting to MongoDB

ScaleGrid MongoDB clusters are available with and without SSL enabled. In either case, you can easily connect to them using your connection string provided on your Cluster Details page.

Click the copy button next to the connection string box to copy the connection string. Please note that you still need to fill in the password placeholder field that you can find above in the Credentials area.

Click the Show button to show your cluster credentials

Click the Show button to show your cluster credentials

Here's where you find your connection string on the Cluster Details page

Here's where you find your connection string on the Cluster Details page

The connection string is built in the following format:

mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]

For more details on connection strings in MongoDB, check out their official documentation.

Here is an example of a connection string for a replica set without SSL enabled.

mongodb://admin:<password>@SG-Prod001-261.devservers.scalegrid.io:27017,SG-Prod001-260.devservers.scalegrid.io:27017/admin?replicaSet=RS-Prod001-0

Connecting to SSL Enabled Clusters

ScaleGrid MongoDB SSL enabled clusters can be identified by the SSL icon on the overview tab of the cluster details page:

Our MongoDB clusters are configured with self-signed certificates by default. The SSL CA certificate is available for download on the overview page.

Most MongoDB drivers will provide an option to specify a CA certificate file. You can download the file from the ScaleGrid console and store it on your application servers. If your driver doesn't provide an option to specify the CA cert file, attempts to establish SSL connections to a MongoDB server with self signed certificates might fail. In order to fix this look for an option that lets you disable certificate validation on your driver/platform.

SSL Connection Examples:

  1. Node.js

Connecting to MongoDB


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.