Overview
Vercel 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 that caches their sites for fast retrieval. Additionally, Vercel offers Serverless Functions, 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:
Setup
Datadog
To connect Datadog with Vercel, enable the integration and selct an API Key.
Open the Vercel integration tile.
Select the Configure tab and select Configure the Vercel integration.
On the Your Datadog account info form, select Select an API Key and either choose an existing API key or select + Create New to use a new API key for the Vercel integration.
After your selection is made, select Use API Key. This copies the selected API key to your device’s clipboard.
After the API key is selected, you are redirected back to the Your Datadog account info form. Select Vercel > Add Integration to complete the integration setup for Vercel.
Vercel
Click the Vercel > Add Integration link to be redirected to Vercel’s Datadog integration page.
Select Connect Account to open the Connect Datadog Account form.
Select which Vercel Team to connect the integration to. (Teams that already have the integration installed have an icon next to them labeled Installed)
Select the radio button associated with either enabling the integration for all projects or a specific project that the team owns. Select Connect Account to save your changes.
Paste the API key that was copied to your clipboard in Step 4 of the Datadog setup above into the box labeled Your Datadog API Key.
Scroll to the bottom of the form and select Add Integration to save your changes.
Data Collected
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
The Vercel integration does not include any service checks.
Events
The Vercel integration does not include any events.
Logs
The Vercel integration collects logs from your Vercel Project using Vercel’s Log Drains feature.
Troubleshooting
If you are using the Vercel OpenTelemetry Collector, 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.
Further Reading
Additional helpful documentation, links, and articles: