MongoDB Adapter

Connection Requirements

1

IP

IP address of the MongoDB host.

2

Port

Port number (optional, default: 27017).

3

Connection String

Only required when using MongoDB Atlas.

circle-info

Provide the full connection string as given by the Atlas dashboard (starting with mongodb+srv://). For local MongoDB instances, leave this field empty and use host, database, and authentication parameters instead.

4

Database

Name of the MongoDB database to connect to.

5

Authentication database

The database in which the MongoDB user is created. This is used as the authSource during authentication.

6

Username

Username for authenticating with the MongoDB instance.

7

Password

Password for the provided username. Used during authentication.

8

View Name

Name of the MongoDB view to retrieve data from. (optional)

circle-info

View OctoXLabs needs a for integration. In this view, the name of the column with the hostname must be Hostname. You can add the remaining fields as you wish.

9

Custom query

The custom query field for MongoDB. (optional).

Example:

example.json
{ "hostname": { "$in": ["server1.example.com"] } }
10

Collection Name

The name of the MongoDB collection to query. (required).

Example: servers

circle-exclamation

Was this helpful?