Monitor billing and usage
Monitor billing and usage metrics for your account and projects from the console or API
Neon exposes usage metrics in the Neon Console and through the Neon API. These metrics can answer questions like:
- What's my current bill?
- How much storage am I using?
- How many compute hours have I used?
- How many projects do I have?
- How many branches do I have?
View usage metrics in the Neon Console
Usage metrics in the console can be found on the Billing page, the Project Dashboard, and the Branches page.
Billing page
You can monitor billing and usage for all projects in your Neon account from the Billing page in the Neon Console.
- Navigate to the Neon Console.
- Select your Profile.
- Select Billing from the menu.
Here you will find the current bill and total usage for all projects in your Neon account.
Usage metrics on the Billing page include:
- Storage: Storage is the total volume of data and history stored in Neon, measured in gigabyte months (GB-month). Data is your logical data size. History is your data’s change history that is used to enable branching-related features, which you can configure for each project via the history retention setting. The displayed storage value reflects your current usage.
- Compute: The total number of compute hours used during the current billing period. Compute usage is reset to zero at the beginning of each month. The monthly compute hour allowance differs by plan.
- Branch compute: The total number of compute hours used by non-default branches during the current billing period. Compute usage is reset to zero at the beginning of each month. This metric only applies to the Free Plan.
- Archive storage: The total number of gigabyte-months (GB-month) used for archived branches. The displayed storage value reflects your current usage.
- Projects: Number of projects currently active in your account. The displayed value reflects your current usage, including any extra projects that have been automatically added as a result of exceeding your plan allowance.
- Data transfer The total volume of data transferred out of Neon (egress). Neon does not charge for egress data, but there is an allowance of 5 GB per month for Free Plan users. For all other plans, Neon maintains a reasonable usage policy. For more, see Data transfer. This metric only applies to the Free Plan.
On paid plan Billing pages, Peak usage is the highest usage level reached for projects during the current billing period. When you exceed your plan's project allowances, extra units are automatically allocated and billed based on the number of additional units needed to cover your extra usage, prorated from the date the extra was allocated.
Interpreting usage metrics
-
Compute usage is tracked in compute hours. A compute hour is 1 active hour for a compute with 1 vCPU. For a compute with .25 vCPU, it takes 4 active hours to use 1 compute hour. On the other hand, if your compute has 4 vCPUs, it takes only 15 minutes to use 1 compute hour.
note
On the Free Plan, you have 191.9 compute hours/month—enough to run a primary 0.25 CU compute 24/7. Up to 5 of those compute hours can be used for non-default branch computes. Autoscaling up to 2 vCPU with 8 GB RAM is available for extra performance during peak times, but please be aware that autoscaling can consume your compute hours more quickly, potentially impacting the ability to run a primary 0.25 CU compute 24/7. If you use Autoscaling or Read Replicas, you'll need to monitor your compute hours to ensure you don't run out before the end of the month.
-
Storage includes your data size and history. Neon maintains a history of changes to support branching-related features such as point-in-time restore. The Launch plan supports up to 7 days of history retention, the Scale plan allows up to 14 days, and the Business plan offers up to 30 days. The default is 1 day on all plans. Keep in mind that history retention increases storage. More history requires more storage. To manage the amount of history you retain, you can configure the history retention setting for your project. See Configure history retention.
-
Archive storage usage reflects how much data from inactive branches has been archived in cost-efficient storage. To minimize storage costs, Neon automatically archives branches that are older than 14 days and have not been accessed for 24 hours. Both conditions must be true for a branch to be archived. If you actively use all of your branches, you shouldn't expect to see archive storage use. Only expect to see usage if you have branches that more than two weeks old that gone unaccessed for 24 hours or more at some point during the month.
-
What about extra usage?
The Launch plan supports extra storage, archive storage, and compute usage. The Scale and Business plans support extra storage, archive storage, compute, and project usage. Any extra usage is automatically allocated and billed when you exceed the allowances included in your plan's base fee. The extra usage is reflected in your monthly usage on the Billing page. See Extra usage to learn more.
Project Dashboard
Project usage is displayed across the top of the Project Dashboard.
The Projects page provides an Account Usage banner. This banner shows usage for all of your Neon projects for the current billing period.
Branches page
The Branches page in the Neon Console provides branch-specific metrics, including:
- Compute hours: The number of computer hours used by the branch's primary compute in the current billing period.
- Data size: The size of the data on the branch, not including history.
- Last active: The data and time the branch was last active.
To view the branches in your Neon project:
- In the Neon Console, select a project.
- Select Branches to view the branches for the project.
You can select a branch from the table to view additional details about the branch.
Retrieve usage metrics with the Neon API
Using the Neon API, you can retrieve a variety of usage metrics, which are highlighted in the Get branch details and Get project details examples below.
note
Scale and Business plan users can use our more advanced consumption
endpoints to monitor usage. See Querying consumption metrics. These endpoints are recommended when monitoring usage for a large number of projects.
Get branch details
This example shows how to retrieve branch details using the Get branch details API method. Usage data is highlighted. Refer to the response body section of the Get branch details documentation for descriptions.
Response body
Get project details
This example shows how to retrieve project details using the Get project details API method. Usage data is highlighted. Refer to the response body section of the Get project details documentation for descriptions.
Response body
For related information, see Retrieving details about a project.