Usage
What is metered, how readings are collected and added up, and where to see usage for an organization and for one database.
Usage is what your databases consumed, as their clusters report it. It is shown for the organization as a whole, per database, and over time.
What is metered
Usage is measured per database, by meter. Each meter is either a counter, whose readings add up, or a gauge, where the highest reading counts.
| Meter | ID | Unit | Kind | What it measures |
|---|---|---|---|---|
| Storage | stored_bytes | bytes | Gauge | The largest size the database had |
| Connection time | session_seconds | seconds | Counter | Time that sessions were connected |
| Writes | commits | transactions | Counter | Committed transactions |
The management API returns the meters with every usage response. Treat that list as the authority: read meter IDs from it rather than assuming these three.
A database nobody is connected to adds no connection time and no writes.
The databases' clusters do not report these three meters yet, so their figures are zero and no storage reading is shown. What the clusters do measure is collected and kept, but it is not counted towards these meters.
How readings are collected
Clusters report usage, and the control plane collects it and rolls up what a meter counts per database, per meter and per hour. Because readings are collected, usage trails what happened, and the figures of the hour in progress keep changing until it is over.
All periods are in UTC.
Usage figures are what the clusters metered, and they trail what happened. They are not an invoice.
The organization's usage
The organization's Usage page shows the current calendar month:
- Plan: the organization's plan, and whether it is hard-capped.
- This month: each meter's total, and how much of it the plan includes, if it includes any.
- Last 30 days: each day's total across the organization's databases.
- By database: each meter per database.
Across databases, counters are summed. Storage counts each database's highest reading of the month, added up across databases.
Any member can read usage. From the management API it is GET /v1/usage, with an API key for the whole organization: see usage in the API.
Included usage and hard caps
A plan can include an amount of a meter per month. The Usage page shows a meter's usage against what is included, and the API returns it as the meter's included, which is null when the plan includes none.
A plan is also marked as hard-capped or not, which the API returns as plan.isHardCapped. The Usage page shows a Hard caps badge for a plan that is. The mark is part of the plan's description; the figures on this page are reported, not enforced.
The advisor warns when a meter reaches 80% of what the plan includes.
A database's activity
A database's usage over time is shown in two places:
- The Activity card on its Overview: one meter at a time, with its total or peak.
- Its Monitoring page: one chart per meter.
Both let you choose how far back to look:
| Window | Buckets |
|---|---|
| 24 hours | One per hour |
| 7 days | One per day |
| 30 days | One per day |
For a counter, a bucket holds the sum and the headline figure is the total over the window. For storage, a bucket holds its highest reading and the headline is the peak, shown with the latest reading and when it was taken. A bucket in which storage reported nothing is drawn as a gap, not as zero.
From the management API it is GET /v1/databases/{databaseId}/activity?window=24h, which a key scoped to that database can call.
The Activity card on a database's Overview is about usage. The Activity page in a database's sidebar is its part of the audit log: who changed what.
What is not shown
A database's Monitoring page lists what its cluster does not report to the dashboard: confirmation latency, open sessions, refused requests and the number of documents. For those, measure from your application.
Document content is never part of usage. Figures are counts and sizes.