monitoring

Monitor Vercel deployments, check logs, and track errors.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "monitoring" with this command: npx skills add sgcarstrends/sgcarstrends/sgcarstrends-sgcarstrends-monitoring

Monitoring Skill

Monitor Vercel deployments, check logs, and track errors.

Viewing Logs

Vercel Dashboard

  • Go to Vercel Dashboard → Project → Logs

  • Filter by:

  • Function logs

  • Build logs

  • Edge function logs

  • Time range

Vercel CLI

View recent logs

vercel logs <deployment-url>

Stream logs in real-time

vercel logs <deployment-url> --follow

Filter by status

vercel logs <deployment-url> --status error

Vercel Analytics

Web Vitals

Monitor in Vercel Dashboard → Analytics:

  • LCP (Largest Contentful Paint)

  • FID (First Input Delay)

  • CLS (Cumulative Layout Shift)

  • TTFB (Time to First Byte)

Speed Insights

Already integrated in the app:

// apps/web/src/app/layout.tsx import { Analytics } from "@vercel/analytics/next"; import { SpeedInsights } from "@vercel/speed-insights/next";

const RootLayout = ({ children }) => ( <html> <body> {children} <Analytics /> <SpeedInsights /> </body> </html> );

Logging Patterns

The codebase uses standard console.log/error/warn for logging:

// Workflow logging pattern console.log("[WORKFLOW] Posts cache invalidated"); console.log("[COE]", coeResult);

// Error logging pattern console.error("Error getting post view count:", error); console.error("Download failed:", { url, status });

Log Prefixes Used:

  • [WORKFLOW]

  • Workflow execution events

  • [COE]

  • COE data processing

  • [CARS]

  • Car data processing

Health Checks

The app has a health check endpoint at /api/health :

// apps/web/src/app/api/health/route.ts export const GET = () => { return NextResponse.json( { status: "ok", timestamp: new Date().toISOString() }, { status: 200, headers: { "Cache-Control": "public, s-maxage=60, stale-while-revalidate=300", }, }, ); };

Test health endpoint:

curl -f https://sgcarstrends.com/api/health || echo "Web unhealthy"

Workflow Error Handling

Workflows use Vercel WDK's built-in error handling:

// apps/web/src/workflows/cars/index.ts import { FatalError, RetryableError } from "workflow";

// Retryable errors (will be retried automatically) if (message.includes("429")) { throw new RetryableError("AI rate limited", { retryAfter: "1m" }); }

// Fatal errors (will not be retried) if (message.includes("401") || message.includes("403")) { throw new FatalError("AI authentication failed"); }

Error Types:

  • RetryableError

  • Temporary failures (rate limits, network issues)

  • FatalError

  • Permanent failures (auth errors, invalid config)

Debugging Production Issues

  1. Check Vercel Logs

Get deployment URL

vercel ls

Check logs

vercel logs <url> --follow

  1. Check Build Output
  • Vercel Dashboard → Deployments

  • Click on deployment

  • View "Build Logs"

  1. Test Endpoint

curl -v https://sgcarstrends.com/api/health

  1. Check Function Runtime

Vercel Dashboard → Project → Settings → Functions

  • View runtime version

  • Check memory allocation

  • Review timeout settings

Common Issues

Issue Investigation Solution

High latency Check Vercel Analytics, slow queries Optimize queries, add caching

Build failures Check build logs Fix build errors, update dependencies

Function timeout Check function logs Optimize code, increase timeout

Cold starts Check function invocations Consider edge functions

Workflow failures Check Vercel logs for workflow ID Review error type, check retries

Vercel Function Configuration

// API route config export const config = { maxDuration: 60, // seconds (Pro plan allows up to 60s) };

Cron Job Monitoring

Workflows are triggered by Vercel Cron:

// apps/web/vercel.json { "crons": [ { "path": "/api/workflows/cars", "schedule": "0 10 * * *" }, { "path": "/api/workflows/coe", "schedule": "0 10 * * *" }, { "path": "/api/workflows/deregistrations", "schedule": "0 10 * * *" } ] }

Monitor cron executions:

  • Vercel Dashboard → Project → Cron Jobs

  • View execution history and status

  • Check logs for each execution

Best Practices

  • Use Log Prefixes: Add [CONTEXT] prefix for easy filtering

  • Log Meaningful Data: Include relevant context (month, record counts)

  • Don't Log Secrets: Never log passwords, tokens, API keys

  • Use Vercel Analytics: Monitor performance metrics

  • Check Cron Jobs: Monitor scheduled workflow executions

References

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Token Optimizer Pro

Monitor OpenClaw token usage, analyze usage patterns, estimate cost, and provide practical optimization suggestions. Use when reviewing token consumption by...

Registry SourceRecently Updated
1280Profile unavailable
General

Openclaw Guardian

一键安装包含配置安全、容灾、监控和上下文优化的 OpenClaw 系统全链路守护套件。

Registry SourceRecently Updated
1850Profile unavailable
General

yan-watchman

yan-watchman is a Rust-based multi-platform AI assistant message watchdog with intelligent importance scoring and adaptive monitoring frequency.

Registry SourceRecently Updated
1190Profile unavailable
General

Openclaw Rescue Kit

OpenClaw 自救套件 - 网关启动包装(端口冲突防护)、看门狗监控、自动重启、配置回滚、安全加固、日志清理、Git版本管理。当用户提到 OpenClaw 网关崩溃、需要看门狗、配置回滚、安全扫描、日志清理、端口冲突、或部署自救脚本时使用此技能。包含 10 个独立脚本和完整部署指南。

Registry SourceRecently Updated
3010Profile unavailable