Appearance
Forward data to MongoDB
MongoDB forwarding writes newly reported point records to an external database. The connection URI must include a database name, and the account needs write and required index permissions.
Configure the connection
A Manager or Owner can create a MongoDB profile under Organization → Data → Data Forwarding.
| Field | Value |
|---|---|
| MongoDB URI | Connection string including the database name and required authentication parameters |
| Collection | Collection name; used only when the platform administrator configures a fixed collection |
Example URI:
text
mongodb://USER:PASSWORD@HOST:27017/DATABASEReplace the example values and encode special characters in credentials as required by the URI format. Saved credentials are not displayed in plain text; follow the edit hint to retain or replace them.
Find the records
By default, data is written to a collection named after the organization slug in the database specified by the URI. In this mode the collection name entered in the form does not determine where data is written. If a platform administrator configures a fixed collection, the configured collection name is used instead. Confirm the connection mode before checking the collection.
Documents contain the point identifier, timestamp, value, and other reported fields. Additional fields can differ by source. Inspect newly written documents before building queries.
Verify writes
- Enable the profile and have a device report new data.
- Find new documents in the relevant collection in the target database.
- Check
agri_id, time, and value, and verify increasing sent counts. - Test a read using the time range needed by your reports.
No new documents
Check that the URI includes a database, the database is reachable from the cloud, and the account has write and index permissions. For authentication failures, check the authentication database and password encoding.
Use data export to download existing historical records. Adding a forwarding profile does not automatically import previous records into MongoDB.
