MongoDB
Most recent version: v0.0.1


Overview
Onum supports integration with MongoDB.
MongoDB is a document database used to build highly available and scalable internet applications. Instead of using tables, as in a traditional relational database, MongoDB stores data in JSON documents organized into collections.
Select MongoDB from the list of Data sink types and click Configuration to start.
Data sink configuration
Now you need to specify how and where to send the data, and how to establish a connection with Devo.
Metadata
Enter the basic information for the new Data sink.
Name*
Enter a name for the new Data sink.
Description
Optionally, enter a description for the Data sink.
Tags
Add tags to easily identify your Data sink. Hit the Enter
key after you define each tag.


Metrics display
Decide whether or not to include this Data sink info in the metrics and graphs of the Home area.


Configuration
Now add the configuration to establish the connection.
Authentication Method
Select one of the following options and complete the fields that appear to authenticate your connection:


Authentication configuration
Choose your required authentication Type* from the dropdown menu. Leave as None if no authentication is needed, or select from the following:
SCRAM-SHA-256
Username* - Enter your required username.
Password* - Add your password from your Secrets or create one.
Auth source - This is the database where your credentials are stored. For example:
mongodb://username:password@host:port/?authSource=admin
SCRAM-SHA-1
Username* - Enter your required username.
Password* - Add your password from your Secrets or create one.
Auth source - This is the database where your credentials are stored. For example:
mongodb://username:password@host:port/?authSource=admin
x.509
Client certificate* - Add your client certificate from your Secrets or create one.
Client private key* - Add your private key from your Secrets or create one.
CA certificate* - Add your CA certificate from your Secrets or create one.
Auth source - This is the database where your credentials are stored. For example:
mongodb://username:password@host:port/?authSource=admin
AWS IAM
Access key ID* - Add the access key ID from your Secrets or create one. The Access Key ID is found in the IAM Dashboard of the AWS Management Console. To get it:
In the left panel, click on Users.
Select your IAM user.
Under the Security Credentials tab, scroll to Access Keys, and you will find existing Access Key IDs (but not the secret access key).
Access key* - Add the access key from your Secrets or create one. Under Access keys, you can see your Access Key IDs, but AWS will not show the Secret Access Key.
AWS session token - Add the AWS token from your Secrets or create one. To get it:
Log in to the AWS Management Console via IAM Identity Center.
Click your username in the top-right corner and choose Command line or programmatic access.
Auth source - This is the database where your credentials are stored. For example:
mongodb://username:password@host:port/?authSource=admin


Connection pool
Max pool size
Set a limit on the number of events per pool. The minimum value is 0
and the maximum value is 10000
. The default value is 100
.
Min pool size
Set a minimum number of events per pool. The minimum value is 1
and the maximum value is 10000
. The default value is 10
.
Max idle time
Set the maximum amount of milliseconds a request can be idle before being considered timed out. The minimum value is 0
and the maximum value is 300000
. The default value is 30000
.
Max simultaneous connections
Enter a maximum allowance for the number of simultaneous connections. The minimum value is 1
and the maximum value is 1000
. The default value is 100
.


Advanced Configuration


Click Finish when complete. Your new Data sink will appear in the Data sinks area list.
Pipeline configuration
When it comes to using this Data sink in a Pipeline, you must configure the following output parameters. To do it, simply click the Data sink on the canvas and select Configuration.
Output configuration
Database*
Choose the input field that contains the name of the database you want to write to.
Collection*
Choose the input field that contains the name of the collection you want to write to.
Data*
Choose the input field that contains the data to be sent to MongoDB.


Click Save to save your configuration.
Last updated
Was this helpful?