<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/custom-metrics-are-now-supported-in-vercel-observability-yoe45gf3k" -->

---
title: Custom metrics are now supported in Vercel Observability
description: Vercel Observability now supports custom metrics emitted directly from Vercel Functions using the metric() function from the @vercel/functions package....
canonical: https://daily.dev/posts/custom-metrics-are-now-supported-in-vercel-observability-yoe45gf3k
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Custom metrics are now supported in Vercel Observability | daily.dev
og:description: Vercel Observability now supports custom metrics emitted directly from Vercel Functions using the metric() function from the @vercel/functions package....
og:url: https://daily.dev/posts/custom-metrics-are-now-supported-in-vercel-observability-yoe45gf3k
og:image: https://api.daily.dev/og/posts/YOe45gf3K.png
og:image:alt: Custom metrics are now supported in Vercel Observability
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom metrics are now supported in Vercel Observability

**[Vercel](https://daily.dev/sources/vercel)** · 1 min read · 1 upvotes · 1 comments

## Summary

Vercel Observability now supports custom metrics emitted directly from Vercel Functions using the metric() function from the @vercel/functions package. Developers can record arbitrary values like latency or business events with attributes, then query and visualize them through the Query builder, Notebooks dashboards, or the vc metrics CLI command. Vercel automatically attaches attributes like source deployment and function region. Custom metrics are billed as observability events, available on Pro and Enterprise plans with Observability Plus.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://vercel.com/changelog/custom-metrics-are-now-supported-in-vercel-observability>

## Questions this post answers

### How do I emit a custom metric from a Vercel Function?

Import the metric() function from the @vercel/functions package and call it with a metric name, numeric value, and optional attributes, for example metric("database.query_ms", 120, { table: "my-table", db: "my-database" }). The metric then appears in Vercel Observability alongside built-in data, with Vercel automatically adding attributes like source deployment and function region.

_daily.dev surfaces updates like this for engineers instrumenting Vercel deployments with custom metrics._

### Where can I view and query custom metrics emitted from Vercel Functions?

Custom metrics emitted via the metric() function become available in the Query builder for ad hoc aggregation, in Notebooks for building shareable dashboards, and via the CLI using the vc metrics command. They are billed as observability events and require a Pro or Enterprise plan with Observability Plus enabled.

_Developers evaluating observability tooling costs and plans often track changes like this on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@agustinbarrientos** · 0 upvotes

> Custom metrics should show cardinality limits before the first event ships

## Similar posts on daily.dev

- [Query observability metrics using the Vercel CLI](https://daily.dev/posts/query-observability-metrics-using-the-vercel-cli-ksviy7mcp) · Vercel · 0 upvotes · 0 comments
- [Query and visualize workflow data in Vercel Observability](https://daily.dev/posts/query-and-visualize-workflow-data-in-vercel-observability-o1jcitgq0) · Vercel · 0 upvotes · 0 comments
- [Elastic’s new metrics capabilities will dramatically improve uptime for public sector IT](https://daily.dev/posts/elastic-s-new-metrics-capabilities-will-dramatically-improve-uptime-for-public-sector-it-1tv2tpxd0) · elastic · 0 upvotes · 0 comments
- [Own Your Observability: Supabase Metrics API](https://daily.dev/posts/own-your-observability-supabase-metrics-api-wripvbbf8) · Supabase · 5 upvotes · 0 comments

---

Tags: [#observability](https://daily.dev/tags/observability), [#serverless](https://daily.dev/tags/serverless), [#monitoring](https://daily.dev/tags/monitoring), [#vercel](https://daily.dev/tags/vercel)

[View this post on daily.dev](https://daily.dev/posts/custom-metrics-are-now-supported-in-vercel-observability-yoe45gf3k)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Custom metrics are now supported in Vercel Observability","url":"https://daily.dev/posts/custom-metrics-are-now-supported-in-vercel-observability-yoe45gf3k","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/custom-metrics-are-now-supported-in-vercel-observability-yoe45gf3k"},"datePublished":"2026-08-20T16:27:33.917Z","dateModified":"2026-09-14T08:07:00.350Z","description":"Vercel Observability now supports custom metrics emitted directly from Vercel Functions using the metric() function from the @vercel/functions package....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/699c26dd34d9e1f27a0452d421f1e3e0?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/699c26dd34d9e1f27a0452d421f1e3e0?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Vercel","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Vercel","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/04cca7235cf84db092f24b7ba427b3e1","url":"https://daily.dev/sources/vercel"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/custom-metrics-are-now-supported-in-vercel-observability-yoe45gf3k","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"observability,serverless,monitoring,vercel","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Vercel","item":"https://daily.dev/sources/vercel"},{"@type":"ListItem","position":3,"name":"Custom metrics are now supported in Vercel Observability"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/custom-metrics-are-now-supported-in-vercel-observability-yoe45gf3k","comment":[{"@type":"Comment","text":"Custom metrics should show cardinality limits before the first event ships","datePublished":"2026-08-21T09:21:09.549Z","url":"https://daily.dev/posts/YOe45gf3K#c-jbHLdLfeo","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/custom-metrics-are-now-supported-in-vercel-observability-yoe45gf3k#faq","mainEntity":[{"@type":"Question","name":"How do I emit a custom metric from a Vercel Function?","acceptedAnswer":{"@type":"Answer","text":"Import the metric() function from the @vercel/functions package and call it with a metric name, numeric value, and optional attributes, for example metric(\"database.query_ms\", 120, { table: \"my-table\", db: \"my-database\" }). The metric then appears in Vercel Observability alongside built-in data, with Vercel automatically adding attributes like source deployment and function region. daily.dev surfaces updates like this for engineers instrumenting Vercel deployments with custom metrics."}},{"@type":"Question","name":"Where can I view and query custom metrics emitted from Vercel Functions?","acceptedAnswer":{"@type":"Answer","text":"Custom metrics emitted via the metric() function become available in the Query builder for ad hoc aggregation, in Notebooks for building shareable dashboards, and via the CLI using the vc metrics command. They are billed as observability events and require a Pro or Enterprise plan with Observability Plus enabled. Developers evaluating observability tooling costs and plans often track changes like this on daily.dev."}}]}
```

