MongoDB plugin
Query any MongoDB-compatible database.
Hybrid plugin
The MongoDB plugin is a "hybrid" plugin, meaning it is available in SquaredUp as both a cloud and an on-prem plugin.
- Use the cloud plugin if your MongoDB instance is publicly accessible. You do not need to configure a relay agent.
- Use the on-prem plugin to access a MongoDB instance that is on a private network. You will need to configure a relay agent before you configure the MongoDB on-prem plugin.
An on-prem data source uses a relay agent to connect SquaredUp to a data source running on your internal network.
A relay agent is installed on a server on your internal network, and has access to your data source.
Using a relay agent means that you don't need to open your firewall to allow access.
Adding a data source
To add a data source click on the + next to Data Sources on the left-hand menu in SquaredUp. Search for the data source and click on it to open the Configure data source page.
Before you start
Connection credentials
To connect to a MongoDB database you will need the following:
- Connection string: This is a URI used to connect SquaredUp to your MongoDB database. For more information on MongoDB connection strings, see the MongoDB documentation.
- Username and password: The credentials of a MongoDB user with
read
access to the collections you want to query data for.
Connection whitelisting
If you are connecting to a MongoDB Atlas instance, the following IP addresses must be whitelisted (depending on your region). See the MongoDB Atlas documentation:
- US:
52.20.146.185, 34.198.107.84
- Europe:
34.248.251.213, 54.73.229.191
Configuring the data source
Display name:
Enter a name for your data source. This helps you to identify this data source in the list of your data sources.- Connection string:
This must include the database name and resemble the format ofmongodb://<server>/<DATABASE>
. For more information on MongoDB connection strings, see the MongoDB documentation.To keep your password secure, the authentication credentials should be specified separately using the Username and Password fields.
- Username:
Enter the username of your MongoDB user. - Password:
Enter the password of your MongoDB Username. (Optional) Restrict access to this data source:
You can enable this option if you only want certain users or groups to have access to the data source, or the permission to link it to new workspaces. See data source access control for more information.Click Test and add to validate the data source configuration. SquaredUp will now attempt to connect to SquaredUp using the provided authentication method.
- Testing passed – a success message will be displayed and then the configuration will be saved.
- Testing passed with warnings – warnings will be listed and potential fixes suggested. You can still use the data source with warnings. Select Save with warnings if you believe that you can still use the data source as required with the warnings listed. Alternatively, address the issues listed and then select Rerun tests to validate the data source configuration again. If the validation now passes, click Save.
- Testing Failed – errors will be listed and potential fixes suggested. You cannot use the data source with errors. You are able to select Save with errors if you believe that a system outside of SquaredUp is causing the error that you need to fix. Alternatively, address the issues listed and then select Rerun tests to validate the data source configuration again. If the validation now passes, click Save.
You can edit any data source configurations at any time from Settings > Data Sources.
Next steps
Once you have successfully added the data source, you can create dashboards and visualize your data using MongoDB queries.
Configurable data streams
The following data streams installed with this plugin have configurable Parameters.