Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vercel",
"version": "0.42.0",
"version": "0.42.1",
"description": "Build and deploy web apps and agents",
"author": {
"name": "Vercel",
Expand Down
2 changes: 1 addition & 1 deletion .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vercel",
"version": "0.42.0",
"version": "0.42.1",
"description": "Build and deploy web apps and agents",
"author": {
"name": "Vercel",
Expand Down
2 changes: 1 addition & 1 deletion .plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vercel-plugin",
"version": "0.42.0",
"version": "0.42.1",
"description": "Comprehensive Vercel ecosystem plugin — relational knowledge graph, skills for every major product, specialized agents, and Vercel conventions. Turns any AI agent into a Vercel expert.",
"author": {
"name": "Vercel",
Expand Down
7 changes: 5 additions & 2 deletions commands/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ If drains are unavailable (Hobby plan or not yet configured), use these alternat
| Query logs programmatically | **MCP / REST API** | `get_runtime_logs` tool or `/v3/deployments/:id/events` |
| Monitor errors post-deploy | **CLI** | `vercel logs <url> --level error --since 1h` |
| Web Analytics data | **Dashboard only** | `https://vercel.com/{team}/{project}/analytics` |
| Performance metrics | **Dashboard only** | `https://vercel.com/{team}/{project}/speed-insights` |
| Observability metrics | **Vercel CLI** | `vercel metrics schema`, then `vercel metrics <metric-id> --format=json` |
| Speed Insights dashboard | **Dashboard** | `https://vercel.com/{team}/{project}/speed-insights` |

> **Upgrade path:** When ready for centralized observability, upgrade to Pro and configure drains at `https://vercel.com/dashboard/{team}/~/settings/log-drains` or via REST API. The drain setup is typically < 5 minutes.

Expand All @@ -183,7 +184,8 @@ If drains are unavailable (Hobby plan or not yet configured), use these alternat
|------|-----|-----|
| Page views, traffic sources | Web Analytics | First-party, privacy-friendly |
| Business event tracking | Web Analytics custom events | Track conversions, feature usage |
| Core Web Vitals monitoring | Speed Insights | Real user data per route |
| Core Web Vitals monitoring | Speed Insights + `vercel metrics vercel.speed_insights_metric.lcp -a p75 --group-by route --since 7d` | Real user data per route |
| Query platform metrics | `vercel metrics` / `vc metrics` | Function invocations, request counts, AI Gateway spend, Speed Insights, grouped by schema dimensions |
| Function debugging | Runtime Logs (CLI `vercel logs` / Dashboard (`https://vercel.com/{team}/{project}/logs`) / REST) | Real-time, per-invocation logs |
| Export logs to external platform | Drains (JSON/NDJSON/Syslog) | Centralize observability (Pro+) |
| Export analytics data | Drains (Web Analytics type) | Warehouse pageviews + custom events (Pro+) |
Expand All @@ -202,6 +204,7 @@ Confirm each data source returned successfully:
- [ ] Domain list retrieved (or "no custom domains")
- [ ] vercel.json parsed (or "not present")
- [ ] Drain status checked (count, errored drains identified)
- [ ] Metrics schema checked with `vercel metrics schema --format=json` when CLI auth/team scope is available
- [ ] Analytics/Speed Insights instrumentation detected (or gap flagged)
- [ ] Drain signature secret checked (if drains configured)

Expand Down
7 changes: 5 additions & 2 deletions commands/status.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ If drains are unavailable (Hobby plan or not yet configured), use these alternat
| Query logs programmatically | **MCP / REST API** | `get_runtime_logs` tool or `/v3/deployments/:id/events` |
| Monitor errors post-deploy | **CLI** | `vercel logs <url> --level error --since 1h` |
| Web Analytics data | **Dashboard only** | `https://vercel.com/{team}/{project}/analytics` |
| Performance metrics | **Dashboard only** | `https://vercel.com/{team}/{project}/speed-insights` |
| Observability metrics | **Vercel CLI** | `vercel metrics schema`, then `vercel metrics <metric-id> --format=json` |
| Speed Insights dashboard | **Dashboard** | `https://vercel.com/{team}/{project}/speed-insights` |

> **Upgrade path:** When ready for centralized observability, upgrade to Pro and configure drains at `https://vercel.com/dashboard/{team}/~/settings/log-drains` or via REST API. The drain setup is typically < 5 minutes.

Expand All @@ -183,7 +184,8 @@ If drains are unavailable (Hobby plan or not yet configured), use these alternat
|------|-----|-----|
| Page views, traffic sources | Web Analytics | First-party, privacy-friendly |
| Business event tracking | Web Analytics custom events | Track conversions, feature usage |
| Core Web Vitals monitoring | Speed Insights | Real user data per route |
| Core Web Vitals monitoring | Speed Insights + `vercel metrics vercel.speed_insights_metric.lcp -a p75 --group-by route --since 7d` | Real user data per route |
| Query platform metrics | `vercel metrics` / `vc metrics` | Function invocations, request counts, AI Gateway spend, Speed Insights, grouped by schema dimensions |
| Function debugging | Runtime Logs (CLI `vercel logs` / Dashboard (`https://vercel.com/{team}/{project}/logs`) / REST) | Real-time, per-invocation logs |
| Export logs to external platform | Drains (JSON/NDJSON/Syslog) | Centralize observability (Pro+) |
| Export analytics data | Drains (Web Analytics type) | Warehouse pageviews + custom events (Pro+) |
Expand All @@ -202,6 +204,7 @@ Confirm each data source returned successfully:
- [ ] Domain list retrieved (or "no custom domains")
- [ ] vercel.json parsed (or "not present")
- [ ] Drain status checked (count, errored drains identified)
- [ ] Metrics schema checked with `vercel metrics schema --format=json` when CLI auth/team scope is available
- [ ] Analytics/Speed Insights instrumentation detected (or gap flagged)
- [ ] Drain signature secret checked (if drains configured)

Expand Down
8 changes: 7 additions & 1 deletion generated/skill-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,7 @@
"deployment status",
"deploy status",
"vercel logs",
"vercel metrics",
"deployment logs",
"deploy logs",
"vercel inspect",
Expand Down Expand Up @@ -800,6 +801,10 @@
"vercel",
"logs"
],
[
"vercel",
"metrics"
],
[
"deploy",
"error"
Expand Down Expand Up @@ -844,7 +849,8 @@
"vercel deploy",
"vercel env",
"vercel link",
"vercel logs"
"vercel logs",
"vercel metrics"
],
"examples": []
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vercel-plugin",
"version": "0.42.0",
"version": "0.42.1",
"private": true,
"bin": {
"vercel-plugin": "src/cli/index.ts"
Expand Down
7 changes: 5 additions & 2 deletions skills/vercel-cli/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: vercel-cli
description: Vercel CLI expert guidance. Use when deploying, managing environment variables, linking projects, viewing logs, managing domains, or interacting with the Vercel platform from the command line.
description: Vercel CLI expert guidance. Use when deploying, managing environment variables, linking projects, viewing logs, querying metrics, managing domains, or interacting with the Vercel platform from the command line.
metadata:
priority: 4
docs:
Expand All @@ -27,6 +27,7 @@ metadata:
- "deployment status"
- "deploy status"
- "vercel logs"
- "vercel metrics"
- "deployment logs"
- "deploy logs"
- "vercel inspect"
Expand All @@ -41,6 +42,7 @@ metadata:
- [check, deploy]
- [vercel, status]
- [vercel, logs]
- [vercel, metrics]
- [deploy, error]
- [deploy, failed]
- [deploy, stuck]
Expand Down Expand Up @@ -71,6 +73,7 @@ retrieval:
- vercel env
- vercel link
- vercel logs
- vercel metrics
chainTo:
-
pattern: '"functions"\s*:\s*\{|"maxDuration"\s*:|"memory"\s*:'
Expand Down Expand Up @@ -123,7 +126,7 @@ Use this to route to the correct reference file:
- **CI/CD automation** → `references/ci-automation.md`
- **Domains or DNS** → `references/domains-and-dns.md`
- **Projects or teams** → `references/projects-and-teams.md`
- **Logs, debugging, or accessing preview deploys** → `references/monitoring-and-debugging.md`
- **Logs, metrics, debugging, or accessing preview deploys** → `references/monitoring-and-debugging.md`
- **Blob storage** → `references/storage.md`
- **Integrations (databases, storage, etc.)** → `references/integrations.md`
- **Access a preview deployment** → use `vercel curl` (see `references/monitoring-and-debugging.md`)
Expand Down
6 changes: 4 additions & 2 deletions skills/vercel-cli/overlay.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: vercel-cli
description: Vercel CLI expert guidance. Use when deploying, managing environment variables, linking projects, viewing logs, managing domains, or interacting with the Vercel platform from the command line.
description: Vercel CLI expert guidance. Use when deploying, managing environment variables, linking projects, viewing logs, querying metrics, managing domains, or interacting with the Vercel platform from the command line.
metadata:
priority: 4
docs:
Expand All @@ -26,6 +26,7 @@ metadata:
- "deployment status"
- "deploy status"
- "vercel logs"
- "vercel metrics"
- "deployment logs"
- "deploy logs"
- "vercel inspect"
Expand All @@ -40,6 +41,7 @@ metadata:
- [check, deploy]
- [vercel, status]
- [vercel, logs]
- [vercel, metrics]
- [deploy, error]
- [deploy, failed]
- [deploy, stuck]
Expand Down Expand Up @@ -70,6 +72,7 @@ retrieval:
- vercel env
- vercel link
- vercel logs
- vercel metrics
chainTo:
-
pattern: '"functions"\s*:\s*\{|"maxDuration"\s*:|"memory"\s*:'
Expand All @@ -80,4 +83,3 @@ chainTo:
pattern: '"redirects"\s*:\s*\[|"rewrites"\s*:\s*\[|"headers"\s*:\s*\['
targetSkill: routing-middleware
message: 'Routing rules in vercel.json — loading Routing Middleware guidance for platform-level request interception patterns.'

14 changes: 14 additions & 0 deletions skills/vercel-cli/references/monitoring-and-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ vercel logs --since 2024-01-01 # filter by time
vercel logs --query "timeout" # search
```

## Metrics

```bash
vercel metrics schema # list available metrics
vercel metrics schema vercel.function_invocation # inspect a metric prefix
vercel metrics vercel.function_invocation.count --since 1h # query linked project
vercel metrics vercel.request.count --group-by http_status --since 6h # group by schema dimension
vercel metrics vercel.function_invocation.request_duration_ms -a avg --group-by route --since 1h
vercel metrics vercel.ai_gateway_request.cost -a sum --group-by ai_provider --since 7d
vercel metrics vercel.speed_insights_metric.lcp -a p75 --group-by route --since 7d
vercel metrics --all vercel.function_invocation.count --group-by project_id --since 24h
vercel metrics vercel.function_invocation.count -f "http_status ge 500" --group-by error_code --since 1h --format=json
```

## Inspecting Deployments

```bash
Expand Down
2 changes: 1 addition & 1 deletion skills/vercel-cli/upstream/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Use this to route to the correct reference file:
- **CI/CD automation** → `references/ci-automation.md`
- **Domains or DNS** → `references/domains-and-dns.md`
- **Projects or teams** → `references/projects-and-teams.md`
- **Logs, debugging, or accessing preview deploys** → `references/monitoring-and-debugging.md`
- **Logs, metrics, debugging, or accessing preview deploys** → `references/monitoring-and-debugging.md`
- **Blob storage** → `references/storage.md`
- **Integrations (databases, storage, etc.)** → `references/integrations.md`
- **Access a preview deployment** → use `vercel curl` (see `references/monitoring-and-debugging.md`)
Expand Down
14 changes: 14 additions & 0 deletions skills/vercel-cli/upstream/references/monitoring-and-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ vercel logs --since 2024-01-01 # filter by time
vercel logs --query "timeout" # search
```

## Metrics

```bash
vercel metrics schema # list available metrics
vercel metrics schema vercel.function_invocation # inspect a metric prefix
vercel metrics vercel.function_invocation.count --since 1h # query linked project
vercel metrics vercel.request.count --group-by http_status --since 6h # group by schema dimension
vercel metrics vercel.function_invocation.request_duration_ms -a avg --group-by route --since 1h
vercel metrics vercel.ai_gateway_request.cost -a sum --group-by ai_provider --since 7d
vercel metrics vercel.speed_insights_metric.lcp -a p75 --group-by route --since 7d
vercel metrics --all vercel.function_invocation.count --group-by project_id --since 24h
vercel metrics vercel.function_invocation.count -f "http_status ge 500" --group-by error_code --since 1h --format=json
```

## Inspecting Deployments

```bash
Expand Down
Loading