Vercel alerting
The Vercel data source supports Grafana Alerting, so you can create alert rules on Vercel data, such as deployment failures or firewall attack activity. The plugin is a backend data source, so Grafana evaluates these queries server-side during each alert rule evaluation.
Before you begin
Before you create an alert rule, ensure you have configured the Vercel data source and are familiar with the Vercel query editor.
How alerting works
The Vercel data source doesn’t have a dedicated alerting query type. Instead, an alert rule runs a standard Vercel action, reduces the result to a single number, and evaluates that number against a condition. Vercel actions return tables, so you typically add a Reduce expression that counts the returned rows, or reduces a numeric field, before applying a threshold. Common patterns include:
- List deployments filtered by
stateto count failed or building deployments. - Read active attack data to alert on firewall activity for a project.
An alert query uses the rule’s own time range, so the since and until parameters resolve to the range you set on the query.
Create an alert rule
To create an alert rule on a Vercel query:
- Navigate to Alerting > Alert rules, then select New alert rule.
- Enter a name for the rule.
- In the query section, select your Vercel data source.
- Select an action and set any required parameters, such as a
statefilter on List deployments. - Set the query’s time range to the window you want to evaluate.
- Add a Reduce expression to convert the query result to a single value, then add a Threshold expression to define the alert condition.
- Set the alert condition to the threshold expression, set the evaluation behavior, add labels and notifications, then save the rule.
Example: alert on failed deployments
Use this example to fire an alert whenever a deployment fails to build.
- Navigate to Alerting > Alert rules, then select New alert rule and name it
Failed Vercel deployments. - For query A, select your Vercel data source and select the List deployments action.
- Expand Additional Parameters, set
projectIdto your project, and setstatetoERROR. - Set the query time range to the window you want to check, such as the last 10 minutes.
- Add a Reduce expression B with the Count function and input A to count the failed deployments.
- Add a Threshold expression C with input B and the condition is above
0. - Set expression C as the alert condition, then configure the evaluation interval, labels, and notifications.
- Save the rule.
The rule fires when the List deployments action returns one or more ERROR deployments within the evaluation window.
Next steps
- Configure notification policies and contact points to route alerts.
- Refer to Troubleshooting if alert queries return no data.


