Mongo DB
Current version: v0.0.1
Last updated
Was this helpful?
Current version: v0.0.1
Last updated
Was this helpful?
Onum supports integration with the Mongo Database server.
Select MongoDB from the list of Data sink types and click Configuration to start.
Now you need to specify how and where to send the data, and how to establish a connection with your email.
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 Sink. Hit the Enter
key after you define each tag.
Decide whether or not to include this Data sink info in the metrics and graphs of the Home area.
Now add the configuration to establish the connection.
Choose between the following options and fill in the fields that appear in order to authenticate your connection.
SRV Connection String*
Enter the Host URL to connect to a MongoDB cluster using DNS-based seedlists.
Log in to MongoDB
Choose the project that contains your cluster.
Click on the Clusters tab in the left-hand sidebar.
For the cluster you want to connect to, click the Connect button.
Select Connect your application for the connection method.
Copy the SRV Connection String:
mongodb+srv://:@cluster0.abcde.mongodb.net/myDatabase?retryWrites=true&w=majority
Replace username
and password
with your database credentials.
Replace myDatabase
with your target database name.
Standard Connection String*
A standard MongoDB connection string (non-SRV).
Log in to MongoDB Atlas.
Select your project and cluster.
Click the Connect button for your cluster.
Choose Connect your application.
Click I don’t have a driver or scroll down to find the standard connection string option.
You’ll see something like:
Replace:
<username>
and <password>
with your database credentials.
myDatabase
with your specific database name.
Port: enter the specific port to connect to.
Leave as None if no authentication is needed, or select from the following:
SCRAM-SHA-256
Username*
Password*
Auth database - This is the auth source;
the database where your credentials are stored e.g. mongodb://username:password@host:port/?authSource=admin
means “Use the admin
database to check this user’s credentials.”
SCRAM-SHA-1
Username*
Password*
Auth database - This is the auth source;
the database where your credentials are stored e.g. mongodb://username:password@host:port/?authSource=admin
means “Use the admin
database to check this user’s credentials.”
X.509
Client certificate*
Client private key*
CA cerificate*
Auth database - This is the auth source;
the database where your credentials are stored e.g. mongodb://username:password@host:port/?authSource=admin
means “Use the admin
database to check this user’s credentials.”
AWS IAM
Access key ID* -
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 * -
Under Access keys, you can see your Access Key IDs, but AWS will not show the Secret Access Key.
AWS session token -
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 database - This is the auth source;
the database where your credentials are stored e.g. mongodb://username:password@host:port/?authSource=admin
means “Use the admin
database to check this user’s credentials.”
Maximum pool size
Set a limit on the number of events per pool.
Minimum pool size
Set a minimum number of events per pool.
Maximum idle time (milliseconds)
Set a the maximum amount of milliseconds a request can be idle before being considered timed out.
Maximum simultaneous connections
Enter a maximum allowance for the number of simultaneous connections.
Bulk configuration
Toggle ON to enable bulk settings. The values will be filled in by default, however you can change them if needed.
Trigger conditions
Number of events* Enter a maximum for the number of events in a bulk.
Event time limit* Enter the number of seconds to wait before a bulk is triggered.
Max number of buffers*
Enter the maximum buffers that a system, application, or service is allowed to allocate or use for storing temporary data while processing it.
Ordered: toggle ON to send the buffers in order.
Bypass Document Validation
Toggle ON to allow MongoDB to skip any schema validation rules or constraints that would normally be enforced when inserting or updating a document.
Select Finish and see your Sink appear in the list of Datasinks.
Add the access key from your or create one. The Access Key ID is found in the IAM Dashboard of the AWS Management Console.
plaintextCopyEditmongodb://<username>:<password>@cluster0-shard-00-00.abcde.mongodb.net:27017,cluster0-shard-00-01.abcde.mongodb.net:27017,cluster0-shard-00-02.abcde.mongodb.net:27017/myDatabase?ssl=true&replicaSet=atlas-abcde-shard-0&authSource=admin&retryWrites=true&w=majority