Skip to main content

Work with MongoDB data

Once you've imported your MongoDB Atlas data into the DoiT platform, you can start analyzing and monitoring your MongoDB Atlas cost and usage. Data is tracked and reported on an hourly basis.

MongoDB Atlas API​

The DoiT console interacts with the MongoDB Atlas APIs.

APIDescription
AuthenticationAccess token for MongoDB Atlas APIs.
Return all organizationsReturns all organizations to which the requesting Service Account or API Key has access.
Returns all invoices for one organizationReturns all invoices that MongoDB issued to the specified organization. This list includes all invoices regardless of invoice status.
Return one invoice for one organizationReturns one invoice that MongoDB issued to the specified organization.

The required permissions are granted when you create a service account for the DoiT connector.

MongoDB data in Cloud Analytics​

You can get MongoDB data through dimensions and metrics. See below for the mapping between the DoiT and MongoDB terminologies.

Note

In MongoDB Atlas, groups and projects are synonymous terms meaning logical containers for clusters, teams, and settings. Atlas API endpoints exclusively use group in paths, while Atlas UI mainly uses Project. A group ID and a project ID are the same thing.

See MongoDB's official documentation for further explanation.

Basic metrics​

DoiT term
MongoDB termDescription
costcostThe billing data for MongoDB Atlas organizations using MongoDB Atlas Cost Explorer APIs.
usageusageThe usage data for MongoDB Atlas organizations using MongoDB Atlas Cost Explorer APIs.

Standard dimensions​

DoiT TermMongoDB TermDescription
Billing Accountorganization.idA unique identifier for a MongoDB Atlas organization.
Project/Account IDlineItems.groupIdA unique identifier for a MongoDB Atlas project (also called group in the Atlas API terms).
Project/Account NamelineItems.groupNameThe human-readable name of the MongoDB Atlas project.
Resource, Resource IDlineItems.clusterNameThe name of the MongoDB cluster.
SKU, SKU IDlineItems.skuA human-readable description of MongoDB services used, for example, instance type, backup download, data transfer, or another service. Usually written in all caps, like ATLAS_AWS_INSTANCE_M80_LOW_CPU.
Service, Service IDlineItems.skuA high-level service category for SKUs, for example, Backup, Clusters, Data Transfer, Premium Features.
Cost Typecost_typeThe type of cost. Always Usage for MongoDB.
UnitlineItems.unitThe unit of measure for the usage amount, for example, hours, server hours, GB, or GB days.

System labels​

All MongoDB Atlas resource tags are automatically pulled and available as system labels in Cloud Analytics. You can use these labels to organize and filter your data when building reports or allocations.

Each tag appears with the mongodb/ prefix followed by the tag key. For example, if you have a tag called environment, it appears as mongodb/environment.