Connecting to MongoDB
The MongoDB connector allows users to visualize data stored in MongoDB sources. The Zoomdata Server supports MongoDB
MongoDB connector is enabled by default.
The table below lists information on the features that are supported by MongoDB:
|Supports Distinct Count?||Yes|
|Supports Live Mode/ Playback?||Yes|
|Supports Group-by Time?||Yes|
|Supports Multi Group-by Charts?||Yes|
|Supports Box Plot?||No|
|Custom SQL Capable?||No|
|Supports Last Value?||No|
CONFIGURING THE CONNECTION
For details about what is provided on each page of the connection process, review the article Source Connection Workflow. Depending on your needs, you can either follow the steps in order from start to finish or jump to a specific section in the connection process:
Log into Zoomdata.
Administrators and users with appropriate access privileges can connect data sources in Zoomdata.
Specify the name of your source and add a description (if desired).
- Click Next to continue to the next setup page.
This page defines the connection source for Zoomdata to be able to access the data source. If this is the first time setting up a connection, then you need to input the necessary credentials. If a validated connection already exists, you are given the option to use it.
- To create a new connection, select the Input New Credentials option.
- Enter a unique name for the connection (to help distinguish between other connections in this Zoomdata account).
Specify the following parameters:
Host(s) - If you want to connect to MongoDB replica set, specify the IP addresses/host names and port numbers separated by semi-colon (;) in the following format:
- DB Name
- Host(s) - If you want to connect to MongoDB replica set, specify the IP addresses/host names and port numbers separated by semi-colon (;) in the following format:
- If authentication has been set up, provide the username and password.
Click Validate .
If successfully validated, the connection is saved.
The Tables page lets you select the schema and data collection to connect with and provides a preview of the selected table. In addition, caching options and toggling the availability of the fields can be done on this page.
- Select the schema and then select the collection to connect to Zoomdata.
- Select the number of records to sample. That is, specify the number of records to define the data type.
- Toggle the caching options.
- Toggle the availability of the fields, as needed.
- Click Next to continue.
The Fields page lets you (1) configure attribute options, (2) create custom labels for the fields in your data source (that will be displayed in the charts), (3) manage the Volume metric, and (4) work with Calculations.
- Determine whether the field should be visible or not to the user.
- Create unique label names, as needed, for each Label field.
- For the Type column, you have the option to edit the field type (although usually you won't need to do this).
column, numeric and time-based fields may be edited:
- Numeric types including Money, Number and Integer - ability to select a default aggregation function
- Time fields - ability to define the default time pattern and granularity; if the time field provides granularities of hour, minute and second, then a time zone label may be applied
- Select fields for Distinct Counts as needed.
- Refresh the connection to a particular field, as desired.
- Configure Filter Display settings for fields.
- Edit the Volume Metric settings, as needed.
, if available and as needed.
If you are setting up a new connection, the Calculations section will not be available until after the connection is saved.
- Click Next to continue.
The Refresh page lets you schedule asynchronous jobs to update the source metadata. For guidance to set up a refresh schedule, refer to the article Using the Zoomdata Scheduler .
On the Charts page, you can:
- Edit Global Default Settings .
- Select the Standard and, if available, Custom chart styles to be used with the data source.
- Set default parameters (group, sub-group, colors, sorting, and so on) for each chart style.
Click Finish to save your changes. Once your data connection has been established, it is listed under the My Data Sources section of the page.