Skip to main content

Work with MongoDB data

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

Mongo 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.

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 labels

DoiT TermMongoDB TermDescription
Billing Account Nameorganization.idUnique identifier that identifies the MongoDB Atlas organization.
Project Account IDline_item.groupId
  • MongoDB groups are projects. A unique identifier that identifies the MongoDB Atlas project (Group).
  • Unique identifier of a nested project.
Project Account Nameline_item.groupNameThe name of the MongodDB project.
SKU Descriptionsku_descriptionDescription of a MongoDB Atlas resource, for example, M1 - AWS- US_EAST_1
SKU IDsku_idUnique identifier of a MongoDB Atlas resource.
Usage Date Timeline_item.startDateTimestamp of when usage occurred.
Usage Start TimelineItem.startDateStart time of the billing period for the usage.
Usage End Timeline_item.endDateEnd time of the billing period for the usage.
Usage Amount in pricing unitsline_item.quantityThe pricing unit, depending on the MongoDB service you are using.
Costline_item.totalPriceCents / 100The final cost amount in billing currency (after discounts/credits), in dollars.
Usageline_item.startDateThe cost depending on the MongoDB category, for example, compute, storage, data transfer, and so on.
USDcurrency_codeISO currency code for the costs.
Usage Amountline_item.quantityQuantity of resource usage, for example, hours, or GB.
Unitline_item.unitUnit of measure for the usage amount.
Export Timeline_item.startDateThe duration of the time it takes to complete a data export from a MongoDB database.
Report Costline_item.totalPriceCents / 100The costs associated with running MongoDB reports.
Report Usageline_item.quantityThe amount of compute, storage, and data transfer resources consumed when running reports.
Resource IDline_item.clusterNameA unique identifier for a MongoDB resource.

System labels

The MongoDB integration has a mongodb/environment system label that you can use in Cloud Analytics. The mongodb/environment is the name of your MongoDB environment, for example, development, testing, staging, and so on.