Skip to content
Docs

Query Reference

In Query, you first select an event type, then a metric from that event type. For example, select Function Invocations and Active CPU Time to query the CPU time used by Vercel Functions.

The metric picker displays only the event types and metrics available to your team. The following tables use the labels shown in the picker for current event types. Deprecated event types may also appear for historical data.

Event typeMetrics
RequestsCount, External Rewrite Connect Time, External Rewrite DNS Time, Fast Data Transfer (Incoming), Fast Data Transfer (Outgoing), Fast Data Transfer (Total), Routing CPU Duration
Image TransformationsCount, Compression Ratio, Duration, Optimized Size, Size Change, Source Size
ISR OperationsRead Bandwidth, Write Bandwidth, Read Units, Write Units
Event typeMetrics
Function InvocationsCount, Duration (ms), Active CPU Time, Duration (Gb-hrs), Time to First Byte, Incoming Fast Origin Transfer, Outgoing Fast Origin Transfer, Total Fast Origin Transfer, Peak Memory, Provisioned Memory
Middleware InvocationsCount, Duration, Active CPU Time, Time to First Byte, Incoming Fast Origin Transfer, Outgoing Fast Origin Transfer, Total Fast Origin Transfer
External APIsCount, Duration, Transfer Bytes
Queue ActionsCount, Messages Sent, Messages Received, Messages Deleted, Notifications, Visibility Changes, Message Age When Received, Redeliveries, Retry Depth
WorkflowsHooks Conflict, Hooks Created, Hooks Disposed, Hooks Received, Runs Cancelled, Runs Completed, Runs Created, Runs Failed, Runs Started, Steps Cancelled, Steps Completed, Steps Created, Steps Failed, Steps Retrying, Steps Started, Waits Completed, Waits Created
SandboxesActive CPU Time, CPU Usage, Data Transfer In, Data Transfer Out, Peak Memory, Provisioned Memory
Event typeMetrics
PrivateLink Data TransferCount, Bytes
Event typeMetrics
AI Gateway RequestsCount, Audio Duration, Audio Input Tokens, Audio Output Tokens, Cache Creation 1h Input Tokens, Cache Creation Tokens, Cached Input Tokens, Cost, Duration, Gateway Cost, Gateway Tool Call Cost, Gateway Tool Calls, Google Maps Search Calls, Image Count, Image Input Tokens, Input Tokens, Model Allowlist Cost, Output Tokens, Provider Allowlist Cost, Quota Write Cost, Realtime Client Messages, Realtime Session Duration, Region Pinning Cost, Reporting Write Cost, Reranking Query Count, Surcharge Cost, Time to First Token, Video Count, Video Duration, Video FPS, Video Input Tokens, Web Search Calls, ZDR Cost
Event typeMetrics
Blocked ConnectionsCount
Firewall ActionsCount
BotID ChecksCount
Event typeMetrics
Web Analytics Page ViewsCount, Visitors
Web Analytics Custom EventsCount, Visitors
Speed InsightsTime to First Byte, Cumulative Layout Shift, First Contentful Paint, First Input Delay, Interaction to Next Paint, Largest Contentful Paint
Event typeMetrics
MetricsThe custom metrics available to your team

The aggregation determines how Query combines the selected metric's values. The aggregation picker displays only the options supported by the selected metric.

AggregationDescription
CountThe number of data points emitted for the selected custom metric. For built-in event types, select the Count metric and the Sum aggregation instead.
SumThe total of the metric values.
AverageThe arithmetic mean of the metric values.
MinThe smallest metric value.
MaxThe largest metric value.
P50The value below which 50% of the metric values fall.
P75The value below which 75% of the metric values fall.
P90The value below which 90% of the metric values fall.
P95The value below which 95% of the metric values fall.
P99The value below which 99% of the metric values fall.
Std DevThe standard deviation of the metric values.
Per SecondThe metric value expressed as a rate per second.
PercentEach group as a percentage of the ungrouped total. Values excluded by the filter are also excluded from the total.
UniqueThe number of distinct values. Query uses this aggregation for the Visitors metrics.

Aggregations are calculated within each point on the chart (hourly, daily, etc) and also across the entire query window.

The filter bar defines the conditions to filter your query data. It only fetches data that meets a specified condition based on several fields and operators:

OperatorDescription
is, is notMatch or exclude one value.
is any of, is not any ofMatch or exclude any value in a list.
is set, is not setMatch based on whether the field has a value.
contains, not containsMatch based on whether text contains a value.
starts with, not starts withMatch based on the beginning of a text value.
ends with, not ends withMatch based on the end of a text value.
matches pattern, not matches patternMatch based on a text pattern.
>, >=, <, <=Compare numerical values.
includes any, includes allMatch array fields that include selected values.
excludes any, excludes allMatch array fields that exclude selected values.

The Group By clause calculates statistics for each combination of field values. Each group is displayed as a separate color in the chart view, and has a separate row in the table view.

For example, grouping by Request Hostname and HTTP Status displays data for each combination of hostname and status code.

The available fields depend on the selected event type. The following fields are common across one or more event types:

Field NameDescription
Request HostnameGroup by the request's domains and subdomains
ProjectGroup by the request's project
Deployment IDGroup by the request's deployment ID
HTTP StatusGroup by the request's HTTP response code
RouteThe mapped path used by the request. For example, if you have a dynamic route like /blog/[slug] and a blog post is /blog/my-blog-post, the route is /blog/[slug]
Request PathThe path used by the request. For example, if you have a dynamic route like /blog/[slug] and a blog post is /blog/my-blog-post, the request path is /blog/my-blog-post
Cache ResultThe cache status for the request
EnvironmentGroup by the environment (production or preview)
Request MethodGroup by the HTTP request method (GET, POST, PUT, etc.)
Referrer URLGroup by the HTTP referrer URL
Referrer HostnameGroup by the HTTP referrer domain
IP AddressGroup by the request's IP address
IP CountryGroup by the request's IP country
User AgentGroup by the request's user agent
AS NumberThe autonomous system number (ASN) for the request. This is related to what network the request came from (either a home network or a cloud provider)
CDN RegionGroup by the region the request was routed to
ISR Cache RegionGroup by the ISR cache region
WAF ActionGroup by the action taken by the Vercel Firewall, including allow, bypass, challenge, challenge-solved, challenge-failed, deny, log, rate_limit, and redirect
WAF Rule IDGroup by the firewall rule ID
Skew ProtectionWhen active, the request would have been subject to version skew but was protected, otherwise inactive.
Sandbox NameGroup by the sandbox name
Sandbox Session IDGroup by the sandbox session ID
Last updated August 11, 2026

Was this helpful?

supported.