Vercel annotations
Annotations overlay event markers on your graphs, so you can correlate Vercel activity, such as deployments, with the rest of your dashboard. The Vercel data source supports annotations, which means you can drive these markers from a Vercel query.
Before you begin
Before you add an annotation query, ensure you have configured the Vercel data source and are familiar with the Vercel query editor.
How annotations work
The Vercel data source uses the standard Grafana annotation support, so it doesn’t have a dedicated annotation query type. An annotation query uses the same query editor as a panel: you select an action, and Grafana turns each returned row into an annotation marker using the row’s timestamp. Actions that return timestamped resources work best, for example:
- List deployments returns deployments with
createdandcreatedAttimestamps. - Get deployment events returns build events for a single deployment.
The data source parses common timestamp fields, such as createdAt and created, into time fields, so Grafana can place each result on the dashboard time axis.
Add an annotation query
To add a Vercel annotation query to a dashboard:
- Navigate to your dashboard, then select Edit > Settings.
- Select the Annotations tab, then select Add annotation query.
- Enter a name for the annotation.
- In the Data source field, select your Vercel data source.
- Select an action that returns timestamped results, such as List deployments.
- Set any required parameters, then select Apply and save the dashboard.
The matching events appear as markers on panels that share the dashboard time range.
Example: annotate deployments on a graph
Use this example to mark each deployment on your time series panels.
- Open the dashboard you want to annotate, then select Edit > Settings > Annotations.
- Select Add annotation query, then name it
Deployments. - In the Data source field, select your Vercel data source.
- Select the List deployments action.
- To limit the markers to one project, expand Additional Parameters and set
projectId. To mark only failed builds, setstatetoERROR. - Select Apply, then save the dashboard.
Grafana places a marker at each deployment’s created time. Toggle the annotation layer from the dashboard controls to show or hide the markers.
How result fields map to annotations
Grafana builds each annotation marker from the fields returned by the query:
Grafana sets the marker position automatically from the parsed timestamp field. Because Vercel actions return fields with their own names, such as name, url, and state, Grafana populates the marker text and tags only when the result includes fields named text or tags. Annotation queries don’t run panel transformations, so use an action whose timestamps identify the events you want to mark.


