Manage and optimize usage for Observability
Learn how to understand the different charts in the Vercel dashboard, how usage relates to billing, and how to optimize your usage of Web Analytics and Speed Insights.The Observability section covers usage for Web Analytics and Speed insights
The Events chart shows the number of page views and custom events that were tracked across all of your projects. You can filter the data by Count or Projects.
Every plan has an included limit of events per month. On Pro, Pro with Web Analytics Plus, and Enterprise plans, you're billed based on the usage over the plan limit. You can see the total number of events used by your team by selecting Count in the chart.
Speed Insights and Web Analytics require scripts to do collection of data points. These scripts are loaded on the client-side and therefore may incur additional usage and costs for Data Transfer and Edge Requests.
- Your usage is based on the total number of events used across all projects within your team. You can see this number by selecting Projects in the chart, which will allow you to figure out which projects are using the most events and can therefore be optimized
- Reduce the amount of custom events they send. Users can find the most sent events in the events panel in Web Analytics
- Use beforeSend to exclude page views and events that might not be relevant
- Web Analytics Plus includes a higher limit of events per month. If you're on a Pro plan and you're consistently exceeding the limit, it may be more cost effective to upgrade to Pro with Web Analytics Plus
You are initially billed a set amount for each project on which you enable Speed Insights. Each plan includes a set number of data points. After that, you're charged a set price per unit of additional data points.
Data points are a single unit of information that represent a measurement of a specific Web Vital metric during a user's visit to your website. Data points get collected on hard navigations. See Understanding Data Points for more information.
Speed Insights and Web Analytics require scripts to do collection of data points. These scripts are loaded on the client-side and therefore may incur additional usage and costs for Data Transfer and Edge Requests.
- To reduce cost, you can change the sample rate at a project level by using the
@vercel/speed-insights
package as explained in Sample rate. You can also provide a cost limit under your team's Billing settings page to ensure no more data points are collected for the rest of the billing period once the limit has been reached - Use beforeSend to exclude page views and events that might not be relevant
- You may want to disable speed insights for projects that no longer need it. This will stop data points getting collected for a project
Vercel creates a data point each time a request is made to your website. These data points include unique parameters such as execution time and bandwidth used. For a complete list, see the visualize and group by docs.
How to use Monitoring usage
You pay for monitoring based on the total number of data points used above the included limit included in your plan. You can see this number by selecting Count in the chart.
You can also view the number of data points used by each project in your team by selecting Projects in the chart. This will show you the number of data points used by each project in your team, allowing you to optimize your usage.
To estimate your cost:
- Set the date filter to Current Billing Cycle or Last 30 days if that option is not available
- Scroll to the Networking > Requests chart and take the sum of both cached and uncached requests
You'll also be charged a base fee for monitoring every month.
Because data points are based on the amount of requests to your site, there is no way to optimize the number of data points used.
You can optimize your log drains usage by:
- Filtering by environment: You can filter logs by environment to reduce the number of logs sent to your log drain. By filtering by only your production environment you can avoid the costs of sending logs from your preview deployments
- Sampling rate: You can reduce the number of logs sent to your log drain by using a sampling rate. This will send only a percentage of logs to your log drain, reducing the number of logs sent and the cost of your log drain
Was this helpful?