mirror of
https://github.com/supabase/supabase.git
synced 2026-06-08 02:25:04 +08:00
136 lines
4.4 KiB
Plaintext
136 lines
4.4 KiB
Plaintext
---
|
|
id: 'manage-usage-monthly-active-users'
|
|
title: 'Manage Monthly Active Users usage'
|
|
---
|
|
|
|
## What you are charged for
|
|
|
|
You are charged for the number of distinct users who log in or refresh their token during the billing cycle (including Social Login with e.g. Google, Facebook, GitHub). Each unique user is counted only once per billing cycle, regardless of how many times they authenticate. These users are referred to as "MAUs".
|
|
|
|
### Example
|
|
|
|
Your billing cycle runs from January 1 to January 31. Although User-1 was signed in multiple times, they are counted as a single MAU for this billing cycle.
|
|
|
|
<StepHikeCompact>
|
|
<StepHikeCompact.Step step={1}>
|
|
<StepHikeCompact.Details title="Sign User-1 in on January 3" fullWidth>
|
|
The MAU count increases from 0 to 1.
|
|
|
|
```javascript
|
|
const {data, error} = await supabase.auth.signInWithPassword({
|
|
email: 'user-1@email.com',
|
|
password: 'example-password-1',
|
|
})
|
|
```
|
|
</StepHikeCompact.Details>
|
|
|
|
</StepHikeCompact.Step>
|
|
|
|
{' '}
|
|
|
|
<StepHikeCompact.Step step={2}>
|
|
<StepHikeCompact.Details title="Sign User-1 out on January 4" fullWidth>
|
|
```javascript const {error} = await supabase.auth.signOut() ```
|
|
</StepHikeCompact.Details>
|
|
</StepHikeCompact.Step>
|
|
|
|
<StepHikeCompact.Step step={3}>
|
|
<StepHikeCompact.Details title="Sign User-1 in again on January 17" fullWidth>
|
|
The MAU count remains 1.
|
|
|
|
```javascript
|
|
const {data, error} = await supabase.auth.signInWithPassword({
|
|
email: 'user-1@email.com',
|
|
password: 'example-password-1',
|
|
})
|
|
```
|
|
</StepHikeCompact.Details>
|
|
|
|
</StepHikeCompact.Step>
|
|
</StepHikeCompact>
|
|
|
|
## How charges are calculated
|
|
|
|
You are charged by MAU.
|
|
|
|
### Usage on your invoice
|
|
|
|
Usage is shown as "Monthly Active Users" on your invoice.
|
|
|
|
## Pricing
|
|
|
|
<$Partial path="billing/pricing/pricing_mau.mdx" />
|
|
|
|
<Admonition type="note">
|
|
|
|
The count resets at the start of each billing cycle.
|
|
|
|
</Admonition>
|
|
|
|
| Plan | Quota | Over-Usage |
|
|
| ---------- | ------- | --------------------------------- |
|
|
| Free | 50,000 | - |
|
|
| Pro | 100,000 | <Price price="0.00325" /> per MAU |
|
|
| Team | 100,000 | <Price price="0.00325" /> per MAU |
|
|
| Enterprise | Custom | Custom |
|
|
|
|
## Billing examples
|
|
|
|
### Within quota
|
|
|
|
The organization's MAU usage for the billing cycle is within the quota, so no charges apply.
|
|
|
|
| Line Item | Units | Costs |
|
|
| -------------------- | ---------- | ------------------------ |
|
|
| Pro Plan | 1 | <Price price="25" /> |
|
|
| Compute Hours Small | 730 hours | <Price price="15" /> |
|
|
| Monthly Active Users | 23,000 MAU | <Price price="0" /> |
|
|
| **Subtotal** | | **<Price price="40" />** |
|
|
| Compute Credits | | -<Price price="10" /> |
|
|
| **Total** | | **<Price price="30" />** |
|
|
|
|
### Exceeding quota
|
|
|
|
The organization's MAU usage for the billing cycle exceeds the quota by 60,000, incurring charges for this additional usage.
|
|
|
|
| Line Item | Units | Costs |
|
|
| -------------------- | ----------- | ------------------------- |
|
|
| Pro Plan | 1 | <Price price="25" /> |
|
|
| Compute Hours Small | 730 hours | <Price price="15" /> |
|
|
| Monthly Active Users | 160,000 MAU | <Price price="195" /> |
|
|
| **Subtotal** | | **<Price price="235" />** |
|
|
| Compute Credits | | -<Price price="10" /> |
|
|
| **Total** | | **<Price price="225" />** |
|
|
|
|
## View usage
|
|
|
|
You can view Monthly Active Users usage on the [organization's usage page](/dashboard/org/_/usage). The page shows the usage of all projects by default. To view the usage for a specific project, select it from the dropdown. You can also select a different time period.
|
|
|
|
<Image
|
|
alt="Usage page navigation bar"
|
|
src={{
|
|
light: '/docs/img/guides/platform/usage-navbar--light.png',
|
|
dark: '/docs/img/guides/platform/usage-navbar--dark.png',
|
|
}}
|
|
|
|
width={1546}
|
|
height={208}
|
|
/>
|
|
|
|
In the Monthly Active Users section, you can see the usage for the selected time period.
|
|
|
|
<Image
|
|
alt="Usage page Monthly Active Users section"
|
|
src={{
|
|
light: '/docs/img/guides/platform/usage-mau--light.png',
|
|
dark: '/docs/img/guides/platform/usage-mau--dark.png',
|
|
}}
|
|
|
|
width={2040}
|
|
height={878}
|
|
/>
|
|
|
|
## Exceeding Quotas
|
|
|
|
<$Partial path="billing/exceeding_usage_quotas.mdx" />
|