---
title: Vercel
description: Monitor your serverless applications running on Vercel
breadcrumbs: Docs > Integrations > Vercel
---

# Vercel
Supported OS 
{% callout %}
# Important note for users on the following Datadog sites: us2.ddog-gov.com

{% alert level="info" %}
To find out if this integration is available in your organization, see your [Datadog Integrations](https://app.datadoghq.com/integrations) page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [support@ddog-gov.com](mailto:support@ddog-gov.com).
{% /alert %}

{% /callout %}



## Overview{% #overview %}

[Vercel](https://vercel.com/) is a deployment and collaboration platform that enables frontend developers to build high-performance websites and applications. Vercel is also the creator of Next.js, a React framework developed in collaboration with engineers at Google and Facebook in 2016. Vercel users can leverage a built-in deployment tool that manages the build and rendering process, as well as a proprietary [Edge Network](https://vercel.com/docs/edge-network/overview) that caches their sites for fast retrieval. Additionally, Vercel offers [Serverless Functions](https://vercel.com/docs/serverless-functions/introduction), which allow users to deploy serverless code to accomplish essential backend processes like user authentication, form submission, and database queries.

Integrate Vercel with Datadog to:

- View and parse your application logs using [Datadog's Log Management](https://docs.datadoghq.com/logs.md)
- See the number of requests and 4xx/5xx HTTP errors to your serverless applications and APIs running on Vercel
- Monitor frontend and [Vercel Functions](https://vercel.com/docs/functions) performance with [Datadog Synthetics](https://docs.datadoghq.com/synthetics.md)
- Trace requests across your Vercel Functions with [Datadog APM](https://docs.datadoghq.com/tracing.md)

## Setup{% #setup %}

The Datadog integration for Vercel is installed from the Vercel Marketplace.

### Install Datadog from the Vercel Marketplace{% #install-datadog-from-the-vercel-marketplace %}

1. Sign in to Vercel, then open the [Datadog listing in the Vercel Marketplace](https://vercel.com/marketplace/datadog) and select **Connect Account**.

1. Select the Vercel team in which you want to install the integration.

1. Select which projects to monitor: either all projects or a specific subset.

1. Select **Connect Account**. After Vercel provisions the integration, you are redirected to the **Configure Vercel for Serverless** page in Datadog.

### Configure the integration{% #configure-the-integration %}

On the **Configure Vercel for Serverless** page, complete the following steps:

1. **Confirm your organization** - If you belong to multiple Datadog organizations, select which one to connect to your Vercel account.

1. **Select API Key** - Select **Create New** to create a dedicated key for this integration, or choose an existing API key.

1. **Enable Vercel Log Drain for Log Management** - Toggle **Log Drain** on to forward logs from your Vercel apps to Datadog. Set the sampling percentage (1-100%) for the share of logs to forward.

1. **Set Log Sources** - Select which Vercel log sources to forward. At least one is required:

   - **Static**: CDN and static asset request logs
   - **Lambda**: Serverless Function execution logs
   - **Build**: Build output logs
   - **Edge**: Edge Function and Edge Middleware logs
   - **External**: Logs from external services routed through Vercel
   - **Firewall**: Vercel Firewall event logs

**Note:** To ensure metrics are collected, Datadog recommends enabling **Lambda** logs and **Static** logs. Enabling **Build** logs is recommended if you want to collect build metrics.

1. **Set Log Environment** - Select **Production**, **Preview**, or both. At least one is required.

1. **Enable Vercel Trace Drain for APM** - Toggle **Trace Drain** on to forward traces from your Vercel apps to Datadog. Set the sampling percentage (1-100%).

1. Select **Add Integration**. The **Vercel Integration Setup** status page opens and confirms that data is flowing into Datadog. From there you can navigate to the Vercel Monitoring summary, the out-of-the-box dashboard, the Log Explorer, the Trace Explorer, and Real User Monitoring.

**Note:** Vercel Log Drains and Trace Drains are billed by Vercel. See the Vercel documentation for [Log Drains](https://vercel.com/docs/drains/reference/logs) and [Trace Drains](https://vercel.com/docs/drains/reference/traces).

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

|  |
|  |
| **vercel.requests**(count)                    | The number of requests to each route in a Vercel project*Shown as request*          |
| **vercel.builds.build\_count**(count)         | The number of builds of a Vercel project*Shown as build*                            |
| **vercel.functions.memorysize**(gauge)        | The memory allocated to a Vercel Serverless Function*Shown as mebibyte*             |
| **vercel.functions.max\_memory\_used**(gauge) | The max memory used by a Vercel Serverless Function invocation*Shown as mebibyte*   |
| **vercel.functions.invocations**(count)       | The number of invocations of a Vercel Serverless Function*Shown as invocation*      |
| **vercel.functions.execution**(gauge)         | The execution time of a Vercel Serverless Function invocation*Shown as microsecond* |
| **vercel.functions.errors**(count)            | The number of errors in a Vercel Serverless Function*Shown as error*                |
| **vercel.functions.duration**(gauge)          | The duration of a Vercel Serverless Function invocation*Shown as nanosecond*        |

### Service Checks{% #service-checks %}

The Vercel integration does not include any service checks.

### Events{% #events %}

The Vercel integration does not include any events.

### Logs{% #logs %}

The Vercel integration collects logs from your Vercel Project using Vercel's [Log Drains](https://vercel.com/docs/drains/reference/logs) feature.

### Traces{% #traces %}

The Vercel integration collects traces from your Vercel Project using Vercel's [Trace Drains](https://vercel.com/docs/drains/reference/traces) feature.

## Troubleshooting{% #troubleshooting %}

If you are using the [Vercel OpenTelemetry SDK](https://vercel.com/docs/tracing/instrumentation), the `serviceName` specified in `registerOTel` block of your initializer must match the Vercel Project name. This enables traces to appear in Datadog with the appropriate logs and metrics.

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
