Raw
1 import { InlineIcon, getOsShortcut, Kbd } from "docs-ui"
2 import { ArrowDownTray } from "@medusajs/icons"
3
4 export const metadata = {
5 title: `Usage`,
6 }
7
8 # {metadata.title}
9
10 In this guide, you'll learn how to monitor your Cloud organization's standard and Flex Usage.
11
12 ## View Usage on Cloud
13
14 In your organization's settings, you can view your current plan and usage limits. These usage limits depend on the plan your organization is on, and are applied across all projects within the organization.
15
16 <Note>
17
18 Organizations on the Enterprise plan don't have usage limits, and therefore don't have a **Usage** item in the sidebar.
19
20 </Note>
21
22 To view your organization's usage:
23
24 <Note title="Tip">
25
26 You can also navigate to an organization's usage from the [command palette](../command-palette/page.mdx). Press <Kbd>{getOsShortcut()}</Kbd> + <Kbd>K</Kbd> and select **Usage**.
27
28 </Note>
29
30 1. Make sure you're viewing the [correct organization's dashboard in Cloud](../organizations/page.mdx#switch-organization).
31 2. Click **Usage** in the sidebar to open the organization's usage settings.
32
33 In the Usage settings, you'll find a table with the list of resources your organization is using, along with their current usage levels and limits based on your plan.
34
35 ### Usage Metrics Definitions
36
37 The following metrics are tracked and billed as part of your Cloud usage:
38
39 - **Data Transfer**: The data that flows in and out of your Medusa server each month, including API responses to your storefront, Admin Dashboard traffic, webhook calls, and external service communications.
40 - **Server Transfer**: The data transferred between internal services within your Cloud environment each month, such as between data between the Medusa application and your database.
41 - **Compute**: The CPU and memory resources used to run your Medusa applications and background processes, measured in compute units per hour.
42 - **Object Storage**: The amount of file storage space used for assets like product images, documents, and other media files, measured in gigabytes (GB).
43 - **Database Storage**: The disk space used by your database to store your commerce data, including products, orders, customers, and other business data, measured in gigabytes (GB).
44 - **Redis Storage**: The disk space used by Redis to store your application's cache and session data, measured in gigabytes (GB).
45 - **Build Minutes**: The time taken to build your Medusa applications during deployments, measured in minutes.
46 - **Emails**: The number of emails sent from your Medusa applications, including order confirmations, password resets, and marketing emails.
47 - **Freetext search requests**: Keyword search requests your Medusa applications make with [Medusa Search](../search/page.mdx).
48 - **Vector search requests**: [semantic search](../search/semantic-search/page.mdx) requests your Medusa applications make with [Medusa Search](../search/page.mdx).
49 - **Storefront Requests**: The number of requests made to your storefront. Every page load or API call to your storefront counts as a request.
50 - **Webhooks**: The number of webhook event deliveries sent from your organization to your configured endpoint.
51
52 ### Usage Table Allowance Breakdown
53
54 When you view a single billing cycle and your organization has [credits](#view-organization-credits) for a metric, the quantity column of the usage table shows a second line that breaks down the metric's allowance into the portion from your plan and the portion from your credits. For example, `500 from plan + 100 from credits`.
55
56 ---
57
58 ## View Organization Credits
59
60 Credits add to your plan's allowance for a specific feature, reducing the usage that counts as [Flex Usage](#what-is-flex-usage).
61
62 If your organization has credits, the Usage settings show a **Credits** section above the usage charts.
63
64 ### Credits Table Columns
65
66 The **Credits** section has a table listing each credit with the following columns:
67
68 - **Feature**: The name of the feature that the credit applies to, along with the date the credit became active.
69 - **Type**: The credit's type, such as subscription or one-time.
70 - **Status**: The credit's status:
71 - Green: The credit is active.
72 - Orange: The credit expires within 14 days.
73 - Grey: The credit is used up or expired.
74 - **Balance**:
75 - For subscription credits, the allowance the credit provides in each billing cycle. Cloud doesn't track the consumption of subscription credits individually.
76 - For other credits, the used and remaining balance, if any.
77 - **Expires**:
78 - For subscription credits, **Renews each cycle**.
79 - For credits without an expiration date, **Never expires**.
80 - For other credits, the expiration date and the relative time until it, such as "in 3 days".
81
82 ### Show Expired Credits
83
84 If at least one of your organization's credits has expired, the **Credits** section shows a **Show expired** toggle. Enable the toggle to include expired credits in the table.
85
86 ---
87
88 ## What is Flex Usage?
89
90 Your organization has a set of usage limits based on its current [plan](../pricing/page.mdx). These usage limits are applied across all projects within the organization.
91
92 Usage that exceeds the limits of your plan is considered Flex Usage. For example, if your plan allows for 100GB data transfer, any usage beyond that limit would be classified as Flex Usage.
93
94 To learn how your Flex Usage is billed, refer to the [Billing](../billing/page.mdx) guide.
95
96 ### Monitor Flex Usage
97
98 You can view additional Flex Usage for each resource and its charge in the [usage table](#view-usage-on-cloud). For each resource, the table has the following columns useful for monitoring Flex Usage:
99
100 - **Flex**: The amount of usage beyond your plan limits. For example, the additional data transfer amount.
101 - **Charge**: The cost associated with the Flex Usage.
102
103 If you have Flex Usage, you can also see the flex charges visualized in the chart above the table.
104
105 If your organization has [credits](#view-organization-credits), the flex charges chart also shows the usage that your credits covered as a yellow segment stacked on top of each day's charges. Hover over a day to see its **Credited** amount in the tooltip.
106
107 ### Usage Chart Per Resource
108
109 In the "Billable metrics" section of the Usage settings, you can view a chart for each resource showing your usage over time with forecasted usage. For example, you can view the usage chart for data transfer, Compute, object storage, etc...
110
111 #### Usage Chart Types
112
113 At the top of the "Billable metrics" section, you can find a "Cumulative" toggle. When enabled, the charts will display cumulative usage over time. When disabled, the charts will show daily usage.
114
115 Cumulative usage helps you understand the total usage up to a specific date, while daily usage provides insights into your usage patterns on a day-to-day basis.
116
117 ![Cumulative usage toggle in the Billable metrics section](https://res.cloudinary.com/dza7lstvk/image/upload/v1765976513/Cloud/CleanShot_2025-12-17_at_15.01.07_2x_aimjwh.png)
118
119 #### Understanding the Charts
120
121 In each chart, there are two line types:
122
123 1. Green lines: Represent your actual usage for the resource over time. This is the usage that has already occurred.
124 2. Grey lines: Represent the forecasted usage for the resource. This is an estimate of your future usage based on historical data.
125
126 There's also a horizontal orange dashed line indicating your plan's usage limit for that resource. If your actual usage (green line) exceeds this limit, the excess is considered Flex Usage.
127
128 If your organization has [credits](#view-organization-credits) for a resource, the cumulative chart of that resource also shows a yellow dashed line indicating the combined allowance of your plan and credits. In this case, the chart's tooltip shows the plan's allowance and the combined allowance separately, along with the **Credited** quantity.
129
130 ![Usage chart showing actual and forecasted usage with plan limit](https://res.cloudinary.com/dza7lstvk/image/upload/v1765976514/Cloud/CleanShot_2025-12-17_at_15.01.21_2x_upehmd.png)
131
132 ---
133
134 ## Download Cloud Usage Report
135
136 To download your organization's usage as a JSON file:
137
138 1. Make sure you're viewing the [correct organization's dashboard in Cloud](../organizations/page.mdx#switch-organization).
139 2. Click **Usage** in the sidebar to open the organization's usage settings.
140 3. Click the <InlineIcon Icon={ArrowDownTray} alt="download" /> button at the top right.
141
142 The JSON file will be downloaded automatically.
143
144 ---
145
146 ## View Usage for Different Date Ranges
147
148 By default, the usage table and Flex Usage chart show data for the current billing cycle on Cloud.
149
150 To view usage for a different billing cycle, click on the "Current billing cycle" dropdown at the top of the Usage settings. You can then select the previous billing cycle, or a custom date range.
151
152 After making your selection, the usage table will update automatically after a few seconds.
153
154 ![Usage table updated for different billing cycle](https://res.cloudinary.com/dza7lstvk/image/upload/v1755266925/Cloud/CleanShot_2025-08-15_at_17.07.47_2x_ieqxwi.png)
155
156 ---
157
158 ## Filter Usage by Project
159
160 You can filter usage data by project using the project dropdown at the top of the Usage settings. The dropdown lists all projects in your organization, including deleted ones. Deleted projects appear with a **Deleted** badge next to their name, and active projects are sorted before deleted ones.
161
162 To filter usage by a specific project:
163
164 1. Make sure you're viewing the [correct organization's dashboard in Cloud](../organizations/page.mdx#switch-organization).
165 2. Click **Usage** in the sidebar to open the organization's usage settings.
166 3. Click the "all projects" filter dropdown.
167 4. Select the project whose usage you want to view, including deleted projects if needed.
168
169 The usage table and charts update to show data only for the selected project.