Skip to content

Live Metrics

Five live cards for an AI product: runs and latency on two axes with a deploy marker, daily active runs, tools in use with line-end icons, eval pass rate and token spend. Feed it new data and the numbers roll, the lines extend and the end dots glide.

On this page

Examples

Built from Chart props

The first and third cards use opt-in Chart props: a second right axis, a dashed series, a marker with a tooltip, labels at the line ends and hover to focus one line. Chart defaults are unchanged.

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

datarequired
LiveMetricsData
throughput (rows of t, runs, p95, slots, marker), daily, tools (weeks and series with an icon), evals and spend (each values and slots).
onRangeChange
(card, range) => void
Called when a card's range select changes. Load that range and pass new data.
className
string
On the container. Cards sit in a 2/3 and 1/3 grid when the container is wide, one column otherwise.
MetricCard
component
The card shell: icon tile, title, info tooltip, controls and a menu. Exported for your own cards. `quiet` swaps the tile for a small accent icon, mutes the title and keeps only the menu.
DeltaPill
component
Arrow, sign and colour swap in one frame, the percentage rolls. goodWhen="down" for spend.
Motion
280 ms ease-out
Only on a real change: nothing on first render. Reduced motion shows the new values at once.

When to use

When to use

  • A dashboard for an AI product that stays open: runs and latency, active runs, tool use, eval pass rate and spend, where changes should be seen as they happen.
  • A status or ops view where a deploy marker explains a jump in a line.

When not to use

  • How one agent is doing, with a score and a next step: use Agent Health.
  • Spend and quota against a plan: use Usage Meter.
  • One line chart with no card around it: use Chart.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Live Metrics to my app and wire it to my own data.
  • I need a dashboard for an AI product that stays open: runs and latency, active runs, tool use, eval pass rate and spend, where changes should be seen as they happen. Set that up with the Knowns UI Live Metrics.
  • Which Live Metrics props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "live-metrics" }) and search_docs({ query: "live metrics" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Live Metrics, or found something off? We read every message.